mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
window-x11: Simplify some grab op code
This commit is contained in:
parent
d931af33c4
commit
f8dcea3975
@ -1854,27 +1854,8 @@ meta_window_move_resize_request (MetaWindow *window,
|
|||||||
* Still have to do the ConfigureNotify and all, but pretend the
|
* Still have to do the ConfigureNotify and all, but pretend the
|
||||||
* app asked for the current size/position instead of the new one.
|
* app asked for the current size/position instead of the new one.
|
||||||
*/
|
*/
|
||||||
in_grab_op = FALSE;
|
in_grab_op = (window->display->grab_window == window &&
|
||||||
if (window->display->grab_op != META_GRAB_OP_NONE &&
|
meta_grab_op_is_mouse (window->display->grab_op));
|
||||||
window == window->display->grab_window)
|
|
||||||
{
|
|
||||||
switch (window->display->grab_op)
|
|
||||||
{
|
|
||||||
case META_GRAB_OP_MOVING:
|
|
||||||
case META_GRAB_OP_RESIZING_SE:
|
|
||||||
case META_GRAB_OP_RESIZING_S:
|
|
||||||
case META_GRAB_OP_RESIZING_SW:
|
|
||||||
case META_GRAB_OP_RESIZING_N:
|
|
||||||
case META_GRAB_OP_RESIZING_NE:
|
|
||||||
case META_GRAB_OP_RESIZING_NW:
|
|
||||||
case META_GRAB_OP_RESIZING_W:
|
|
||||||
case META_GRAB_OP_RESIZING_E:
|
|
||||||
in_grab_op = TRUE;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* it's essential to use only the explicitly-set fields,
|
/* it's essential to use only the explicitly-set fields,
|
||||||
* and otherwise use our current up-to-date position.
|
* and otherwise use our current up-to-date position.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user