wayland: Fix window bounds restoration (#12581)

Fixes multiple issues that prevented window bounds restoration to not
work on Wayland.

Note: Since the display uuid depends on the `wl_output.name` field, this
only works properly on KDE 5.26+ or Gnome 44+ ([kwin
commit](330a02d862),
[mutter](7e838b1115)).

Release Notes:

- N/A
This commit is contained in:
apricotbucket28 2024-06-03 13:27:01 -03:00 committed by GitHub
parent ed86b86dc7
commit 344e5e1cf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 82 additions and 62 deletions

View file

@ -712,7 +712,7 @@ impl Size<Length> {
/// assert_eq!(bounds.origin, origin);
/// assert_eq!(bounds.size, size);
/// ```
#[derive(Refineable, Clone, Default, Debug, Eq, PartialEq)]
#[derive(Refineable, Clone, Default, Debug, Eq, PartialEq, Hash)]
#[refineable(Debug)]
#[repr(C)]
pub struct Bounds<T: Clone + Default + Debug> {