From: Michael Stapelberg Date: Sat, 27 Jun 2009 23:52:06 +0000 (+0200) Subject: Don’t allow floating clients to reconfigure themselves when in fullscreen (Thanks... X-Git-Tag: 3.c~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=acf1eb0c92be37d5860ed5d0e95e6af5200b4a9c;p=i3%2Fi3 Don’t allow floating clients to reconfigure themselves when in fullscreen (Thanks Volker) --- 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;