]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
Corrected some wxAccessible mistakes
[wxWidgets.git] / src / motif / window.cpp
index 4800390b1d5cfb621caafc5eeddc5f1645ef68f4..2e9b48a49a0ab400e41ba02cc2af401b69071110 100644 (file)
@@ -172,26 +172,26 @@ bool wxWindow::MapOrUnmap(WXWidget widget, bool domap)
     if ( !w )
         return FALSE;
 
+    //   Rationale: a lot of common operations (including but not
+    // limited to moving, resizing and appending items to a listbox)
+    // unmamange the widget, do their work, then manage it again.
+    // This means that, for example adding an item to a listbox will show it,
+    // or that most controls are shown every time they are moved or resized!
+    XtSetMappedWhenManaged( w, domap );
+
     // if the widget is not unmanaged, it still intercepts
     // mouse events, even if it is not mapped (and hence invisible)
     if ( domap )
     {
         XtManageChild(w);
-        XtMapWidget(w);
+        // XtMapWidget(w);
     }
     else
     {
-        XtUnmapWidget(w);
         XtUnmanageChild(w);
+        // XtUnmapWidget(w);
     }
 
-    //   Rationale: a lot of common operations (including but not
-    // limited to moving, resizing and appending items to a listbox)
-    // unmamange the widget, do their work, then manage it again.
-    // This means that, for example adding an item to a listbox will show it,
-    // or that most controls are shown every time they are moved or resized!
-    XtSetMappedWhenManaged( w, domap );
-
     return TRUE;
 }
 
@@ -634,8 +634,8 @@ bool wxWindow::Show(bool show)
 
     if (m_borderWidget || m_scrolledWindow)
     {
-        MapOrUnmap(m_drawingArea, show);
         MapOrUnmap(m_borderWidget ? m_borderWidget : m_scrolledWindow, show);
+        // MapOrUnmap(m_drawingArea, show);
     }
     else
     {