Avoid applying "no-window" mouse coordinate conversion to generic wxWindow
For a wxPizza widget in a GtkScrolledWindow, the coordinates are already correct.
This commit is contained in:
parent
6cb6cf1fde
commit
fc8a780932
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ template<typename T> void InitMouseEvent(wxWindowGTK *win,
|
|||
// Some no-window widgets, notably GtkEntry on GTK3, have a GdkWindow
|
||||
// covering part of their area. Event coordinates from that window are
|
||||
// not relative to the widget, so do the conversion here.
|
||||
if (!gtk_widget_get_has_window(win->m_widget) &&
|
||||
if (win->m_wxwindow == nullptr && !gtk_widget_get_has_window(win->m_widget) &&
|
||||
gtk_widget_get_window(win->m_widget) == gdk_window_get_parent(gdk_event->window))
|
||||
{
|
||||
GtkAllocation a;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue