From 8f8d603227e8bd5296d59b0c4661a6bb8d78668c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 16 Sep 2007 17:28:42 +0200 Subject: [PATCH] bug fix: move/resize with tiled windows --- event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event.c b/event.c index bb01850fd..751be259f 100644 --- a/event.c +++ b/event.c @@ -186,7 +186,7 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf) return; if(ev->button == Button1) { - if(IS_ARRANGE(floating) || c->isfloating) + if(!IS_ARRANGE(floating) && !c->isfloating) uicb_togglefloating(e->xany.display, c->screen, &dc[c->screen], &awesomeconf[c->screen], NULL); else restack(e->xany.display, c->screen, &dc[c->screen], &awesomeconf[c->screen]); @@ -201,7 +201,7 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf) } else if(ev->button == Button3) { - if(IS_ARRANGE(floating) && !c->isfloating) + if(!IS_ARRANGE(floating) && !c->isfloating) uicb_togglefloating(e->xany.display, c->screen, &dc[c->screen], &awesomeconf[c->screen], NULL); else restack(e->xany.display, c->screen, &dc[c->screen], &awesomeconf[c->screen]);