]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
Context menu event from keyboard records the mouse position, not -1, -1,
[wxWidgets.git] / src / gtk / dcclient.cpp
index 43ac53209d86eb902252725c5b0de8013810da3d..c8ee27bd35469dd87619891a8e732da948ecb254 100644 (file)
@@ -2457,7 +2457,7 @@ wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *win )
     wxPoint ptOrigin = win->GetClientAreaOrigin();
     SetDeviceOrigin(ptOrigin.x, ptOrigin.y);
     wxSize size = win->GetClientSize();
-    SetClippingRegion(wxPoint(0, 0), size);
+    DoSetClippingRegion(0, 0, size.x, size.y);
 #endif 
     // __WXUNIVERSAL__
 }