mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-20 05:34:39 -04:00
fix: avoid use null mon when session not active
This commit is contained in:
parent
a3bdb5138f
commit
7e5c755451
3 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,10 @@
|
|||
void set_size_per(Monitor *m, Client *c) {
|
||||
Client *fc = NULL;
|
||||
bool found = false;
|
||||
|
||||
if (!m || !c)
|
||||
return;
|
||||
|
||||
wl_list_for_each(fc, &clients, link) {
|
||||
if (VISIBLEON(fc, m) && ISTILED(fc) && fc != c) {
|
||||
c->master_mfact_per = fc->master_mfact_per;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue