Created attachment 8434 0001-menu-Fix-alignment-when-scaled.patch On scaled displays, the menu position needs to be specified in app-pixels. Some code paths to opening the menu are already in app-pixels so do not require scaling. The height of the titlebar on windows with frames always needs to be scaled. Signed-off-by: Jason Zaman <jason@perfinion.com> The attached patch fixes the issue on my setup, 4k monitor + HD Monitor (xrandr scaled to match the 4k) and with GDK_SCALE=2 everywhere. Also, xfwm4 is missing a gitignore, a patch for that is also attached.
Created attachment 8435 0002-Add-gitignore.patch
The patches are also here if thats easier to pull: https://github.com/perfinion/xfwm4/commits/menuscale
Applied, thanks.