summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2014-09-17 18:09:30 +0000
committerokan <okan>2014-09-17 18:09:30 +0000
commit458dd31b937e1ee84699ec346fd1304a14bb0cf6 (patch)
treef4ffb2d8e7b605e391e868c568f0c601a833e932
parent736d973f4668d0c2db37b54c3ecfd41aa6e5ca39 (diff)
downloadcwm-458dd31b937e1ee84699ec346fd1304a14bb0cf6.tar.gz
cwm-458dd31b937e1ee84699ec346fd1304a14bb0cf6.tar.xz
cwm-458dd31b937e1ee84699ec346fd1304a14bb0cf6.zip
ewmh states _NET_WM_STATE_STICKY should not alter position
-rw-r--r--client.c6
-rw-r--r--kbfunc.c2
-rw-r--r--mousefunc.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/client.c b/client.c
index 55b32e4..19ebece 100644
--- a/client.c
+++ b/client.c
@@ -299,7 +299,7 @@ client_maximize(struct client_ctx *cc)
 	struct screen_ctx	*sc = cc->sc;
 	struct geom		 xine;
 
-	if (cc->flags & CLIENT_FREEZE)
+	if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
 		return;
 
 	if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_MAXIMIZED) {
@@ -344,7 +344,7 @@ client_vmaximize(struct client_ctx *cc)
 	struct screen_ctx	*sc = cc->sc;
 	struct geom		 xine;
 
-	if (cc->flags & CLIENT_FREEZE)
+	if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
 		return;
 
 	if (cc->flags & CLIENT_VMAXIMIZED) {
@@ -376,7 +376,7 @@ client_hmaximize(struct client_ctx *cc)
 	struct screen_ctx	*sc = cc->sc;
 	struct geom		 xine;
 
-	if (cc->flags & CLIENT_FREEZE)
+	if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
 		return;
 
 	if (cc->flags & CLIENT_HMAXIMIZED) {
diff --git a/kbfunc.c b/kbfunc.c
index f5d4d08..a379e4e 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -60,7 +60,7 @@ kbfunc_client_moveresize(struct client_ctx *cc, union arg *arg)
 	int			 x, y, flags, amt;
 	unsigned int		 mx, my;
 
-	if (cc->flags & CLIENT_FREEZE)
+	if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
 		return;
 
 	mx = my = 0;
diff --git a/mousefunc.c b/mousefunc.c
index 8784039..0809166 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -73,7 +73,7 @@ mousefunc_client_resize(struct client_ctx *cc, union arg *arg)
 	struct screen_ctx	*sc = cc->sc;
 	int			 x = cc->geom.x, y = cc->geom.y;
 
-	if (cc->flags & CLIENT_FREEZE)
+	if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
 		return;
 
 	client_raise(cc);
@@ -130,7 +130,7 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg)
 
 	client_raise(cc);
 
-	if (cc->flags & CLIENT_FREEZE)
+	if (cc->flags & (CLIENT_FREEZE|CLIENT_STICKY))
 		return;
 
 	if (xu_ptr_grab(cc->win, MOUSEMASK, Conf.cursor[CF_MOVE]) < 0)