vcl/unx/gtk3/gtkinst.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4f41fb1cba455db617d7fb68450ea1e38ac9cb0d
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Dec 6 10:28:54 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Dec 6 18:14:10 2021 +0100

    tdf#138999 only grab keyboard and not pointing devices
    
    this way scrolling in a combobox dropdown and moving the mouse outside
    the widget doesn't cause the scrollbar to jump to the top. No ill
    effect seen in
    
    a) autofilter dropdowns in calc
    b) color dropdown in writer main window or sidebar and clicking on
       combobox subwidget to launch its popup and select an entry to
       return to color dropdown
    c) submenu popups from style combobox dropdown
    
    Change-Id: I6ad445a6fab899d52907237e1f5506cce31b1f48
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126408
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index c993e16fc4ce..fbd171a14549 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -9627,7 +9627,7 @@ void do_grab(GtkWidget* pWidget)
     GdkDisplay *pDisplay = gtk_widget_get_display(pWidget);
     GdkSeat* pSeat = gdk_display_get_default_seat(pDisplay);
     gdk_seat_grab(pSeat, widget_get_surface(pWidget),
-                  GDK_SEAT_CAPABILITY_ALL, true, nullptr, nullptr, nullptr, 
nullptr);
+                  GDK_SEAT_CAPABILITY_KEYBOARD, true, nullptr, nullptr, 
nullptr, nullptr);
 }
 
 void do_ungrab(GtkWidget* pWidget)

Reply via email to