[gnome-shell] shell-global: Mark the sync pointer motion event as	synthetic
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-shell] shell-global: Mark the sync pointer motion event as	synthetic
- Date: Mon, 27 Apr 2015 17:48:15 +0000 (UTC)
commit 4f703019cade7ff6132f8592552f735d0df21fe6
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Apr 27 19:08:24 2015 +0200
    shell-global: Mark the sync pointer motion event as synthetic
    
    This allows mutter to ignore these events for the purpose of keeping
    idle time.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748541
 src/shell-global.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index acd5c80..188e898 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -1464,7 +1464,7 @@ shell_global_sync_pointer (ShellGlobal *global)
 
   event.type = CLUTTER_MOTION;
   event.time = shell_global_get_current_time (global);
-  event.flags = 0;
+  event.flags = CLUTTER_EVENT_FLAG_SYNTHETIC;
   event.stage = global->stage;
   event.x = x;
   event.y = y;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]