diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtkutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 7370a795c08..0f1c1103649 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -4805,7 +4805,13 @@ xg_event_is_for_scrollbar (struct frame *f, const EVENT *event) | |||
| 4805 | #else | 4805 | #else |
| 4806 | gwin = gdk_display_get_window_at_pointer (gdpy, NULL, NULL); | 4806 | gwin = gdk_display_get_window_at_pointer (gdpy, NULL, NULL); |
| 4807 | #endif | 4807 | #endif |
| 4808 | #ifndef HAVE_XINPUT2 | ||
| 4808 | retval = gwin != gtk_widget_get_window (f->output_data.xp->edit_widget); | 4809 | retval = gwin != gtk_widget_get_window (f->output_data.xp->edit_widget); |
| 4810 | #else | ||
| 4811 | retval = (gwin | ||
| 4812 | && (gwin | ||
| 4813 | != gtk_widget_get_window (f->output_data.xp->edit_widget))); | ||
| 4814 | #endif | ||
| 4809 | #ifdef HAVE_XINPUT2 | 4815 | #ifdef HAVE_XINPUT2 |
| 4810 | GtkWidget *grab = gtk_grab_get_current (); | 4816 | GtkWidget *grab = gtk_grab_get_current (); |
| 4811 | if (event->type == GenericEvent | 4817 | if (event->type == GenericEvent |