wayland: Fix window state issues (#13885)

Fixes some issues with the CSD added in
https://github.com/zed-industries/zed/pull/13611

Here's a video comparing the master branch (yellow icon) with this PR
(blue icon):


https://github.com/zed-industries/zed/assets/71973804/35be443a-8f24-4aed-910b-625bad9821e2

_Note: the flicker at the bottom of the window when maximizing is an
issue with the KDE floating task bar, it happens with all programs._

Release Notes:

- N/A
This commit is contained in:
apricotbucket28 2024-07-05 17:42:11 -03:00 committed by GitHub
parent 1c1fd6aaa1
commit 5c7e6b7eff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 40 deletions

View file

@ -809,7 +809,7 @@ impl Dispatch<WlCallback, ObjectId> for WaylandClientStatePtr {
match event {
wl_callback::Event::Done { .. } => {
window.frame(true);
window.frame();
}
_ => {}
}