Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Wayland screens by using their names #2006

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tsujan
Copy link
Member

@tsujan tsujan commented Jan 22, 2025

The main reason behind this change is that screen setting by using numbers may not work with all Wayland compositors.

With this patch, and on Wayland, the screen names are used for saving the arrangements of desktop items.

No change is made to X11 desktops.

NOTE: This is a backward incompatible change, in the sense that the arrangement of Wayland desktop items will be reset at first. But Wayland users could copy the contents of desktop-items-0.conf and paste it into desktop-items-SCREEN_NAME.conf after stopping the desktop module. That couldn't be done by the code, because it isn't known to which screen the old config file belonged (the number proves nothing).

The main reason behind this change is that screen setting by using numbers may not work with all Wayland compositors.

With this patch, and on Wayland, the screen names are used for saving the arrangements of desktop items.

No change is made to X11 desktops.

NOTE: This is a backward incompatible change, in the sense that the arrangement of Wayland desktop items will be rest at first. But Wayland users could copy the contents of `desktop-items-0.conf` and paste it into `desktop-items-SCREEN_NAME.conf` after stopping the desktop module. That couldn't be done by the code, because it isn't known to which screen the old config file belonged (the number proves nothing).
Copy link
Member

@stefonarch stefonarch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all fine. Basically a placment in x11 with icons spread over both screens and a per screen position of the same icons under wayland, persistent also when monitor is removed and readded.

@tsujan
Copy link
Member Author

tsujan commented Jan 22, 2025

The strange thing here is that — according to our tests — we can't keep a desktop without its screen (otherwise, a crash will be imminent), but we could do so in the case of lxqt-panel (lxqt/lxqt-panel#2226).

I wonder if we were just lucky with lxqt-panel, or Wayland makes an exception for the background layer and doesn't keep it without its screen. @marcusbritanicus?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants