summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc14
-rw-r--r--src/fluxbox.cc3
-rw-r--r--src/fluxbox.hh6
3 files changed, 19 insertions, 4 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
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 6b7d427..d26d8b3 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.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: fluxbox.cc,v 1.126 2003/05/04 13:07:00 rathnor Exp $ 25// $Id: fluxbox.cc,v 1.127 2003/05/04 16:55:40 rathnor Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -365,6 +365,7 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile
365 m_fbatoms(new FbAtoms()), 365 m_fbatoms(new FbAtoms()),
366 m_resourcemanager(), m_screen_rm(), 366 m_resourcemanager(), m_screen_rm(),
367 m_rc_tabs(m_resourcemanager, true, "session.tabs", "Session.Tabs"), 367 m_rc_tabs(m_resourcemanager, true, "session.tabs", "Session.Tabs"),
368 m_rc_ignoreborder(m_resourcemanager, false, "session.ignoreBorder", "Session.IgnoreBorder"),
368 m_rc_colors_per_channel(m_resourcemanager, 4, 369 m_rc_colors_per_channel(m_resourcemanager, 4,
369 "session.colorsPerChannel", "Session.ColorsPerChannel"), 370 "session.colorsPerChannel", "Session.ColorsPerChannel"),
370 m_rc_numlayers(m_resourcemanager, 13, "session.numLayers", "Session.NumLayers"), 371 m_rc_numlayers(m_resourcemanager, 13, "session.numLayers", "Session.NumLayers"),
diff --git a/src/fluxbox.hh b/src/fluxbox.hh
index ee60094..35f7c79 100644
--- a/src/fluxbox.hh
+++ b/src/fluxbox.hh
@@ -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: fluxbox.hh,v 1.51 2003/04/27 04:28:04 rathnor Exp $ 25// $Id: fluxbox.hh,v 1.52 2003/05/04 16:55:40 rathnor Exp $
26 26
27#ifndef FLUXBOX_HH 27#ifndef FLUXBOX_HH
28#define FLUXBOX_HH 28#define FLUXBOX_HH
@@ -99,6 +99,8 @@ public:
99 99
100 enum FocusModel { SLOPPYFOCUS=0, SEMISLOPPYFOCUS, CLICKTOFOCUS }; 100 enum FocusModel { SLOPPYFOCUS=0, SEMISLOPPYFOCUS, CLICKTOFOCUS };
101 101
102 inline const Bool getIgnoreBorder() const { return *m_rc_ignoreborder; }
103
102 inline const std::vector<Fluxbox::Titlebar>& getTitlebarRight() const { return *m_rc_titlebar_right; } 104 inline const std::vector<Fluxbox::Titlebar>& getTitlebarRight() const { return *m_rc_titlebar_right; }
103 inline const std::vector<Fluxbox::Titlebar>& getTitlebarLeft() const { return *m_rc_titlebar_left; } 105 inline const std::vector<Fluxbox::Titlebar>& getTitlebarLeft() const { return *m_rc_titlebar_left; }
104 inline const std::string &getStyleFilename() const { return *m_rc_stylefile; } 106 inline const std::string &getStyleFilename() const { return *m_rc_stylefile; }
@@ -216,7 +218,7 @@ private:
216 ResourceManager m_resourcemanager, m_screen_rm; 218 ResourceManager m_resourcemanager, m_screen_rm;
217 219
218 //--- Resources 220 //--- Resources
219 Resource<bool> m_rc_tabs; 221 Resource<bool> m_rc_tabs, m_rc_ignoreborder;
220 Resource<int> m_rc_colors_per_channel, m_rc_numlayers; 222 Resource<int> m_rc_colors_per_channel, m_rc_numlayers;
221 Resource<std::string> m_rc_stylefile, 223 Resource<std::string> m_rc_stylefile,
222 m_rc_menufile, m_rc_keyfile, m_rc_slitlistfile, 224 m_rc_menufile, m_rc_keyfile, m_rc_slitlistfile,