summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/manage.c3
-rw-r--r--src/split.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/manage.c b/src/manage.c
index 8bad332..3328959 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -829,6 +829,9 @@ hide_window (rp_window *win)
XSelectInput(dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
XUnmapWindow (dpy, win->w);
XSelectInput (dpy, win->w, WIN_EVENTS);
+ /* Ensure that the window doesn't have the focused border
+ color. This is needed by remove_frame and possibly others. */
+ XSetWindowBorder (dpy, win->w, win->scr->bw_color);
set_state (win, IconicState);
}
diff --git a/src/split.c b/src/split.c
index 561e928..6a6773d 100644
--- a/src/split.c
+++ b/src/split.c
@@ -808,7 +808,6 @@ remove_frame (rp_frame *frame)
{
rp_window *new = find_window_number (cur->win_number);
maximize_all_windows_in_frame (cur);
- give_window_focus (new, win);
XRaiseWindow (dpy, new->w);
}
}