lxqt-config icon indicating copy to clipboard operation
lxqt-config copied to clipboard

Add scale configuration when under wayland

Open stefonarch opened this issue 1 year ago • 5 comments

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 avatar May 16 '24 07:05 stefonarch

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).

stefonarch avatar Sep 21 '24 19:09 stefonarch

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

tsujan avatar Sep 21 '24 19:09 tsujan

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

stefonarch avatar Sep 21 '24 19:09 stefonarch

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.

tsujan avatar Sep 21 '24 20:09 tsujan

Besides scaling also "This is my primary monitor" should be changed under kwin_wayland.

stefonarch avatar Mar 05 '25 14:03 stefonarch