aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2014-09-17 18:09:30 +0000
committerokan2014-09-17 18:09:30 +0000
commitb8f5bceb1e3eb570c672162836c310335254a3dc (patch)
tree0c52736cc8d68b1c232900e13426ba19e5362256
parent1c79eb7168bb6b7736c78f333544624a1d838e57 (diff)
downloadcwm-b8f5bceb1e3eb570c672162836c310335254a3dc.tar.gz
ewmh states _NET_WM_STATE_STICKY should not alter position
-rw-r--r--client.c8
-rw-r--r--kbfunc.c4
-rw-r--r--mousefunc.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/client.c b/client.c
index f5e6350..5a3baba 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.185 2014/09/17 16:30:21 okan Exp $
+ * $OpenBSD: client.c,v 1.186 2014/09/17 18:09:30 okan Exp $
*/
#include <sys/param.h>
@@ -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 1dedc0a..07de207 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: kbfunc.c,v 1.101 2014/09/11 16:06:26 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.102 2014/09/17 18:09:30 okan Exp $
*/
#include <sys/param.h>
@@ -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 9fe8b1b..7551ca1 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: mousefunc.c,v 1.82 2014/09/17 16:32:53 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.83 2014/09/17 18:09:30 okan Exp $
*/
#include <sys/param.h>
@@ -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)