Skip to content

Commit f690418

Browse files
committed
window-x11.c: Ignore rectangles if those are bugged.
1 parent 86c4b0b commit f690418

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/x11/window-x11.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3817,10 +3817,14 @@ meta_window_x11_configure_notify (MetaWindow *window,
38173817
g_assert (window->override_redirect);
38183818
g_assert (window->frame == NULL);
38193819

3820-
window->rect.x = event->x;
3821-
window->rect.y = event->y;
3822-
window->rect.width = event->width;
3823-
window->rect.height = event->height;
3820+
if (event->width != 1 &&
3821+
event->height != 1)
3822+
{
3823+
window->rect.x = event->x;
3824+
window->rect.y = event->y;
3825+
window->rect.width = event->width;
3826+
window->rect.height = event->height;
3827+
}
38243828

38253829
priv->client_rect = window->rect;
38263830
window->buffer_rect = window->rect;

0 commit comments

Comments
 (0)