]> code.delx.au - spectrwm/commitdiff
Redraw the focus window frame when changing regions with the pointer.
authorReginald Kennedy <rk@rejii.com>
Wed, 4 May 2016 16:59:14 +0000 (00:59 +0800)
committerReginald Kennedy <rk@rejii.com>
Wed, 4 May 2016 17:20:24 +0000 (01:20 +0800)
fixes #126

spectrwm.c

index e566741c6d885136f2b331d47add86620fe844df..f68e08bf74a07a6dbecf1c1209441e754930cef0 100644 (file)
@@ -4144,6 +4144,10 @@ set_region(struct swm_region *r)
 
        r->s->r_focus = r;
 
+       /* Update the focus window frame on the now unfocused region. */
+       if (rf && rf->ws->focus)
+               draw_frame(rf->ws->focus);
+
        ewmh_update_current_desktop();
 }