imgviewer: redraw properly on focus change

This commit is contained in:
K. Lange 2018-11-12 20:24:29 +09:00
parent ec34bf5d57
commit 427b1559db

View File

@ -171,6 +171,7 @@ int main(int argc, char * argv[]) {
if (menu_process_event(yctx, m)) {
/* just decorations should be fine */
decors();
flip(ctx);
yutani_flip(yctx, window);
}
switch (m->type) {
@ -189,6 +190,7 @@ int main(int argc, char * argv[]) {
if (win && win == window) {
win->focused = wf->focused;
decors();
flip(ctx);
yutani_flip(yctx, window);
}
}