mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 23:54:40 +00:00
display: Expose meta_grab_op_is_mouse_only
And use it properly in some event handling code.
This commit is contained in:
@@ -1148,8 +1148,8 @@ meta_get_display (void)
|
||||
return the_display;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
grab_op_is_mouse_only (MetaGrabOp op)
|
||||
gboolean
|
||||
meta_grab_op_is_mouse_only (MetaGrabOp op)
|
||||
{
|
||||
switch (op)
|
||||
{
|
||||
@@ -1915,7 +1915,7 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
||||
}
|
||||
|
||||
/* Grab keys for keyboard ops and mouse move/resizes; see #126497 */
|
||||
if (meta_grab_op_is_keyboard (op) || grab_op_is_mouse_only (op))
|
||||
if (meta_grab_op_is_keyboard (op) || meta_grab_op_is_mouse_only (op))
|
||||
{
|
||||
if (grab_window)
|
||||
display->grab_have_keyboard =
|
||||
|
Reference in New Issue
Block a user