Jasper St. Pierre 48dfde2073 keyboard/pointer: Calculate the serial once per event
Some applications, like totem, create keyboard/pointer objects from the
same client, and expect it to work. We made this work a while ago, but
due to an oversight in the code, we increment the serial on button press
for every resource that we need to send events to.

Since operations like move/resize use the grab serial of the devices to
determine whether the operation is exact, we need to make sure the same
serial goes to all devices.

Restructure the code so that all that's in the resource loop is the
sending of the event -- all the calculation that's needed happens
outside.

This fixes moving / resizing the Totem window not working sometimes.

https://bugzilla.gnome.org/show_bug.cgi?id=736840
2014-09-18 09:15:13 -06:00
2014-09-17 05:37:54 +02:00
2014-09-17 11:27:43 +00:00
2014-09-17 06:14:24 +02:00
2014-07-31 17:50:28 +02:00
2014-09-17 06:14:24 +02:00
Description
91 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%