mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix: monocle miss apply gapo
This commit is contained in:
parent
a06552b670
commit
cf8a7516b9
1 changed files with 6 additions and 1 deletions
|
|
@ -632,11 +632,16 @@ void tile(Monitor *m) {
|
|||
void // 17
|
||||
monocle(Monitor *m) {
|
||||
Client *c;
|
||||
struct wlr_box geom;
|
||||
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (!VISIBLEON(c, m) || !ISTILED(c))
|
||||
continue;
|
||||
resize(c, m->w, 0);
|
||||
geom.x = m->w.x + gappoh;
|
||||
geom.y = m->w.y + gappov;
|
||||
geom.width = m->w.width - 2 * gappoh;
|
||||
geom.height = m->w.height - 2 * gappov;
|
||||
resize(c, geom, 0);
|
||||
}
|
||||
if ((c = focustop(m)))
|
||||
wlr_scene_node_raise_to_top(&c->scene->node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue