]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent duplicate grab setting with xwidgets
authorPo Lu <luangruo@yahoo.com>
Fri, 28 Jan 2022 09:49:38 +0000 (17:49 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 28 Jan 2022 09:56:17 +0000 (17:56 +0800)
* src/xwidget.c (xwidget_show_view): Don't set passive grab if
already set.

src/xwidget.c

index 5ac8ed4e198ec1b8ccf86b6732302948d04cc9b3..85535a35b13ce2987f739a652ca4c8e6223d0eca 100644 (file)
@@ -1178,7 +1178,7 @@ xwidget_button_1 (struct xwidget_view *view,
   if (!target)
     target = model->widget_osr;
 
-  if (down_p)
+  if (down_p && !view->passive_grab)
     {
       view->passive_grab = target;
       view->passive_grab_destruction_signal