fix: popup position (#281)

This commit is contained in:
busyo 2025-11-27 23:48:34 +08:00 committed by GitHub
parent f379ff5722
commit ae98f974e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -944,8 +944,12 @@ impl<S: X11Selection + 'static> InnerServerState<S> {
};
if dims == win.attrs.dims {
return;
} else if win.attrs.is_popup {
win.attrs.dims = dims;
}
debug!("Reconfiguring {:?} {:?}", event.window(), dims);
if !win.mapped {
win.attrs.dims = dims;
return;