1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-25 14:13:31 +01:00

wmaker: fix window position issues with dockapps

The patch with commit 839061a25a
introduces an issue with dockapps that are creating their main
windows with size 1x1. That new patch is moving the existing
code further below in the wManageWindow function to be able
to check if the window flag is_dockapp is set.
Issue was seen with wmsystemtray and wmmemload.
This commit is contained in:
David Maciejak
2026-03-17 20:12:38 -04:00
committed by Carlos R. Mafra
parent be495bedbc
commit 752a949492

View File

@@ -688,15 +688,6 @@ WWindow *wManageWindow(WScreen *scr, Window window)
return NULL;
}
/* Some applications create placeholder windows with 1x1 size
* (e.g. VirtualBox internal windows). Don't manage those initial
* 1x1 windows — wait for a proper ConfigureNotify/MapRequest with
* a real size. */
if (wattribs.width <= 1 && wattribs.height <= 1) {
XUngrabServer(dpy);
return NULL;
}
wm_state = PropGetWindowState(window);
/* if it's startup and the window is unmapped, don't manage it */
@@ -810,6 +801,15 @@ WWindow *wManageWindow(WScreen *scr, Window window)
/* get geometry stuff */
wClientGetNormalHints(wwin, &wattribs, True, &x, &y, &width, &height);
/* Some applications create placeholder windows with 1x1 size
* (e.g. VirtualBox internal windows). Don't manage those initial
* 1x1 windows. */
if (width <= 1 && height <= 1 && !wwin->flags.is_dockapp) {
wWindowDestroy(wwin);
XUngrabServer(dpy);
return NULL;
}
/* get colormap windows */
GetColormapWindows(wwin);