Use an early return to avoid indenting the main logic instead of wrapping the tail of a function in an if statement.
No functional change, except for a handful of places where printstatus() was being called spuriously (tag, toggletag, toggleview).
ΔSLOC: 0
YUZIWFDRC7OPGBBLI7Z77RMT3PTXEV2JAHQXKANK74WN25434GUQC JTZBFGPCDJDJWECXH2LLXY3SUAQNCP45HLJQKG3V7XGTPLD634WAC OVRHHFZRTH63HWEABRVFGWRYO6P5AITLYDMH7Q74KPCHFCFMR3PQC QA3LE32PDSYAUFS4XVY6IBHTTMDHSBHIHI5CVEKMT7QN5DGB2GBQC 7B74AT3BXYB7PVW4F6SGQNPMHOU5TEV5TZ54CG6VSQI46XSEKWXQC EQRGODLKSVSPFSUZU7BV5ER72U4QS4ATSBKV544XXQVKKTOSC7EAC SD5WQI5HDQYZKW67M2QOHKLEDL23WIQN22MAABS2ORQDLIJS5GWQC WM43HOHUSZWK5OOCFHSOKA2PNUL45ZQENVPHNHWETSQQ7BAKHG7AC 5NXELRTS2KF2SZJRXZBJNNDXZG23OSWVUVCIQSPV7TH7T3XKL4PAC if (lock_surface->surface == seat->keyboard_state.focused_surface) {if (locked && cur_lock && !wl_list_empty(&cur_lock->surfaces)) {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), 1);} else {wlr_seat_keyboard_clear_focus(seat);}
if (lock_surface->surface != seat->keyboard_state.focused_surface)return;if (locked && cur_lock && !wl_list_empty(&cur_lock->surfaces)) {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), 1);} else {wlr_seat_keyboard_clear_focus(seat);
if (!handled) {/* Pass unhandled keycodes along to the client. */wlr_seat_set_keyboard(seat, kb->wlr_keyboard);wlr_seat_keyboard_notify_key(seat, event->time_msec,event->keycode, event->state);}
if (handled)return;/* Pass unhandled keycodes along to the client. */wlr_seat_set_keyboard(seat, kb->wlr_keyboard);wlr_seat_keyboard_notify_key(seat, event->time_msec,event->keycode, event->state);
if (sel && arg->ui & TAGMASK) {sel->tags = arg->ui & TAGMASK;focusclient(focustop(selmon), 1);arrange(selmon);}
if (!sel || (arg->ui & TAGMASK) == 0)return;sel->tags = arg->ui & TAGMASK;focusclient(focustop(selmon), 1);arrange(selmon);
if (c && c != focustop(selmon)) {c->isurgent = 1;printstatus();}
if (!c || c == focustop(selmon))return;c->isurgent = 1;printstatus();
if (c != focustop(selmon)) {c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);printstatus();}
if (c == focustop(selmon))return;c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);printstatus();