Fixing where windows come up on RHEL 9

Thomas Cameron thomas.cameron at camerontech.com
Mon Jan 22 23:04:42 CET 2024


On 1/22/24 13:50, Olivier Fourdan wrote:
> Hi
> 
> Unlike Wayland, X11 exposes global coordinates and the ICCCM allows X11 
> applications to specify a location for their windows. And most X11 
> applications (ab)use that feature.
> 
> xfwm4, the window manager in xfce, applies the following heuristic for 
> placing windows when first mapped:
> 
> 1. If the X11 client specified a location, use that.
> 2. If not, either place the window where there is least overlap with 
> other window, or centered on screen, depending on the settings.
> 
> xfwm4 will (optionally) save and restore the location of windows along 
> with the session (to restore the windows after a log out/log in), but it 
> will not remember the location all all window from all applications 
> after they get closed during the lifetime of a session (or even after 
> that applications get closed), but many X11 clients do that themselves 
> and try to restore the location of their windows when restarted.
> 
> All that to say that the center window / smart placement only applies to 
> clients which do not specify a location for their windows.
> 
> Cheers
> Olivier
Gotcha. Again, thanks for the education.

-- 
Thomas


More information about the Xfce mailing list