@ -1722,6 +1722,8 @@ win_paint_win(session_t *ps, win *w, XserverRegion reg_paint,
|
||||
reg_paint, pcache_reg);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2666,29 +2668,6 @@ win_on_factor_change(session_t *ps, win *w) {
|
||||
ps->o.unredir_if_possible_blacklist, &w->cache_uipblst);
|
||||
}
|
||||
|
||||
/**
|
||||
* Process needed window updates.
|
||||
*/
|
||||
static void
|
||||
win_upd_run(session_t *ps, win *w, win_upd_t *pupd) {
|
||||
if (pupd->shadow) {
|
||||
win_determine_shadow(ps, w);
|
||||
pupd->shadow = false;
|
||||
}
|
||||
if (pupd->fade) {
|
||||
win_determine_fade(ps, w);
|
||||
pupd->fade = false;
|
||||
}
|
||||
if (pupd->invert_color) {
|
||||
win_determine_invert_color(ps, w);
|
||||
pupd->invert_color = false;
|
||||
}
|
||||
if (pupd->focus) {
|
||||
win_update_focused(ps, w);
|
||||
pupd->focus = false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Update cache data in struct _win that depends on window size.
|
||||
*/
|
||||
@ -3444,8 +3423,6 @@ wid_get_prop_window(session_t *ps, Window wid, Atom aprop) {
|
||||
*/
|
||||
static void
|
||||
win_update_focused(session_t *ps, win *w) {
|
||||
bool focused_old = w->focused;
|
||||
|
||||
if (UNSET != w->focused_force) {
|
||||
w->focused = w->focused_force;
|
||||
}
|
||||
@ -6622,6 +6599,8 @@ init_filters(session_t *ps) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user