aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
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