win32: use a struct for the event source

This removes the event_poll_fd global variable and the (ab)use of
get_default_display. It is also more consistent with other backends.

Also store display
This commit is contained in:
Paolo Borelli
2016-03-05 19:02:15 +01:00
parent 58a49c1a4b
commit 8f25481406
3 changed files with 39 additions and 36 deletions

View File

@ -540,6 +540,6 @@ gboolean _gdk_win32_window_lacks_wm_decorations (GdkWindow *window);
/* Initialization */
void _gdk_win32_windowing_init (void);
void _gdk_dnd_init (void);
void _gdk_events_init (void);
void _gdk_events_init (GdkDisplay *display);
#endif /* __GDK_PRIVATE_WIN32_H__ */