Author: ianmacarthur
Date: 2010-04-06 11:07:34 -0700 (Tue, 06 Apr 2010)
New Revision: 7459
Log:
Submit Albrecht's minimal fix for str2082 - this "fixes" the erroneous window
animations
on menu and tooltip items that were seen on some systems using compiz.
Albrecht or Alvin may have more sophisticated fixes later, providing us with
more control
over window types under X11.
Modified:
branches/branch-1.3/src/Fl_x.cxx
Modified: branches/branch-1.3/src/Fl_x.cxx
===================================================================
--- branches/branch-1.3/src/Fl_x.cxx 2010-04-06 17:38:27 UTC (rev 7458)
+++ branches/branch-1.3/src/Fl_x.cxx 2010-04-06 18:07:34 UTC (rev 7459)
@@ -1587,6 +1587,13 @@
XSetWMHints(fl_display, xp->xid, hints);
XFree(hints);
}
+
+ // set the window type for menu and tooltip windows to avoid animations
(compiz)
+ if (win->menu_window() || win->tooltip_window()) {
+ Atom net_wm_type = XInternAtom(fl_display, "_NET_WM_WINDOW_TYPE", False);
+ Atom net_wm_type_kind = XInternAtom(fl_display,
"_NET_WM_WINDOW_TYPE_MENU", False);
+ int ret = XChangeProperty(fl_display, xp->xid, net_wm_type, XA_ATOM, 32,
PropModeReplace, (unsigned char*)&net_wm_type_kind, 1);
+ }
XMapWindow(fl_display, xp->xid);
if (showit) {
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit