From 98442a04674f5512340019e7b969a6a8d0615a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann?= Date: Fri, 21 Jan 2005 16:30:10 +0000 Subject: Some cleanups Make frame windows override redirect so clients can resize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fri Jan 21 11:26:27 2005 Søren Sandmann * src/window.c: Some cleanups * src/ui.c: Make frame windows override redirect so clients can resize them. --- src/display.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'src/display.c') diff --git a/src/display.c b/src/display.c index a6711050..430267d7 100644 --- a/src/display.c +++ b/src/display.c @@ -1084,6 +1084,50 @@ meta_grab_op_is_resizing (MetaGrabOp op) } } +gboolean +meta_grab_op_is_resizing_east (MetaGrabOp op) +{ + return (op == META_GRAB_OP_RESIZING_SE || + op == META_GRAB_OP_RESIZING_NE || + op == META_GRAB_OP_RESIZING_E || + op == META_GRAB_OP_KEYBOARD_RESIZING_SE || + op == META_GRAB_OP_KEYBOARD_RESIZING_NE || + op == META_GRAB_OP_KEYBOARD_RESIZING_E); +} + +gboolean +meta_grab_op_is_resizing_west (MetaGrabOp op) +{ + return (op == META_GRAB_OP_RESIZING_NW || + op == META_GRAB_OP_RESIZING_SW || + op == META_GRAB_OP_RESIZING_W || + op == META_GRAB_OP_KEYBOARD_RESIZING_NW || + op == META_GRAB_OP_KEYBOARD_RESIZING_SW || + op == META_GRAB_OP_KEYBOARD_RESIZING_W); +} + +gboolean +meta_grab_op_is_resizing_south (MetaGrabOp op) +{ + return (op == META_GRAB_OP_RESIZING_SW || + op == META_GRAB_OP_RESIZING_SE || + op == META_GRAB_OP_RESIZING_S || + op == META_GRAB_OP_KEYBOARD_RESIZING_SW || + op == META_GRAB_OP_KEYBOARD_RESIZING_SE || + op == META_GRAB_OP_KEYBOARD_RESIZING_S); +} + +gboolean +meta_grab_op_is_resizing_north (MetaGrabOp op) +{ + return (op == META_GRAB_OP_RESIZING_NW || + op == META_GRAB_OP_RESIZING_NE || + op == META_GRAB_OP_RESIZING_N || + op == META_GRAB_OP_KEYBOARD_RESIZING_NW || + op == META_GRAB_OP_KEYBOARD_RESIZING_NE || + op == META_GRAB_OP_KEYBOARD_RESIZING_N); +} + gboolean meta_grab_op_is_moving (MetaGrabOp op) { -- cgit v1.2.1