code deduplication: use RectangleUtil::insideBorder()
Mathias Gumz akira at fluxbox dot org
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
src/Screen.cc
→
src/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; } }