From: Mikael Magnusson Date: Tue, 29 Jan 2019 21:41:57 +0000 (+0100) Subject: Move anywhere if you can't resize the window X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=2560a6e110472ef99317378b21f1cb9fff601093;p=mikachu%2Fopenbox.git Move anywhere if you can't resize the window This makes it a lot easier to move fullscreen windows between monitors with the Resize action. --- diff --git a/openbox/actions/resize.c b/openbox/actions/resize.c index fc85c0b7..fc5c142c 100644 --- a/openbox/actions/resize.c +++ b/openbox/actions/resize.c @@ -75,7 +75,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_KEYBOARD); else if (o->corner_specified) corner = o->corner; /* it was specified in the binding */ - else + else if (c->functions & OB_CLIENT_FUNC_RESIZE) corner = pick_corner(data->x, data->y, c->frame->area.x, c->frame->area.y, /* use the client size because the frame @@ -86,6 +86,10 @@ static gboolean run_func(ObActionsData *data, gpointer options) c->frame->size.right, c->area.height + c->frame->size.top + c->frame->size.bottom, c->shaded); + else if (c->functions & OB_CLIENT_FUNC_MOVE) + corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE); + else + return FALSE; moveresize_start(c, data->x, data->y, data->button, corner); }