[mousetweaks] Load existing cursors from the library
- From: Gerd Kohlberger <gerdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetweaks] Load existing cursors from the library
- Date: Sat, 12 Mar 2011 20:11:00 +0000 (UTC)
commit c626a37cd5fe4e550b04ae62912fecad8871fbfa
Author: Gerd Kohlberger <gerdk src gnome org>
Date: Sat Mar 12 21:10:36 2011 +0100
Load existing cursors from the library
src/mt-cursor-manager.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/mt-cursor-manager.c b/src/mt-cursor-manager.c
index 3d6d8f2..a111425 100644
--- a/src/mt-cursor-manager.c
+++ b/src/mt-cursor-manager.c
@@ -162,7 +162,16 @@ mt_cursor_manager_restore_cursor (gpointer key,
gpointer value,
gpointer data)
{
- mt_cursor_manager_set_xcursor (value);
+ Display *dpy;
+ Cursor xcursor;
+
+ dpy = mt_common_get_xdisplay ();
+ xcursor = XcursorLibraryLoadCursor (dpy, key);
+ if (xcursor)
+ {
+ XFixesChangeCursorByName (dpy, xcursor, key);
+ XFreeCursor (dpy, xcursor);
+ }
}
static MtCursor *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]