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
Gtk4 window gets clipped within container #6223
Comments
Probably related to a confusion between window geometry and surface geometry. |
The window seems placed wrong, look at how close the upper left corner button is to the edge compared to the right. |
I think it's not mis-placed, but it's just clipped? The close button is cut in the middle. |
Ah true, thought a thick margin was intended, didn't see a close button was cut. |
May be relevant to this: at some point I reported a similar issue (shadows part of window decoration not disappearing when window is tiled) to #gtk on IRC and was told that gtk4 does not yet implement the xdg-shell protocol or something along those lines. |
GTK4 does implement xdg-shell, that's the only way they can display a window on screen. Maybe they don't implement the tiled states, but that would be surprising since GNOME uses them as well. |
For reference the the image for what I'm talking about: notice the shadows being drawn over the windows tiled to the left and top of the |
Indeed, gtk4 does not seem to react to tiling (although it may be fixed already), and we end up not accounting for the positive x/y toplevel geometry. |
render_surface_iterator previously deduced the clip box from an optional container passed with render data. This causes problems when offsets in view geometry need to be compensated for in the clip dimensions. Instead, prepare the clip box in render_view_toplevels where the offsets are being applied, and compensate for them immediately. A similar compensation is applied to render_saved_view. Closes: swaywm#6223
render_surface_iterator previously deduced the clip box from an optional container passed with render data. This causes problems when offsets in view geometry need to be compensated for in the clip dimensions. Instead, prepare the clip box in render_view_toplevels where the offsets are being applied, and compensate for them immediately. A similar compensation is applied to render_saved_view. Closes: #6223
render_surface_iterator previously deduced the clip box from an optional container passed with render data. This causes problems when offsets in view geometry need to be compensated for in the clip dimensions. Instead, prepare the clip box in render_view_toplevels where the offsets are being applied, and compensate for them immediately. A similar compensation is applied to render_saved_view. Closes: swaywm#6223
render_surface_iterator previously deduced the clip box from an optional container passed with render data. This causes problems when offsets in view geometry need to be compensated for in the clip dimensions. Instead, prepare the clip box in render_view_toplevels where the offsets are being applied, and compensate for them immediately. A similar compensation is applied to render_saved_view. Closes: swaywm#6223 (cherry picked from commit 4e6f515)
render_surface_iterator previously deduced the clip box from an optional container passed with render data. This causes problems when offsets in view geometry need to be compensated for in the clip dimensions. Instead, prepare the clip box in render_view_toplevels where the offsets are being applied, and compensate for them immediately. A similar compensation is applied to render_saved_view. Closes: swaywm#6223 (cherry picked from commit 4e6f515)
render_surface_iterator previously deduced the clip box from an optional container passed with render data. This causes problems when offsets in view geometry need to be compensated for in the clip dimensions. Instead, prepare the clip box in render_view_toplevels where the offsets are being applied, and compensate for them immediately. A similar compensation is applied to render_saved_view. Closes: #6223 (cherry picked from commit 4e6f515)
Please fill out the following:
Sway Version: sway version 1.6-1a0f86be (Apr 10 2021, branch 'master')
Also tested with current master (8529141) and various commits after 1.5
Debug Log:
https://gist.github.com/keis/3f8830b80ba470b0018166608dbabaaf
Configuration File:
In a regression from sway 1.5 Gtk4 windows (in my example the gtk4-demo) render with a weird clipping within the sway container.
I was able to
git bisect
to this commit a6544f5The text was updated successfully, but these errors were encountered: