Skip to content

Linux: the island sits under the top bar instead of behind it - #1167

Open
ce017 wants to merge 1 commit into
Louis-CFM:mainfrom
ce017:fix/linux-top-inset
Open

ce017 wants to merge 1 commit into
Louis-CFM:mainfrom
ce017:fix/linux-top-inset

Conversation

@ce017

@ce017 ce017 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Split out of #930 so it can make the next release on its own, since 0.6.0 shipped without it.

On GNOME with the top bar on the island's display, "Always show the island" put the island at the very top, behind the bar, where nothing could be clicked. That's because top_inset() always returned 0 on Linux.

Now top_inset() reads the display's work area on Linux too, same as Windows does (#956). A layer-shell island (wlroots, KDE) stays at 0 since the compositor already puts it below bars, and a compositor that reports no work area also gives 0.

@bryce-hu-dev tested it on Ubuntu 24.04, GNOME 46 on Wayland with two displays: on the display with the top bar the island sits right under it (y=32) and everything on it can be clicked, and on the second display it stays at y=0 like before. Thanks again for catching this!

Only touches island.rs and platform/linux.rs, nothing changes on Windows or macOS.

On a GNOME desktop with the top bar on the island's display, "Always show
the island" kept the island at the very top, under the bar, where nothing
could click it, because top_inset() was 0 on Linux (found by bryce-hu-dev
testing the Linux build, Louis-CFM#930).

top_inset() now reads the display's work area on Linux too, like Windows
does (Louis-CFM#956). A layer-shell island (wlroots, KDE) stays at 0: the compositor
already puts it below bars. A compositor that reports no work area gives the
whole display, so the inset is 0 there as well.

This branch has not been deployed

No deployments
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.

1 participant