Skip to content

PanelWindow: Fix gap between maximized window and wingpanel - #745

Merged
leolost2605 merged 1 commit into
mainfrom
leolost/fix-maximized-gap
Oct 29, 2026
Merged

leolost2605 merged 1 commit into
mainfrom
leolost/fix-maximized-gap

Conversation

@leolost2605

Copy link
Copy Markdown
Member

When fractional scaling is enabled it can happen that the wingpanel covers half a pixel. This causes a visible gap to appear between a maximized window and the panel. We will be able to solve this properly in Gtk 4.24 with Gtk.Snapshot.set_snap (see https://blogs.gnome.org/gtk/2026/05/28/snapping/) but since that's not available even in OS 9 let's work around it.
The workaround might cause the top most pixel of an app to disappear behind the panel but that shouldn't be really noticeable.

Fixes the gap seen in the screenshot below with 1.25 scaling. You can see the white background shimmer through which is quite annoying
Screenshot from 2026-10-29 14 09 25@1x

(I did actually test Gtk.Snapshot.set_snap by running a flatpak build of wingpanel and it did fix the issue)

When fractional scaling is enabled it can happen that the
wingpanel covers half a pixel. This causes a visible
gap to appear between a maximized window and the panel.
We will be able to solve this properly in Gtk 4.24 with
Gtk.Snapshot.set_snap but since that's not available even
in OS 9 let's work around it.
The workaround might cause the top most pixel of an app
to disappear behind the panel but that shouldn't be really
noticeable.
@leolost2605
leolost2605 requested a review from a team October 29, 2026 13:11
@leolost2605
leolost2605 merged commit 7a3cb89 into main Oct 29, 2026
3 of 6 checks passed
@leolost2605
leolost2605 deleted the leolost/fix-maximized-gap branch October 29, 2026 16:59
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