summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-07-09 20:36:31 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-07-09 20:36:31 +0200
commit8fc0f15412654e8520fb0a97430063bbb70634e0 (patch)
treecf206ca2297a4c1a463e922715ef14b58a4bbdd7
parent4b7b0468cd96fe27d7718ad91718d3ac2e0668cb (diff)
downloadratpoison-8fc0f15412654e8520fb0a97430063bbb70634e0.zip
Always show the frame indicator when switching to a different screen.
When switching to another screen, the focus{left,right,up,down} commands only show the frame indicator if the target screen has more than one frame. This behavior is kinda non-intuitive. Pointed out by Antoine Busque, who also provided a different fix.
-rw-r--r--src/split.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/split.c b/src/split.c
index 98c0cda..eed0f50 100644
--- a/src/split.c
+++ b/src/split.c
@@ -847,6 +847,9 @@ set_active_frame (rp_frame *frame, int force_indicator)
if ((old != s->current_frame && num_frames(s) > 1)
|| s != old_s)
{
+ if (s != old_s)
+ force_indicator = 1;
+
show_frame_indicator(force_indicator);
/* run the frame switch hook. We call it in here because this is