DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2082
Version: 1.3-feature
Ian, would you please test attached patch file str2082_window-type.patch to
see if this fixes the compiz menu animation issue. This is not directly
what this STR is for, but I'd like to complete this now and leave the
option to set an internal xtype as suggested by Alvin open for later.
Unfortunately I can't test this myself, because I don't see any window
animations on my Ubuntu Linux system, even with compiz enabled.
Link: http://www.fltk.org/str.php?L2082
Version: 1.3-feature
Index: src/Fl_x.cxx
===================================================================
--- src/Fl_x.cxx (revision 7429)
+++ src/Fl_x.cxx (working copy)
@@ -1586,6 +1586,13 @@
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) {
win->set_visible();
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev