1
0
Fork 0
forked from wry/wry

xwayland: set output for override redirect windows

This commit is contained in:
Julian Orth 2024-09-11 23:58:42 +02:00
parent 0dc1929bbd
commit 7ff7edaa8f
7 changed files with 13 additions and 15 deletions

View file

@ -423,6 +423,9 @@ impl ToplevelNodeBase for Xwindow {
if self.data.info.override_redirect.get() {
self.data.state.damage(old);
self.data.state.damage(*rect);
let (x, y) = rect.center();
let output = self.data.state.find_closest_output(x, y).0;
self.x.surface.set_output(&output);
} else {
self.data
.state