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

New commits:
commit 0db4adad840c591393466256d62e4bee6b2f929d
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Dec 6 10:28:54 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Dec 10 11:00:08 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>
    (cherry picked from commit 4f41fb1cba455db617d7fb68450ea1e38ac9cb0d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126430

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 88926218bd0b..f5f1498443dc 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