Skip to content
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(wayland): fix issue with tiled and maximized window #6545

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

aliaksandr-trush
Copy link
Contributor

@aliaksandr-trush aliaksandr-trush commented Jan 3, 2025

Fix for #6262

Tested on Gnome 47 and Cosmic DE
Tested with window_decorations = RESIZE and NONE

@aliaksandr-trush aliaksandr-trush changed the title fix(wayland): fix issue with tiled and maximized window WIP fix(wayland): fix issue with tiled and maximized window Jan 3, 2025
@aliaksandr-trush aliaksandr-trush marked this pull request as draft January 3, 2025 12:15
@aliaksandr-trush aliaksandr-trush changed the title WIP fix(wayland): fix issue with tiled and maximized window fix(wayland): fix issue with tiled and maximized window Jan 3, 2025
@KiaraGrouwstra
Copy link

this change fixed the resizing bug for me, running niri on nixos. thank you!

@aliaksandr-trush aliaksandr-trush marked this pull request as ready for review January 3, 2025 16:08
@Gurjaka
Copy link

Gurjaka commented Jan 7, 2025

we need this merged

@Gurjaka
Copy link

Gurjaka commented Jan 18, 2025

@wez can you get this merged pls?

@39555
Copy link

39555 commented Jan 23, 2025

@wez We need you 🙏 and your announcement regarding the project. Maybe you could find some additional maintainers. There is a lot of cool and important PRs that have been sitting for months

@Gurjaka
Copy link

Gurjaka commented Jan 23, 2025

@wez We need you 🙏 and your announcement regarding the project. Maybe you could find some additional maintainers. There is a lot of cool and important PRs that have been sitting for months

ეეე ქართველი გაიჩითა

@my4ng
Copy link

my4ng commented Feb 3, 2025

Can confirm working very nicely on niri, thank you! One tiny issue is that the resizing animation is absent from upsizing but present during downsizing

EDIT: this is because I used the main branch rather than the fix_wayland branch so it's the old wezterm release version... Just realised this and now it's perfect, sorry, silly me 🤦‍♂️!

@jorgenman
Copy link

I'm not using niri, but this appears to fix the problem for me on Fedora 41 with KDE Plasma 6.2.5. Thanks!

@MartenBE
Copy link

MartenBE commented Feb 5, 2025

@wez can you get this merged pls?

Perhaps @bew could take a look at this?

@bew
Copy link
Member

bew commented Feb 6, 2025

Hello o/
I'm not sure what good my look can do here, as I don't have any more rights than you guys, and I personally don't use Wayland on my Linux yet..

I'm still curious though 👀:
Could you maybe explain to me why these changes help with the issue as I'm not too familiar with the Wayland side and how it works 🤔

@KiaraGrouwstra
Copy link

@bew: on niri / compliant wayland, due to a regression it was no longer possible to resize wezterm beyond a given width. this PR addresses that.

@aliaksandr-trush
Copy link
Contributor Author

aliaksandr-trush commented Feb 6, 2025

I'm still curious though 👀: Could you maybe explain to me why these changes help with the issue as I'm not too familiar with the Wayland side and how it works 🤔

I am not really familiar about internal Wayland implementation, but extra wl_surface().commit() call causing Wayland to store some wrong information about window size. And on Wayland Configure event it returns this incorrect data, that we are using for window drawing.
Without such wl_surface().commit() call we are receiving only correct Configure event information, and we can get rid of hack with using configure.suggested_bounds.
The fix was found mostly in imperative way.

@wez wez merged commit 80b9ffd into wezterm:main Feb 8, 2025
14 of 15 checks passed
@wez
Copy link
Member

wez commented Feb 8, 2025

Thank you!

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.

9 participants