diff options
author | Kipling Inscore <k@bijna.net> | 2008-08-03 11:40:42 -0700 |
---|---|---|
committer | Shawn <sabetts@juicebox.(none)> | 2008-10-10 13:07:47 -0700 |
commit | 497fb323835bbb3cceb39874e7555b565863c7e8 (patch) | |
tree | 5d2e5495b879cd1e4dfbbbd0b8913685adf86d55 /src/window.c | |
parent | b47008536843fe9dfa5790581228f42d5c83ee80 (diff) | |
download | ratpoison-497fb323835bbb3cceb39874e7555b565863c7e8.zip |
allow window border color to be set seperately for focused and unfocused windows
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 7 |
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); |