From acf1eb0c92be37d5860ed5d0e95e6af5200b4a9c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 28 Jun 2009 01:52:06 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20allow=20floating=20clients=20to?= =?utf8?q?=20reconfigure=20themselves=20when=20in=20fullscreen=20(Thanks?= =?utf8?q?=20Volker)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index 015e716a..5a1d6666 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -478,6 +478,16 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure return 1; } + if (client->fullscreen) { + LOG("Client is in fullscreen mode\n"); + + Rect child_rect = client->container->workspace->rect; + child_rect.x = child_rect.y = 0; + fake_configure_notify(conn, child_rect, client->child); + + return 1; + } + /* Floating clients can be reconfigured */ if (client_is_floating(client)) { i3Font *font = load_font(conn, config.font); @@ -512,16 +522,6 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure return 1; } - if (client->fullscreen) { - LOG("Client is in fullscreen mode\n"); - - Rect child_rect = client->container->workspace->rect; - child_rect.x = child_rect.y = 0; - fake_configure_notify(conn, child_rect, client->child); - - return 1; - } - fake_absolute_configure_notify(conn, client); return 1; -- 2.39.5