lxqt / lxqt-config

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

Add scale configuration when under wayland #996

Open stefonarch opened 6 months ago

stefonarch commented 6 months ago
Expected Behavior

Also scale should be configurable under kwin_wayland

Current Behavior

It's not.

Context

Different scale settings for different monitors can be useful in LXQt Kwin_wayland

stefonarch commented 2 months ago

If monitors are scaled (using systemsettings) lxqt-config-monitor can't handle it: b.com/lxqt/lxqt-config/issues/996, and atm only KDE can configure scaling.

Schermata_20240921_102446 Schermata_20240921_102511

In this case at next login it will apply its configuration which is

Schermata_20240921_210818

and the monitor setup will be completely broken (cursor can't exit primary monitor) until it's fixed by KDE's systemsettings (where it sees a space between monitors which is invalid).

tsujan commented 2 months ago

Theoretically, we just need to add KScreen::Output::scale and KScreen::Output::setScale to the GUI.

stefonarch commented 2 months ago

And the previews of the monitors will be fine too in their size?

tsujan commented 2 months ago

Making previews work with scaling is only one part of the job. We need to add GUI elements to set and get the scales of all monitors, depending on whether we're on Wayland or not. We also need to save the new settings in a backward compatible way.

And these steps are just what came to my mind without writing a single line of code — sometimes there's a long way from theory to practice ;) But it's good to know that there is a way.