-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix resize_in_steps for Wayland #8097
base: master
Are you sure you want to change the base?
Conversation
I tried this on GNOME and KDE and sway. On all of them it makes resizing |
a058b50
to
abe411c
Compare
The original version worked for me under KWin 6.2.4 Moving the snapping logic to |
Run kitty with --debug-rendering that should tell you what events the |
Sway seems to not always respect the viewport size for the window decorations? KWin:
Mutter:
Sway:
|
This is working nearly perfectly with Niri now! The only 2 minor issues. First, intial placement does not respect the grid (see log below). Second, resizing the font does not update the window size. Here is the
And as soon as soon as I switch to another window this happens (and the size is corrected):
Manually resizing the window always snaps correctly to the grid size. This may of course be a Niri issue. |
@neurocyte Resizing the font doesn't change window size on any platform. That would be fairly unexpected. No (almost) program resizes its own window when you change font size. For initial size use remember_window_size=n and initial_window_width/height with a cell based value. @Murnto I actually think sway's behavior is correct here. dispatchChangesAfterConfigure just changes the framebuffer size not the window size. As far as the compositor knows the window size is what it asked it to be. We have to inform the compositor that we have changed the size from what we hot in the resizing event. But as with your initial try doing that causes a bounce effect leading to jerky and imprecise resizing. |
I already have these set. And I have Niri set to not override the initial window size. I think it's likely Niri that's overriding the window size anyway. I'll take it up with them. |
For me it varies.
Here's a vid of the plasma wierdness: |
As I recall there is no robust way to do this in Wayland. The correct |
No description provided.