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 0e6baec350
commit 4f703019ca

View File

@ -1464,7 +1464,7 @@ shell_global_sync_pointer (ShellGlobal *global)
event.type = CLUTTER_MOTION; event.type = CLUTTER_MOTION;
event.time = shell_global_get_current_time (global); event.time = shell_global_get_current_time (global);
event.flags = 0; event.flags = CLUTTER_EVENT_FLAG_SYNTHETIC;
event.stage = global->stage; event.stage = global->stage;
event.x = x; event.x = x;
event.y = y; event.y = y;