DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2230
Version: 2.0-feature


All menu windows are being created as toplevel windows and compiz
understand that's a regular window, so it make the window behave like a
toplevel window.

I've done a patch to change that behavior. I've tested in my system and it
worked. Unfortunately it was not possible to keep the shadows.


Link: http://www.fltk.org/str.php?L2230
Version: 2.0-feature
Index: src/x11/run.cxx
===================================================================
--- src/x11/run.cxx     (revisão 6837)
+++ src/x11/run.cxx     (cópia de trabalho)
@@ -2064,7 +2064,13 @@
       // we do not compare to sw/sh here because I think it may mess up
       // some virtual desktop implementations
     }
-    root = RootWindow(xdisplay, xscreen);
+    // If menus don't have a parent window, the window manager will think
+    // it's a top level window and will animate it.
+    if (window->child_of()) {
+      root = window->child_of()->i->xid;
+      X -= window->child_of()->x();
+      Y -= window->child_of()->y();
+    } else root = RootWindow(xdisplay, xscreen);
     attr.event_mask =
       ExposureMask | StructureNotifyMask
       | KeyPressMask | KeyReleaseMask | KeymapStateMask | FocusChangeMask
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to