[WIP] Implement gtk-layer-shell for nemo-desktop.#3684
Open
mtwebster wants to merge 3 commits intolinuxmint:masterfrom
Open
[WIP] Implement gtk-layer-shell for nemo-desktop.#3684mtwebster wants to merge 3 commits intolinuxmint:masterfrom
mtwebster wants to merge 3 commits intolinuxmint:masterfrom
Conversation
ref: linuxmint/muffin#784 todo: Workarea margins - in x11 mode nemo gets accurate, per-monitor workarea from Cinnamon over dbus, with _NET_WORKAREA values as a backup (which is only accurate for the primary monitor). From this, workarea padding is calculated and applied to the icon layouts. For wayland we can maybe utilize the layer-shell margin properties instead, but some refactoring is needed to provide the individual nemo-desktop windows with this (and keeping it up-to-date, should workarea change).
0fcec5b to
4a2c5a2
Compare
mtwebster
added a commit
to mtwebster/cinnamon-settings-daemon
that referenced
this pull request
Jan 16, 2026
wayland. Current csd-background runs as an xwayland client and has special handling built in to muffin to 'make it work'. This will allow it to run as a native client, if muffin has the capability, and if csd-background has been built with support. ref: linuxmint/muffin#784 linuxmint/nemo#3684
mtwebster
added a commit
to mtwebster/cinnamon-settings-daemon
that referenced
this pull request
Jan 16, 2026
wayland. Current csd-background runs as an xwayland client and has special handling built in to muffin to 'make it work'. This will allow it to run as a native client, if muffin has the capability, and if csd-background has been built with support. ref: linuxmint/muffin#784 linuxmint/nemo#3684
In a proper wlr-layer-shell implementation, exclusive zone 0 ensures the nemo-desktop window and icon layout are kept within the desktop workarea (avoiding panels or other layer-shell clients with zone > 0). Use this capability if available.
supported. If nemo-desktop is run as a Wayland client without layer-shell support, the desktop window will be treated a normal window, above other windows, and with a window-list/taskbar entry. We can't call gtk_layer_is_supported before gtk_main(), so we need to manually connect to the wayland display and check ourselves.
mtwebster
added a commit
to mtwebster/cinnamon-settings-daemon
that referenced
this pull request
Jan 27, 2026
wayland. Current csd-background runs as an xwayland client and has special handling built in to muffin to 'make it work'. This will allow it to run as a native client, if muffin has the capability, and if csd-background has been built with support. ref: linuxmint/muffin#784 linuxmint/nemo#3684
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ref:
linuxmint/muffin#784
todo:
Workarea margins - in x11 mode nemo gets accurate, per-monitor workarea from Cinnamon over dbus, with _NET_WORKAREA values as a backup (which is only accurate for the primary monitor). From this, workarea padding is calculated and applied to the icon layouts.
For wayland we can maybe utilize the layer-shell margin properties instead, but some refactoring is needed to provide the individual nemo-desktop windows with this (and keeping it up-to-date, should workarea change).