Repository navigation
Conversation
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
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.
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.rsandplatform/linux.rs, nothing changes on Windows or macOS.