mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
ewmh states _NET_WM_STATE_STICKY should not alter position
This commit is contained in:
6
client.c
6
client.c
@@ -299,7 +299,7 @@ client_maximize(struct client_ctx *cc)
|
|||||||
struct screen_ctx *sc = cc->sc;
|
struct screen_ctx *sc = cc->sc;
|
||||||
struct geom xine;
|
struct geom xine;
|
||||||
|
|
||||||
if (cc->flags & CLIENT_FREEZE)
|
if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_MAXIMIZED) {
|
if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_MAXIMIZED) {
|
||||||
@@ -344,7 +344,7 @@ client_vmaximize(struct client_ctx *cc)
|
|||||||
struct screen_ctx *sc = cc->sc;
|
struct screen_ctx *sc = cc->sc;
|
||||||
struct geom xine;
|
struct geom xine;
|
||||||
|
|
||||||
if (cc->flags & CLIENT_FREEZE)
|
if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (cc->flags & CLIENT_VMAXIMIZED) {
|
if (cc->flags & CLIENT_VMAXIMIZED) {
|
||||||
@@ -376,7 +376,7 @@ client_hmaximize(struct client_ctx *cc)
|
|||||||
struct screen_ctx *sc = cc->sc;
|
struct screen_ctx *sc = cc->sc;
|
||||||
struct geom xine;
|
struct geom xine;
|
||||||
|
|
||||||
if (cc->flags & CLIENT_FREEZE)
|
if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (cc->flags & CLIENT_HMAXIMIZED) {
|
if (cc->flags & CLIENT_HMAXIMIZED) {
|
||||||
|
|||||||
2
kbfunc.c
2
kbfunc.c
@@ -60,7 +60,7 @@ kbfunc_client_moveresize(struct client_ctx *cc, union arg *arg)
|
|||||||
int x, y, flags, amt;
|
int x, y, flags, amt;
|
||||||
unsigned int mx, my;
|
unsigned int mx, my;
|
||||||
|
|
||||||
if (cc->flags & CLIENT_FREEZE)
|
if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mx = my = 0;
|
mx = my = 0;
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ mousefunc_client_resize(struct client_ctx *cc, union arg *arg)
|
|||||||
struct screen_ctx *sc = cc->sc;
|
struct screen_ctx *sc = cc->sc;
|
||||||
int x = cc->geom.x, y = cc->geom.y;
|
int x = cc->geom.x, y = cc->geom.y;
|
||||||
|
|
||||||
if (cc->flags & CLIENT_FREEZE)
|
if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
client_raise(cc);
|
client_raise(cc);
|
||||||
@@ -130,7 +130,7 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg)
|
|||||||
|
|
||||||
client_raise(cc);
|
client_raise(cc);
|
||||||
|
|
||||||
if (cc->flags & CLIENT_FREEZE)
|
if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (xu_ptr_grab(cc->win, MOUSEMASK, Conf.cursor[CF_MOVE]) < 0)
|
if (xu_ptr_grab(cc->win, MOUSEMASK, Conf.cursor[CF_MOVE]) < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user