diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index d3df049..e54b328 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -2004,10 +2004,7 @@ int BScreen::getHead(int x, int y) const { | |||
2004 | #ifdef XINERAMA | 2004 | #ifdef XINERAMA |
2005 | if (hasXinerama()) { | 2005 | if (hasXinerama()) { |
2006 | for (int i=0; i < m_xinerama_num_heads; i++) { | 2006 | for (int i=0; i < m_xinerama_num_heads; i++) { |
2007 | if (x >= m_xinerama_headinfo[i].x && | 2007 | if (RectangleUtil::insideBorder(m_xinerama_headinfo[i], x, y, 0)) { |
2008 | x < (m_xinerama_headinfo[i].x + m_xinerama_headinfo[i].width) && | ||
2009 | y >= m_xinerama_headinfo[i].y && | ||
2010 | y < (m_xinerama_headinfo[i].y + m_xinerama_headinfo[i].height)) { | ||
2011 | return i+1; | 2008 | return i+1; |
2012 | } | 2009 | } |
2013 | } | 2010 | } |