summaryrefslogtreecommitdiff
path: root/src/display.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@src.gnome.org>2002-08-23 18:00:40 +0000
committerKeith Packard <keithp@src.gnome.org>2002-08-23 18:00:40 +0000
commit0f9bdb18f51fa25a85d790f121920df51e0f652e (patch)
tree51558c08fdefb6b6a71bf346a380c7d33932f2a5 /src/display.c
parent29d17da1ba6151171c30474d53bd2861ffbe00f8 (diff)
downloadmetacity-0f9bdb18f51fa25a85d790f121920df51e0f652e.tar.gz
metacity-0f9bdb18f51fa25a85d790f121920df51e0f652e.tar.bz2
Place cursors on frames, not root
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c
index 7715aeb..ea2508e 100644
--- a/src/display.c
+++ b/src/display.c
@@ -2247,6 +2247,8 @@ xcursor_for_op (MetaDisplay *display,
break;
}
+ if (cursor == META_CURSOR_DEFAULT)
+ return None;
return meta_display_create_x_cursor (display, cursor);
}
@@ -2305,7 +2307,8 @@ meta_display_set_grab_op_cursor (MetaDisplay *display,
}
#undef GRAB_MASK
- XFreeCursor (display->xdisplay, cursor);
+ if (cursor != None)
+ XFreeCursor (display->xdisplay, cursor);
}
gboolean