Don’t allow floating clients to reconfigure themselves when in fullscreen (Thanks Volker)

This commit is contained in:
Michael Stapelberg 2009-06-28 01:52:06 +02:00
parent 2db28631c8
commit acf1eb0c92
1 changed files with 10 additions and 10 deletions

View File

@ -478,6 +478,16 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure
return 1; 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 */ /* Floating clients can be reconfigured */
if (client_is_floating(client)) { if (client_is_floating(client)) {
i3Font *font = load_font(conn, config.font); 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; 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); fake_absolute_configure_notify(conn, client);
return 1; return 1;