From f3102efc39d09f5fcb55631b80e9dccccd37dbe6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 15 Nov 2007 15:43:58 +0100 Subject: [PATCH] retag window on configurerequest --- event.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/event.c b/event.c index 98412850f..4bb91cd90 100644 --- a/event.c +++ b/event.c @@ -163,8 +163,9 @@ handle_event_configurerequest(XEvent * e, awesome_config *awesomeconf) drawstatusbar(&awesomeconf[old_screen]); drawstatusbar(&awesomeconf[c->screen]); } - if(isvisible(c, c->screen, awesomeconf[c->screen].tags, awesomeconf[c->screen].ntags)) - XMoveResizeWindow(e->xany.display, c->win, c->x, c->y, c->w, c->h); + tag_client_with_current_selected(c, &awesomeconf[c->screen]); + XMoveResizeWindow(e->xany.display, c->win, c->rx, c->ry, c->rw, c->rh); + arrange(&awesomeconf[c->screen]); } else window_configure(c->display, c->win, c->x, c->y, c->w, c->h, c->border);