[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Always apply correct frame colors for active frame
- To: herbstluftwm _minus_ devel _at_ lists _dot_ sourceforge _dot_ net
- Subject: [PATCH] Always apply correct frame colors for active frame
- From: Hans-Peter Deifel <hpdeifel _at_ gmx _dot_ de>
- Date: Wed, 18 Jul 2012 14:26:10 +0200
If a tag contained only one frame and smart_frame_surroundings was on,
the normal colors were used for this frame, even if it was active.
---
src/layout.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/layout.c b/src/layout.c
index bca2fd1..c215d6b 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -755,13 +755,13 @@ void frame_apply_layout(HSFrame* frame, XRectangle rect) {
}
unsigned long border_color = g_frame_border_normal_color;
unsigned long bg_color = g_frame_bg_normal_color;
+ if (g_cur_frame == frame) {
+ border_color = g_frame_border_active_color;
+ bg_color = g_frame_bg_active_color;
+ }
if (!*g_smart_frame_surroundings || frame->parent) {
XSetWindowBorderWidth(g_display, frame->window, *g_frame_border_width);
// set indicator frame
- if (g_cur_frame == frame) {
- border_color = g_frame_border_active_color;
- bg_color = g_frame_bg_active_color;
- }
XSetWindowBorder(g_display, frame->window, border_color);
XMoveResizeWindow(g_display, frame->window,
rect.x - *g_frame_border_width,
--
1.7.8.6
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/