mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
display: Rewrite grab_op_should_block_wayland to be a tiny bit clearer
This commit is contained in:
parent
30d534f17e
commit
b4293d46a6
@ -1301,7 +1301,15 @@ meta_grab_op_is_clicking (MetaGrabOp grab_op)
|
||||
gboolean
|
||||
meta_grab_op_should_block_wayland (MetaGrabOp op)
|
||||
{
|
||||
return (op != META_GRAB_OP_NONE && !meta_grab_op_is_clicking (op));
|
||||
if (op == META_GRAB_OP_NONE)
|
||||
return FALSE;
|
||||
|
||||
/* Clicking on a frame button needs us to deliver events to the
|
||||
* frame window, since the button is part of the frame here. */
|
||||
if (meta_grab_op_is_clicking (op))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user