foo-wm

(Archived) Experimental Zooming IPC-based WM
git clone http://milesalan.com/git/foo-wm
Log | Files | Refs | Mirror | README | LICENSE

commit 573326a3c887518334b11d32cf09b8d336312404
parent 562f4da79cfdcb0854932c1fe38e94e74783422a
Author: = <miles.sandlar@gmail.com>
Date:   Wed,  1 Aug 2012 22:33:03 -0400

focus pc -1 bug

Diffstat:
Msrc/commands.c | 4++++
Msrc/config.h | 2+-
Msrc/tree.c | 2+-
3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/commands.c b/src/commands.c @@ -95,6 +95,10 @@ void zoom(int level) { fprintf(stderr, "placeing yo"); placeNode(viewNode, rootX, rootY, rootWidth, rootHeight); + if (focusedNode == viewNode && !isClient(focusedNode)) { + focusNode(focusedNode -> focus ? + focusedNode -> focus : focusedNode -> child , NULL, True, True); + } level--; } } diff --git a/src/config.h b/src/config.h @@ -20,5 +20,5 @@ #define CLIENT_INACTIVE_FOCUSED_COLOR "rgb:a7/ff/87" #define CLIENT_INACTIVE_UNFOCUSED_COLOR "rgb:54/54/54" -#define CLIENT_BORDER_WIDTH (10) +#define CLIENT_BORDER_WIDTH (1) #define CLIENT_PADDING (1) diff --git a/src/tree.c b/src/tree.c @@ -89,7 +89,7 @@ void focusNode(Node * n, XEvent * event, Bool setFocused, Bool focusPath) { fprintf(stderr, "Focusing %p", n); Bool setView = False; //Wether the viewNode needs to be moved - if (focusPath) { + if (focusPath && setFocused) { fprintf(stderr, "\n\nNode %p, is in the focus patho\n\n", n); setView = unfocusNode(focusedNode, True); if (setFocused && n -> parent) n -> parent -> focus = n;