mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-16 05:34:14 -04:00
opt: make x11 floating window coordinate auto ajust the monitor change
This commit is contained in:
parent
bc52b95c1e
commit
17acdae69c
1 changed files with 8 additions and 0 deletions
|
|
@ -1375,6 +1375,14 @@ void applyrules(Client *c) {
|
||||||
Monitor *mon = parent && parent->mon ? parent->mon : selmon;
|
Monitor *mon = parent && parent->mon ? parent->mon : selmon;
|
||||||
|
|
||||||
c->isfloating = client_is_float_type(c) || parent;
|
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)))
|
if (!(appid = client_get_appid(c)))
|
||||||
appid = broken;
|
appid = broken;
|
||||||
if (!(title = client_get_title(c)))
|
if (!(title = client_get_title(c)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue