mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-30 21:37:39 -04:00
feat: new ipc impl
This commit is contained in:
parent
7da47c9d94
commit
9d1dbdf92f
13 changed files with 1206 additions and 1017 deletions
|
|
@ -452,7 +452,7 @@ Client *find_client_by_direction(Client *tc, const Arg *arg, bool findfloating,
|
|||
|
||||
Client *direction_select(const Arg *arg) {
|
||||
|
||||
Client *tc = selmon->sel;
|
||||
Client *tc = arg->tc ? arg->tc : selmon->sel;
|
||||
|
||||
if (!tc)
|
||||
return NULL;
|
||||
|
|
@ -593,12 +593,12 @@ bool client_is_in_same_stack(Client *sc, Client *tc, Client *fc) {
|
|||
return false;
|
||||
}
|
||||
|
||||
Client *get_focused_stack_client(Client *sc) {
|
||||
Client *get_focused_stack_client(Client *sc, Client *custom_focus_client) {
|
||||
if (!sc || sc->isfloating)
|
||||
return sc;
|
||||
|
||||
Client *tc = NULL;
|
||||
Client *fc = focustop(sc->mon);
|
||||
Client *fc = custom_focus_client ? custom_focus_client : focustop(sc->mon);
|
||||
|
||||
if (fc->isfloating || sc->isfloating)
|
||||
return sc;
|
||||
|
|
@ -616,4 +616,4 @@ Client *get_focused_stack_client(Client *sc) {
|
|||
}
|
||||
}
|
||||
return sc;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue