Skip to content

Commit e5d55ef

Browse files
committed
WM/window: don't manage 1x1 pixel windows.
1 parent 56c4f55 commit e5d55ef

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Applications/Workspace/WM/window.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,14 @@ WWindow *wManageWindow(WScreen *scr, Window window)
754754
/* get geometry stuff */
755755
wClientGetNormalHints(wwin, &wattribs, True, &x, &y, &width, &height);
756756

757+
/* Some applications create placeholder windows with 1x1 size (e.g. VirtualBox internal windows).
758+
Don't manage those initial 1x1 windows. */
759+
if (width <= 1 && height <= 1 && !wwin->flags.is_dockapp) {
760+
wWindowDestroy(wwin);
761+
XUngrabServer(dpy);
762+
return NULL;
763+
}
764+
757765
/* get colormap windows */
758766
GetColormapWindows(wwin);
759767

0 commit comments

Comments
 (0)