From: Paul Cornett Date: Sat, 2 Apr 2011 18:28:52 +0000 (+0000) Subject: fix overwrite of upper left part of parent window with sunken/raised border, fixes... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4f4f76dee4d8c8166250c34d4f5ef75d439b82a9 fix overwrite of upper left part of parent window with sunken/raised border, fixes #13072 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index e63968f3b9..39e2c7603b 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -343,9 +343,12 @@ expose_event_border(GtkWidget* widget, GdkEventExpose* gdk_event, wxWindow* win) // for scrollable ones detail = "viewport"; + // clip rect is required to avoid painting background + // over upper left (w,h) of parent window + GdkRectangle clipRect = { x, y, w, h }; gtk_paint_shadow( gtk_widget_get_style(win->m_wxwindow), gdk_event->window, GTK_STATE_NORMAL, - shadow, NULL, wxGTKPrivate::GetEntryWidget(), detail, x, y, w, h); + shadow, &clipRect, wxGTKPrivate::GetEntryWidget(), detail, x, y, w, h); } return false; }