mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-15 22:05:20 -05:00
opt: optimize code struct
This commit is contained in:
parent
ec6d54148d
commit
89e0805d54
6 changed files with 59 additions and 70 deletions
|
|
@ -238,7 +238,7 @@ void dwl_ipc_output_set_client_tags(struct wl_client *client,
|
|||
selected_client->tags = newtags;
|
||||
if (selmon == monitor)
|
||||
focusclient(focustop(monitor), 1);
|
||||
arrange(selmon, false);
|
||||
arrange(selmon, false, false);
|
||||
printstatus();
|
||||
}
|
||||
|
||||
|
|
@ -257,7 +257,7 @@ void dwl_ipc_output_set_layout(struct wl_client *client,
|
|||
|
||||
monitor->pertag->ltidxs[monitor->pertag->curtag] = &layouts[index];
|
||||
clear_fullscreen_and_maximized_state(monitor);
|
||||
arrange(monitor, false);
|
||||
arrange(monitor, false, false);
|
||||
printstatus();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ void handle_foreign_activate_request(struct wl_listener *listener, void *data) {
|
|||
c->is_scratchpad_show = 0;
|
||||
setborder_color(c);
|
||||
show_hide_client(c);
|
||||
arrange(c->mon, true);
|
||||
arrange(c->mon, true, false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ void handle_foreign_minimize_request(struct wl_listener *listener, void *data) {
|
|||
c->is_scratchpad_show = 0;
|
||||
setborder_color(c);
|
||||
show_hide_client(c);
|
||||
arrange(c->mon, true);
|
||||
arrange(c->mon, true, false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue