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=cc4ac7e288848ebd56c122426aaa9c1e0725b038;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 3c128d2c..5b6ef267 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); }