]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/dcclient.cpp
don't call CreatesMessageOutput() explicitly, it will be created on demand as/if...
[wxWidgets.git] / src / x11 / dcclient.cpp
index 8693ee3f4c675aee97e5b3863c84c7fe0b7a1e05..81bbf7a9227f96929009846bfb6cb2f4faf4e9f1 100644 (file)
@@ -2046,13 +2046,14 @@ wxClientDC::wxClientDC( wxWindow *window )
     
     m_window = (WXWindow*) window->GetClientAreaWindow();
     
-#if wxUSE_TWO_WINDOWS
-#else
+    // Adjust the client area when the wxWindow is not using 2 X windows.
+    if (m_window == (WXWindow*) window->GetMainWindow())
+    {
         wxPoint ptOrigin = window->GetClientAreaOrigin();
         SetDeviceOrigin(ptOrigin.x, ptOrigin.y);
         wxSize size = window->GetClientSize();
         SetClippingRegion(wxPoint(0, 0), size);
-#endif
+    }
 }
 
 void wxClientDC::DoGetSize(int *width, int *height) const