From f4d5da91f4d7a794e175069435c87ecd187a914f Mon Sep 17 00:00:00 2001 From: Diego Borghetti Date: Sun, 28 Dec 2008 19:16:07 +0000 Subject: 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. --- intern/ghost/intern/GHOST_SystemX11.cpp | 7 ++----- intern/ghost/intern/GHOST_WindowX11.cpp | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'intern') 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 -- cgit v1.2.3