[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Window Gaps: Pseudo-tiled Windows Fix



Hi,

Maybe this simple fix will suffice.

Greetings,
-- 
 b.d
(| |)
 ^ ^
>From b35e20198a38c8068ddd00b126dc2f5e711ec275 Mon Sep 17 00:00:00 2001
From: baskerville <nihilhill _at_ gmail _dot_ com>
Date: Tue, 17 Jul 2012 12:31:33 +0200
Subject: [PATCH 1/2] window_gap: fix pseudo tiled clients

---
 src/clientlist.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/clientlist.c b/src/clientlist.c
index 38b8aa5..daf55ed 100644
--- a/src/clientlist.c
+++ b/src/clientlist.c
@@ -344,10 +344,9 @@ void client_resize(HSClient* client, XRectangle rect, HSFrame* frame) {
     rect.width -= border_width * 2;
     rect.height -= border_width * 2;
     // apply window gap
-    if (!client->pseudotile) {
-        rect.width -= *g_window_gap;
-        rect.height -= *g_window_gap;
-    }
+    rect.width -= *g_window_gap;
+    rect.height -= *g_window_gap;
+
     XSetWindowBorderWidth(g_display, win, border_width);
     XMoveResizeWindow(g_display, win, rect.x, rect.y, rect.width, rect.height);
     //// send new size to client
-- 
1.7.11.2

>From f4975b9f42dacf4f28c4675157100c2d710b6c9b Mon Sep 17 00:00:00 2001
From: baskerville <nihilhill _at_ gmail _dot_ com>
Date: Tue, 17 Jul 2012 12:32:42 +0200
Subject: [PATCH 2/2] fix frame/window gap typo in comment

---
 src/monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/monitor.c b/src/monitor.c
index 08506a4..e2da4e6 100644
--- a/src/monitor.c
+++ b/src/monitor.c
@@ -58,7 +58,7 @@ void monitor_apply_layout(HSMonitor* monitor) {
         rect.y += monitor->pad_up;
         rect.height -= (monitor->pad_up + monitor->pad_down);
         if (!*g_smart_frame_surroundings || monitor->tag->frame->type == TYPE_FRAMES ) {
-            // apply window gap
+            // apply frame gap
             rect.x += *g_frame_gap;
             rect.y += *g_frame_gap;
             rect.height -= *g_frame_gap;
-- 
1.7.11.2

------------------------------------------------------------------------------
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/
_______________________________________________
Herbstluftwm-devel mailing list
Herbstluftwm _minus_ devel _at_ lists _dot_ sourceforge _dot_ net
https://lists.sourceforge.net/lists/listinfo/herbstluftwm-devel