]> git.saurik.com Git - wxWidgets.git/commitdiff
Commented out XSetInputFocus for now
authorJulian Smart <julian@anthemion.co.uk>
Thu, 14 Feb 2002 11:37:19 +0000 (11:37 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 14 Feb 2002 11:37:19 +0000 (11:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/toplevel.cpp
src/x11/window.cpp

index b610b7f0a5fcdc540778c2a541750aed7a504673..868accf3894be86bf7ff3bd8949d952f548228e0 100644 (file)
@@ -114,7 +114,7 @@ bool wxTopLevelWindowX11::Create(wxWindow *parent,
     Window xwindow = XCreateWindow( xdisplay, xparent, pos.x, pos.y, size.x, size.y, 
        0, DefaultDepth(xdisplay,xscreen), InputOutput, xvisual, xattributes_mask, &xattributes );
     m_mainWidget = (WXWindow) xwindow;
-    
+
     XSelectInput( xdisplay, xwindow,
         ExposureMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |
         ButtonMotionMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask |
index 7a5ce9f198c7568e0b062eda433fcb22f176e914..581df029432c80d5688ef00fd3cc5592bd3dc9a9 100644 (file)
@@ -209,12 +209,19 @@ void wxWindowX11::SetFocus()
     Window wMain = (Window) GetMainWindow();
     if (wMain)
     {
+       // TODO: set a m_needInputFocus flag and do the
+       // the setting in OnIdle or Show, because we can't
+       // set the focus for an unmapped window.
+       // We need to figure out how to find out if the window
+       // is mapped.
+#if 0
         XSetInputFocus(wxGlobalDisplay(), wMain, RevertToParent, CurrentTime);
         
         XWMHints wmhints;
         wmhints.flags = InputHint;
         wmhints.input = True;
         XSetWMHints(wxGlobalDisplay(), wMain, &wmhints);
+#endif
     }
 }