Tweak here.. tweak there.. and hope that the damn focus bug is fixed now!!
authorDiego Borghetti <bdiego@gmail.com>
Sun, 28 Dec 2008 19:16:07 +0000 (19:16 +0000)
committerDiego Borghetti <bdiego@gmail.com>
Sun, 28 Dec 2008 19:16:07 +0000 (19:16 +0000)
Also check that this bug cause (with some window manager) that blender
work really bad, for example change from one area to another with a popup
menu open make the view hmhm "blink" (show and unshow the menu when you move
the mouse) and when you return the menu is open.. also other things that
now work fine.

intern/ghost/intern/GHOST_SystemX11.cpp
intern/ghost/intern/GHOST_WindowX11.cpp

index 5a145510e5475338d0ee6a57ec46ff415549a99a..0d19c3b230df5a26206bf65edc4e8813e56526e3 100644 (file)
@@ -233,11 +233,8 @@ createWindow(
        );
 
        if (window) {
-
-               // Install a new protocol for this window - so we can overide
-               // the default window closure mechanism.
-
-               XSetWMProtocols(m_display, window->getXWindow(), &m_delete_window_atom, 1);
+               // Both are now handle in GHOST_WindowX11.cpp
+               // Focus and Delete atoms.
 
                if (window->getValid()) {
                        // Store the pointer to the window 
index 3785b325eafdc510168c1e15827e19fec0540caf..34ce0409d53b6b4d9b575faa2a37b44ef4ccf22c 100644 (file)
@@ -372,7 +372,8 @@ GHOST_WindowX11(
        XDestroyImage( mask_image );
        
        xwmhints->initial_state = NormalState;
-       xwmhints->flags         = IconPixmapHint|IconMaskHint|StateHint;
+       xwmhints->input= True;
+       xwmhints->flags= InputHint|IconPixmapHint|IconMaskHint|StateHint;
        XSetWMHints(display, m_window, xwmhints );
        XFree(xwmhints);
        // done setting the icon