aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-29 10:43:10 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-29 10:43:10 -0400
commitc01248cf17b0556145d973449d0b12cad0b96a8c (patch)
tree8b76fcdbf82ee92ef19504d4a9c0e3abc43f8e1c /rootston/cursor.c
parentce72a687ce3b88b69b0d319800d2f466205a15f7 (diff)
parent50e86a0efa43fa72bd7d8c2dfc2d124052f74823 (diff)
Merge branch 'master' into feature/xwm-rewrite
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index 2cf90539..917e876c 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -160,6 +160,13 @@ void cursor_update_position(struct roots_input *input, uint32_t time) {
width += dx;
}
+ if (width < 0) {
+ width = 0;
+ }
+ if (height < 0) {
+ height = 0;
+ }
+
// TODO we might need one configure event for this
if (active_x != input->active_view->x ||
active_y != input->active_view->y) {