mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user