[broadway] Track last mouse position

This commit is contained in:
Alexander Larsson
2010-11-21 20:45:50 +01:00
parent e64a38eeef
commit 93fec05183
2 changed files with 5 additions and 0 deletions

View File

@@ -211,6 +211,8 @@ got_input (GInputStream *stream,
y = strtol(p, &p, 10);
p++; /* Skip , */
time = strtol(p, &p, 10);
display_broadway->last_x = x;
display_broadway->last_y = y;
window = g_hash_table_lookup (display_broadway->id_ht, GINT_TO_POINTER (id));
@@ -298,6 +300,8 @@ got_input (GInputStream *stream,
button = strtol(p, &p, 10);
p++; /* Skip , */
time = strtol(p, &p, 10);
display_broadway->last_x = x;
display_broadway->last_y = y;
window = g_hash_table_lookup (display_broadway->id_ht, GINT_TO_POINTER (id));

View File

@@ -53,6 +53,7 @@ struct _GdkDisplayBroadway
GSource *event_source;
GdkWindow *mouse_in_toplevel;
int last_x, last_y;
gint grab_count;