summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-03-25 04:23:32 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2017-03-25 04:23:32 -0700
commit1d7368838282740cb81f9fafe77b260991e7c1be (patch)
treed77dabaab9ec7d8715a4fc2324e048ccf40ef360 /src/window.c
parentfd3dc25ae8512d3acdd29d3ea5c8643724c29e7b (diff)
*: more minor style fixups
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index ba8d0b4..92da503 100644
--- a/src/window.c
+++ b/src/window.c
@@ -219,10 +219,9 @@ void vwm_win_focus(vwm_t *vwm, vwm_window_t *vwin)
/* fullscreen windows in the shelf when focused, since we don't intend to overlap there */
vwm_win_autoconf(vwm, vwin, VWM_SCREEN_REL_POINTER, VWM_WIN_AUTOCONF_FULL); /* XXX TODO: for now the shelf follows the pointer, it's simple. */
} else {
- if (vwin->desktop->focused_window) {
+ if (vwin->desktop->focused_window)
/* set the border of the previously focused window on the same desktop to the unfocused color */
XSetWindowBorder(VWM_XDISPLAY(vwm), vwin->desktop->focused_window->xwindow->id, vwm->colors.unfocused_window_border_color.pixel);
- }
/* set the border of the newly focused window to the focused color */
XSetWindowBorder(VWM_XDISPLAY(vwm), vwin->xwindow->id, vwm->colors.focused_window_border_color.pixel);
© All Rights Reserved