mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-14 21:07:28 -08:00
remove unnecessary check
This commit is contained in:
parent
6d8f1a8474
commit
f4c123a963
1 changed files with 5 additions and 6 deletions
9
dwl.c
9
dwl.c
|
@ -1385,7 +1385,7 @@ destroylocksurface(struct wl_listener *listener, void *data)
|
|||
surface = wl_container_of(cur_lock->surfaces.next, surface, link);
|
||||
client_notify_enter(surface->surface, wlr_seat_get_keyboard(seat));
|
||||
} else if (!locked) {
|
||||
focusclient(focustop(selmon, 0), 1);
|
||||
focusclient(focustop(selmon, 0), 1);
|
||||
} else {
|
||||
wlr_seat_keyboard_clear_focus(seat);
|
||||
}
|
||||
|
@ -3136,12 +3136,11 @@ togglesticky(const Arg *arg)
|
|||
return;
|
||||
sel->issticky = !sel->issticky;
|
||||
|
||||
if (sel->issticky) {
|
||||
if (sel->issticky)
|
||||
client_set_border_color(sel, mixedcolor);
|
||||
} else {
|
||||
else {
|
||||
client_set_border_color(sel, focuscolor);
|
||||
if (!VISIBLEON(sel, selmon))
|
||||
focusclient(focustop(selmon, 0), 1);
|
||||
focusclient(focustop(selmon, 0), 1);
|
||||
}
|
||||
|
||||
arrange(selmon);
|
||||
|
|
Loading…
Reference in a new issue