summaryrefslogtreecommitdiff
path: root/openbox/client_menu.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-09 00:29:30 +0000
committerDana Jansens <danakj@orodu.net>2007-05-09 00:29:30 +0000
commitc254f76022e193775906522c8201e653bd59d045 (patch)
treebc196d8deecdc5f3af3dd4d36bc3105f2f5ea26d /openbox/client_menu.c
parentb190fb6bb6dffca826e48748817f52b9f3ae7c54 (diff)
fix move and resize up
Diffstat (limited to 'openbox/client_menu.c')
-rw-r--r--openbox/client_menu.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/openbox/client_menu.c b/openbox/client_menu.c
index 66706f44..d4b450cf 100644
--- a/openbox/client_menu.c
+++ b/openbox/client_menu.c
@@ -105,15 +105,17 @@ static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f,
Time time)
{
GList *it;
+ gint x, y;
g_assert(c);
switch (e->id) {
case CLIENT_ICONIFY:
- client_iconify(c, TRUE, FALSE);
/* the client won't be on screen anymore so hide the menu */
menu_frame_hide_all();
f = NULL; /* and don't update */
+
+ client_iconify(c, TRUE, FALSE);
break;
case CLIENT_RESTORE:
client_maximize(c, FALSE, 0);
@@ -128,10 +130,22 @@ static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f,
client_set_undecorated(c, !c->undecorated);
break;
case CLIENT_MOVE:
- moveresize_start(c,0,0,0, prop_atoms.net_wm_moveresize_move_keyboard);
+ /* 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_move_keyboard);
break;
case CLIENT_RESIZE:
- moveresize_start(c,0,0,0,prop_atoms.net_wm_moveresize_size_keyboard);
+ /* 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);
break;
case CLIENT_CLOSE:
client_close(c);