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
This commit is contained in:
@@ -343,9 +343,12 @@ expose_event_border(GtkWidget* widget, GdkEventExpose* gdk_event, wxWindow* win)
|
|||||||
// for scrollable ones
|
// for scrollable ones
|
||||||
detail = "viewport";
|
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_paint_shadow(
|
||||||
gtk_widget_get_style(win->m_wxwindow), gdk_event->window, GTK_STATE_NORMAL,
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user