lxqt / lxqt-config

Tools to configure LXQt and the underlying operating system
https://lxqt.github.io
GNU Lesser General Public License v2.1
79 stars 60 forks source link

Center configuration windows under wayland #984

Open stefonarch opened 3 months ago

stefonarch commented 3 months ago

On X11 most (lxqt-admim-* are not) Qt configuration windows are centered on the screen, on wayland they open depending on the compositor. This affects also other elements in other repositories like "configure panel".

This particularly important when using tiling WM like sway or Hyprland, otherwise they will get tiled and eventually fullscreen.

Expected Behavior

Same behaviour as in X11

Possible Solution

Add layershell code in those windows, similar to lxqt-runner or lxqt-leave.

System Information
tsujan commented 3 months ago

IMO, we shouldn't do that. Unless a dialog really needs attention (like lxqt-leave dialog), we shouldn't force a position/layer on it by using layer-shell-qt. In general, we shouldn't overuse layer-shell-qt.

Qt centers all parentless dialogs under X11. Whether a Wayland WM can distinguish between dialogs and ordinary windows and have an option for positioning the former is another question, whose answer is outside LXQt.

stefonarch commented 3 months ago

Under kwin_wayland this is done automatically.

tsujan commented 3 months ago

Then kwin_wayland somehow distinguishes parentless Qt dialogs and centers them to mimic Qt under X11.