summaryrefslogtreecommitdiff
path: root/openbox/client_menu.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-09 04:04:53 +0000
committerDana Jansens <danakj@orodu.net>2007-05-09 04:04:53 +0000
commit4546925b589d30c46f3bced74a02b3d531de894c (patch)
treec0963f1e1302a79bb31cb9968283e8fcefa50a70 /openbox/client_menu.c
parent65eb46bd1f1f6c97cf1ff9506dd65792303a7ed4 (diff)
get the mouse pointer position if it is on another screen too.
let you move/resize from the client menu if the mouse is on another screen
Diffstat (limited to 'openbox/client_menu.c')
-rw-r--r--openbox/client_menu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/openbox/client_menu.c b/openbox/client_menu.c
index 35acd4fd..a44fcbcc 100644
--- a/openbox/client_menu.c
+++ b/openbox/client_menu.c
@@ -133,18 +133,18 @@ static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f,
menu_frame_hide_all();
f = NULL; /* and don't update */
- if (screen_pointer_pos(&x, &y))
- moveresize_start(c, x, y, 0,
- prop_atoms.net_wm_moveresize_move_keyboard);
+ screen_pointer_pos(&x, &y);
+ moveresize_start(c, x, y, 0,
+ prop_atoms.net_wm_moveresize_move_keyboard);
break;
case CLIENT_RESIZE:
/* this needs to grab the keyboard so hide the menu */
menu_frame_hide_all();
f = NULL; /* and don't update */
- if (screen_pointer_pos(&x, &y))
- moveresize_start(c, x, y, 0,
- prop_atoms.net_wm_moveresize_size_keyboard);
+ screen_pointer_pos(&x, &y);
+ moveresize_start(c, x, y, 0,
+ prop_atoms.net_wm_moveresize_size_keyboard);
break;
case CLIENT_CLOSE:
client_close(c);