Revision: 18126
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18126
Author:   bdiego
Date:     2008-12-28 20:16:07 +0100 (Sun, 28 Dec 2008)

Log Message:
-----------
Tweak here.. tweak there.. and hope that the damn focus bug is fixed now!!

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.

Modified Paths:
--------------
    branches/blender2.5/blender/intern/ghost/intern/GHOST_SystemX11.cpp
    branches/blender2.5/blender/intern/ghost/intern/GHOST_WindowX11.cpp

Modified: branches/blender2.5/blender/intern/ghost/intern/GHOST_SystemX11.cpp
===================================================================
--- branches/blender2.5/blender/intern/ghost/intern/GHOST_SystemX11.cpp 
2008-12-28 18:10:24 UTC (rev 18125)
+++ branches/blender2.5/blender/intern/ghost/intern/GHOST_SystemX11.cpp 
2008-12-28 19:16:07 UTC (rev 18126)
@@ -233,12 +233,9 @@
        );
 
        if (window) {
+               // Both are now handle in GHOST_WindowX11.cpp
+               // Focus and Delete atoms.
 
-               // 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);
-
                if (window->getValid()) {
                        // Store the pointer to the window 
                        m_windowManager->addWindow(window);

Modified: branches/blender2.5/blender/intern/ghost/intern/GHOST_WindowX11.cpp
===================================================================
--- branches/blender2.5/blender/intern/ghost/intern/GHOST_WindowX11.cpp 
2008-12-28 18:10:24 UTC (rev 18125)
+++ branches/blender2.5/blender/intern/ghost/intern/GHOST_WindowX11.cpp 
2008-12-28 19:16:07 UTC (rev 18126)
@@ -372,7 +372,8 @@
        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


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to