mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-24 09:06:31 -04:00
fix: shouldn't arrange the closing monitor
This commit is contained in:
parent
3fef7a5a00
commit
1e78264d6d
1 changed files with 9 additions and 5 deletions
|
|
@ -15,6 +15,9 @@ void restore_size_per(Monitor *m, Client *c) {
|
||||||
if (!m || !c)
|
if (!m || !c)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!m->wlr_output->enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
wl_list_for_each(fc, &clients, link) {
|
wl_list_for_each(fc, &clients, link) {
|
||||||
if (VISIBLEON(fc, m) && ISTILED(fc)) {
|
if (VISIBLEON(fc, m) && ISTILED(fc)) {
|
||||||
fc->old_ismaster = fc->ismaster;
|
fc->old_ismaster = fc->ismaster;
|
||||||
|
|
@ -811,11 +814,6 @@ void pre_caculate_before_arrange(Monitor *m, bool want_animation,
|
||||||
int32_t master_num = 0;
|
int32_t master_num = 0;
|
||||||
int32_t stack_num = 0;
|
int32_t stack_num = 0;
|
||||||
|
|
||||||
if (!m)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!m->wlr_output->enabled)
|
|
||||||
return;
|
|
||||||
m->visible_clients = 0;
|
m->visible_clients = 0;
|
||||||
m->visible_tiling_clients = 0;
|
m->visible_tiling_clients = 0;
|
||||||
m->visible_scroll_tiling_clients = 0;
|
m->visible_scroll_tiling_clients = 0;
|
||||||
|
|
@ -912,6 +910,12 @@ void pre_caculate_before_arrange(Monitor *m, bool want_animation,
|
||||||
void // 17
|
void // 17
|
||||||
arrange(Monitor *m, bool want_animation, bool from_view) {
|
arrange(Monitor *m, bool want_animation, bool from_view) {
|
||||||
|
|
||||||
|
if (!m)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!m->wlr_output->enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
pre_caculate_before_arrange(m, want_animation, from_view, false);
|
pre_caculate_before_arrange(m, want_animation, from_view, false);
|
||||||
|
|
||||||
if (m->isoverview) {
|
if (m->isoverview) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue