aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-05-04 16:55:40 (GMT)
committerrathnor <rathnor>2003-05-04 16:55:40 (GMT)
commitb10dc8434b4faa7c4b9be82c00f1c4e141eab0c4 (patch)
treec8155258f61711b3f90dcbe3c02011323f5d12c7 /src/Window.cc
parentcd3379270b388cbfe5040d43a4c90f976c06e1b7 (diff)
downloadfluxbox-b10dc8434b4faa7c4b9be82c00f1c4e141eab0c4.zip
fluxbox-b10dc8434b4faa7c4b9be82c00f1c4e141eab0c4.tar.bz2
add session.ignoreBorder to ignore border for movement events
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index fb7b169..bd930db 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.157 2003/05/04 13:55:39 rathnor Exp $ 25// $Id: Window.cc,v 1.158 2003/05/04 16:55:40 rathnor Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -2253,6 +2253,18 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) {
2253 } 2253 }
2254 bool inside_titlebar = (m_frame.titlebar() == me.window || m_frame.label() == me.window || 2254 bool inside_titlebar = (m_frame.titlebar() == me.window || m_frame.label() == me.window ||
2255 m_frame.handle() == me.window || m_frame.window() == me.window); 2255 m_frame.handle() == me.window || m_frame.window() == me.window);
2256
2257 if (Fluxbox::instance()->getIgnoreBorder()
2258 && !(me.state & Mod1Mask) // really should check for exact matches
2259 && !(isMoving() || isResizing())) {
2260 int borderw = screen.rootTheme().borderWidth();
2261 if (me.x_root < (m_frame.x() + borderw) ||
2262 me.y_root < (m_frame.y() + borderw) ||
2263 me.x_root > (m_frame.x() + (int)m_frame.width() + borderw) ||
2264 me.y_root > (m_frame.y() + (int)m_frame.height() + borderw))
2265 return;
2266 }
2267
2256 WinClient *client = 0; 2268 WinClient *client = 0;
2257 if (!inside_titlebar) { 2269 if (!inside_titlebar) {
2258 // determine if we're in titlebar 2270 // determine if we're in titlebar