summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index bde03f6..889772c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -411,7 +411,10 @@ give_window_focus (rp_window *win, rp_window *last_win)
/* Warp the cursor to the window's saved position if last_win and
win are different windows. */
if (last_win != NULL && win != last_win)
- save_mouse_position (last_win);
+ {
+ save_mouse_position (last_win);
+ XSetWindowBorder (dpy, last_win->w, last_win->scr->bw_color);
+ }
if (win == NULL) return;
@@ -430,6 +433,8 @@ give_window_focus (rp_window *win, rp_window *last_win)
if (last_win != NULL) XUninstallColormap (dpy, last_win->colormap);
XInstallColormap (dpy, win->colormap);
+ XSetWindowBorder (dpy, win->w, win->scr->fw_color);
+
/* Finally, give the window focus */
rp_current_screen = win->scr->xine_screen_num;
set_rp_window_focus (win);