1
0
Fork 0
forked from wry/wry

Merge pull request #513 from mahkoh/jorth/xdg-shell-extents

xdg-shell: fetch existing extents when surface is created
This commit is contained in:
mahkoh 2025-07-17 15:59:55 +02:00 committed by GitHub
commit 4ebcde72ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -203,7 +203,7 @@ impl XdgSurface {
requested_serial: NumCell::new(1),
acked_serial: Cell::new(None),
geometry: Cell::new(None),
extents: Cell::new(Default::default()),
extents: Cell::new(surface.extents.get()),
absolute_desired_extents: Cell::new(Default::default()),
ext: Default::default(),
popup_display_stack: CloneCell::new(surface.client.state.root.stacked.clone()),

View file

@ -157,6 +157,7 @@ impl XdgToplevel {
toplevel_data
.content_type
.set(surface.surface.content_type.get());
toplevel_data.pos.set(surface.extents.get());
Self {
id,
state: state.clone(),