device: Store the current state, not the previous

The previous state for the device is used by the click count machinery
and we should not be overwriting it at every event; instead, we should
use a parallel storage for the current state coming from the windowing
system.
This commit is contained in:
Emmanuele Bassi
2009-12-07 23:05:20 +00:00
parent 68b47e3ed4
commit cf8a06f018
2 changed files with 24 additions and 17 deletions

View File

@ -97,6 +97,13 @@ struct _ClutterInputDevice
gint click_count;
ClutterStage *stage;
gint current_x;
gint current_y;
guint32 current_time;
gint current_button_number;
ClutterModifierType current_state;
gint previous_x;
gint previous_y;
guint32 previous_time;