all repos — fluxbox @ c200045e9a5d81a67d98eacffeb6385acdac37e2

custom fork of the fluxbox windowmanager

code deduplication: use RectangleUtil::insideBorder()
Mathias Gumz akira at fluxbox dot org
commit

c200045e9a5d81a67d98eacffeb6385acdac37e2

parent

767afd32f3903be52a40ed1d41490b2dd4e5af1c

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -2004,10 +2004,7 @@

#ifdef XINERAMA if (hasXinerama()) { for (int i=0; i < m_xinerama_num_heads; i++) { - if (x >= m_xinerama_headinfo[i].x && - x < (m_xinerama_headinfo[i].x + m_xinerama_headinfo[i].width) && - y >= m_xinerama_headinfo[i].y && - y < (m_xinerama_headinfo[i].y + m_xinerama_headinfo[i].height)) { + if (RectangleUtil::insideBorder(m_xinerama_headinfo[i], x, y, 0)) { return i+1; } }