opt: make x11 floating window coordinate auto ajust the monitor change

This commit is contained in:
DreamMaoMao 2026-02-12 18:12:01 +08:00
parent 8d07b6e0b8
commit 9343874a22

View file

@ -1383,6 +1383,14 @@ void applyrules(Client *c) {
Monitor *mon = parent && parent->mon ? parent->mon : selmon;
c->isfloating = client_is_float_type(c) || parent;
#ifdef XWAYLAND
if (c->isfloating && client_is_x11(c)) {
fix_xwayland_unmanaged_coordinate(&c->geom);
c->float_geom = c->geom;
}
#endif
if (!(appid = client_get_appid(c)))
appid = broken;
if (!(title = client_get_title(c)))