mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-14 04:27:53 -05:00
opt: make x11 floating window coordinate auto ajust the monitor change
This commit is contained in:
parent
8d07b6e0b8
commit
9343874a22
1 changed files with 8 additions and 0 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue