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
This commit is contained in:
Rui Matos 2015-04-27 19:08:24 +02:00
parent ed6cb19283
commit f8eb9e763d

View File

@ -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;