forked from AuroraMiddleware/gtk
[broadway] Add _gdk_broadway_display_consume_all_input
This parses and queues all currently availible input data non-blockingly. Useful to ensure the latest up-to-date future info.
This commit is contained in:
parent
fdc2059edb
commit
a0048d5e70
@ -375,6 +375,21 @@ _gdk_broadway_display_read_all_input_nonblocking (GdkDisplay *display)
|
|||||||
parse_input (input);
|
parse_input (input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_gdk_broadway_display_consume_all_input (GdkDisplay *display)
|
||||||
|
{
|
||||||
|
GdkBroadwayDisplay *broadway_display;
|
||||||
|
|
||||||
|
broadway_display = GDK_BROADWAY_DISPLAY (display);
|
||||||
|
_gdk_broadway_display_read_all_input_nonblocking (display);
|
||||||
|
|
||||||
|
/* Since we're parsing input but not processing the resulting messages
|
||||||
|
we might not get a readable callback on the stream, so queue an idle to
|
||||||
|
process the messages */
|
||||||
|
queue_process_input_at_idle (broadway_display);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
input_data_cb (GObject *stream,
|
input_data_cb (GObject *stream,
|
||||||
BroadwayInput *input)
|
BroadwayInput *input)
|
||||||
|
@ -187,6 +187,7 @@ gint _gdk_broadway_display_text_property_to_utf8_list (GdkDisplay *display,
|
|||||||
gchar *_gdk_broadway_display_utf8_to_string_target (GdkDisplay *display,
|
gchar *_gdk_broadway_display_utf8_to_string_target (GdkDisplay *display,
|
||||||
const gchar *str);
|
const gchar *str);
|
||||||
GdkKeymap* _gdk_broadway_display_get_keymap (GdkDisplay *display);
|
GdkKeymap* _gdk_broadway_display_get_keymap (GdkDisplay *display);
|
||||||
|
void _gdk_broadway_display_consume_all_input (GdkDisplay *display);
|
||||||
BroadwayInputMsg * _gdk_broadway_display_block_for_input (GdkDisplay *display,
|
BroadwayInputMsg * _gdk_broadway_display_block_for_input (GdkDisplay *display,
|
||||||
char op,
|
char op,
|
||||||
guint32 serial,
|
guint32 serial,
|
||||||
|
Loading…
Reference in New Issue
Block a user