mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
win32: Fix clutter_win32_disable_event_retrieval
There was previously a flag that gets set when this function was called but nothing checked it so the function effectively did nothing. Also the flag was a member of the backend struct but this can't be used because the function should be called before clutter_init so the backend is not ready yet. This patch makes the event disabling work more like the X11 backend and set a global variable instead.
This commit is contained in:
@ -237,26 +237,6 @@ make_button_event (const MSG *msg,
|
||||
take_and_queue_event (event);
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_win32_disable_event_retrieval
|
||||
*
|
||||
* Disables retrieval of Windows messages in the main loop. Use to
|
||||
* create event-less canvas.
|
||||
*
|
||||
* This function can only be called before calling clutter_init().
|
||||
*
|
||||
* Since: 0.8
|
||||
*/
|
||||
void
|
||||
clutter_win32_disable_event_retrieval (void)
|
||||
{
|
||||
ClutterBackendWin32 *backend;
|
||||
|
||||
backend = CLUTTER_BACKEND_WIN32 (clutter_get_default_backend ());
|
||||
|
||||
backend->no_event_retrieval = TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
clutter_event_prepare (GSource *source,
|
||||
gint *timeout)
|
||||
|
Reference in New Issue
Block a user