aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorokan2011-03-22 10:54:42 +0000
committerokan2011-03-22 10:54:42 +0000
commit6936490329d266aee84eaf7c7ecf7881683ccc5b (patch)
tree5217012e84b81bd418db216156837e0eba8f2314 /screen.c
parenta55116779436adb57bb0ddc4c750d261327d68b0 (diff)
downloadcwm-6936490329d266aee84eaf7c7ecf7881683ccc5b.tar.gz
(0,0) is also inside in the screen; from Sviatoslav Chagaev.
ok oga@
Diffstat (limited to '')
-rw-r--r--screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/screen.c b/screen.c
index 9a5ad56..3ef4ccb 100644
--- a/screen.c
+++ b/screen.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: screen.c,v 1.26 2010/01/27 03:04:50 okan Exp $
+ * $Id: screen.c,v 1.27 2011/03/22 10:54:42 okan Exp $
*/
#include <sys/param.h>
@@ -101,8 +101,8 @@ screen_find_xinerama(struct screen_ctx *sc, int x, int y)
for (i = 0; i < sc->xinerama_no; i++) {
info = &sc->xinerama[i];
- if (x > info->x_org && x < info->x_org + info->width &&
- y > info->y_org && y < info->y_org + info->height)
+ if (x >= info->x_org && x < info->x_org + info->width &&
+ y >= info->y_org && y < info->y_org + info->height)
return (info);
}
return (NULL);