From a0944a02cd46d30abd445569f2e5ffa46d113a0c Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 28 Feb 2007 21:29:58 +0000 Subject: ignore borders when doing FocusLeft, etc. --- src/FbTk/ITypeAheadable.hh | 0 src/FbTk/SearchResult.cc | 0 src/FbTk/SearchResult.hh | 0 src/FbTk/TypeAhead.hh | 0 src/FocusControl.cc | 16 ++++++++-------- 5 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 src/FbTk/ITypeAheadable.hh create mode 100644 src/FbTk/SearchResult.cc create mode 100644 src/FbTk/SearchResult.hh create mode 100644 src/FbTk/TypeAhead.hh diff --git a/src/FbTk/ITypeAheadable.hh b/src/FbTk/ITypeAheadable.hh new file mode 100644 index 0000000..e69de29 diff --git a/src/FbTk/SearchResult.cc b/src/FbTk/SearchResult.cc new file mode 100644 index 0000000..e69de29 diff --git a/src/FbTk/SearchResult.hh b/src/FbTk/SearchResult.hh new file mode 100644 index 0000000..e69de29 diff --git a/src/FbTk/TypeAhead.hh b/src/FbTk/TypeAhead.hh new file mode 100644 index 0000000..e69de29 diff --git a/src/FocusControl.cc b/src/FocusControl.cc index 15fa0fc..5cbf645 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc @@ -275,10 +275,10 @@ void FocusControl::dirFocus(FluxboxWindow &win, FocusDir dir) { FluxboxWindow *foundwin = 0; int weight = 999999, exposure = 0; // extreme values int borderW = m_screen.winFrameTheme().border().width(), - top = win.y(), - bottom = win.y() + win.height() + 2*borderW, - left = win.x(), - right = win.x() + win.width() + 2*borderW; + top = win.y() + borderW, + bottom = win.y() + win.height() + borderW, + left = win.x() + borderW, + right = win.x() + win.width() + borderW; Workspace::Windows &wins = m_screen.currentWorkspace()->windowList(); Workspace::Windows::iterator it = wins.begin(); @@ -292,12 +292,12 @@ void FocusControl::dirFocus(FluxboxWindow &win, FocusDir dir) { // we check things against an edge, and within the bounds (draw a picture) int edge=0, upper=0, lower=0, oedge=0, oupper=0, olower=0; - int otop = (*it)->y(), + int otop = (*it)->y() + borderW, // 2 * border = border on each side - obottom = (*it)->y() + (*it)->height() + 2*borderW, - oleft = (*it)->x(), + obottom = (*it)->y() + (*it)->height() + borderW, + oleft = (*it)->x() + borderW, // 2 * border = border on each side - oright = (*it)->x() + (*it)->width() + 2*borderW; + oright = (*it)->x() + (*it)->width() + borderW; // check if they intersect switch (dir) { -- cgit v0.11.2