@@ -87,6 +87,7 @@ TGToolTip::TGToolTip(const TGWindow *p, const TGFrame *f, const char *text,
8787 attr.fSaveUnder = kTRUE ;
8888
8989 gVirtualX ->ChangeWindowAttributes (fId , &attr);
90+ gVirtualX ->SetWindowHint (fId , TVirtualX::kHintTooltip );
9091 SetBackgroundColor (fClient ->GetResourcePool ()->GetTipBgndColor ());
9192
9293 fLabel = new TGLabel (this , text);
@@ -122,6 +123,7 @@ TGToolTip::TGToolTip(const TGWindow *p, const TBox *box, const char *text,
122123 attr.fSaveUnder = kTRUE ;
123124
124125 gVirtualX ->ChangeWindowAttributes (fId , &attr);
126+ gVirtualX ->SetWindowHint (fId , TVirtualX::kHintTooltip );
125127 SetBackgroundColor (fClient ->GetResourcePool ()->GetTipBgndColor ());
126128
127129 fLabel = new TGLabel (this , text);
@@ -155,6 +157,7 @@ TGToolTip::TGToolTip(const TBox *box, const char *text,Long_t delayms)
155157 attr.fSaveUnder = kTRUE ;
156158
157159 gVirtualX ->ChangeWindowAttributes (fId , &attr);
160+ gVirtualX ->SetWindowHint (fId , TVirtualX::kHintTooltip );
158161 SetBackgroundColor (fClient ->GetResourcePool ()->GetTipBgndColor ());
159162
160163 fLabel = new TGLabel (this , text);
@@ -186,6 +189,7 @@ TGToolTip::TGToolTip(Int_t x, Int_t y, const char *text, Long_t delayms)
186189 attr.fSaveUnder = kTRUE ;
187190
188191 gVirtualX ->ChangeWindowAttributes (fId , &attr);
192+ gVirtualX ->SetWindowHint (fId , TVirtualX::kHintTooltip );
189193 SetBackgroundColor (fClient ->GetResourcePool ()->GetTipBgndColor ());
190194
191195 fLabel = new TGLabel (this , text);
0 commit comments