diff options
author | okan | 2014-09-17 18:09:30 +0000 |
---|---|---|
committer | okan | 2014-09-17 18:09:30 +0000 |
commit | b8f5bceb1e3eb570c672162836c310335254a3dc (patch) | |
tree | 0c52736cc8d68b1c232900e13426ba19e5362256 /mousefunc.c | |
parent | 1c79eb7168bb6b7736c78f333544624a1d838e57 (diff) | |
download | cwm-b8f5bceb1e3eb570c672162836c310335254a3dc.tar.gz |
ewmh states _NET_WM_STATE_STICKY should not alter position
Diffstat (limited to '')
-rw-r--r-- | mousefunc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |