diff options
author | Diego Borghetti <bdiego@gmail.com> | 2008-12-28 22:16:07 +0300 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2008-12-28 22:16:07 +0300 |
commit | f4d5da91f4d7a794e175069435c87ecd187a914f (patch) | |
tree | 7408d992fdbb7366ac5bac5f58fd1ea66e1b5614 /intern | |
parent | 9b2dec96317d067ecca0d010d0ae72a20223ad63 (diff) |
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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemX11.cpp | 7 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_WindowX11.cpp | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index 5a145510e54..0d19c3b230d 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -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 diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index 3785b325eaf..34ce0409d53 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -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 |