X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fclient_menu.c;h=a44fcbcc5e4cc8e332bec6ee8e11d509368eb63d;hb=cdb108c76d20e8272bfbd15919e32e609d685322;hp=dd9fe33e4cd0aea975903fdf184a3b584d228c83;hpb=f806e7f24ea793ccc1462979ea031289aed2fe8f;p=chaz%2Fopenbox diff --git a/openbox/client_menu.c b/openbox/client_menu.c index dd9fe33e..a44fcbcc 100644 --- a/openbox/client_menu.c +++ b/openbox/client_menu.c @@ -104,7 +104,6 @@ static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f, ObClient *c, guint state, gpointer data, Time time) { - GList *it; gint x, y; g_assert(c); @@ -134,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);