[gnome-settings-daemon] cursor: Fix logic error when hiding cursor
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] cursor: Fix logic error when hiding cursor
- Date: Wed, 8 Jun 2011 11:36:55 +0000 (UTC)
commit 496e6dd24235fd1244e6ddea713984f73b5a7d70
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jun 8 12:29:23 2011 +0100
cursor: Fix logic error when hiding cursor
We were never actually trying to hide the cursor. Works now!
plugins/cursor/gsd-cursor-manager.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/cursor/gsd-cursor-manager.c b/plugins/cursor/gsd-cursor-manager.c
index 5160920..40cd3ec 100644
--- a/plugins/cursor/gsd-cursor-manager.c
+++ b/plugins/cursor/gsd-cursor-manager.c
@@ -100,6 +100,8 @@ set_cursor_visibility (GsdCursorManager *manager,
guint n_screens;
guint i;
+ g_debug ("Attempting to %s the cursor", visible ? "show" : "hide");
+
display = gdk_display_get_default ();
xdisplay = GDK_DISPLAY_XDISPLAY (display);
@@ -186,7 +188,7 @@ update_cursor_for_current (GsdCursorManager *manager)
}
} else {
g_debug ("No mice present");
- if (manager->priv->cursor_shown == FALSE) {
+ if (manager->priv->cursor_shown != FALSE) {
set_cursor_visibility (manager, FALSE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]