bug fix: move/resize with tiled windows

This commit is contained in:
Julien Danjou 2007-09-16 17:28:42 +02:00
parent 14107bb49f
commit 8f8d603227
1 changed files with 2 additions and 2 deletions

View File

@ -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]);