summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
authorKipling Inscore <k@bijna.net>2008-08-03 11:40:42 -0700
committerShawn <sabetts@juicebox.(none)>2008-10-10 13:07:47 -0700
commit497fb323835bbb3cceb39874e7555b565863c7e8 (patch)
tree5d2e5495b879cd1e4dfbbbd0b8913685adf86d55 /src/split.c
parentb47008536843fe9dfa5790581228f42d5c83ee80 (diff)
downloadratpoison-497fb323835bbb3cceb39874e7555b565863c7e8.zip
allow window border color to be set seperately for focused and unfocused windows
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c
index 9b1d41b..561e928 100644
--- a/src/split.c
+++ b/src/split.c
@@ -806,9 +806,10 @@ remove_frame (rp_frame *frame)
the new frame size. */
if (cur->win_number != EMPTY)
{
- win = find_window_number (cur->win_number);
+ rp_window *new = find_window_number (cur->win_number);
maximize_all_windows_in_frame (cur);
- XRaiseWindow (dpy, win->w);
+ give_window_focus (new, win);
+ XRaiseWindow (dpy, new->w);
}
}
else