mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
fix: some case crash when use multi session
This commit is contained in:
parent
b57acbcc1d
commit
50020fb57e
1 changed files with 3 additions and 3 deletions
|
|
@ -1893,7 +1893,7 @@ applyrules(Client *c) {
|
|||
int fullscreen_state_backup = c->isfullscreen;
|
||||
setmon(c, mon, newtags, !c->isopensilent);
|
||||
|
||||
if (!c->isopensilent && !(c->tags & (1 << (selmon->pertag->curtag - 1)))) {
|
||||
if (!c->isopensilent && selmon && !(c->tags & (1 << (selmon->pertag->curtag - 1)))) {
|
||||
c->animation.from_rule = true;
|
||||
view(&(Arg){.ui = c->tags}, true);
|
||||
}
|
||||
|
|
@ -4447,12 +4447,12 @@ mapnotify(struct wl_listener *listener, void *data) {
|
|||
c->drag_to_tile = false;
|
||||
c->fake_no_border = false;
|
||||
|
||||
if (new_is_master &&
|
||||
if (new_is_master && selmon &&
|
||||
strcmp(selmon->pertag->ltidxs[selmon->pertag->curtag]->name,
|
||||
"scroller") != 0)
|
||||
// tile at the top
|
||||
wl_list_insert(&clients, &c->link); // 新窗口是master,头部入栈
|
||||
else if (strcmp(selmon->pertag->ltidxs[selmon->pertag->curtag]->name,
|
||||
else if (selmon && strcmp(selmon->pertag->ltidxs[selmon->pertag->curtag]->name,
|
||||
"scroller") == 0 &&
|
||||
center_select(selmon)) {
|
||||
Client *at_client = center_select(selmon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue