mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
Consolidate more code in clients/window.c
This commit is contained in:
parent
a85fe3cf45
commit
7824d81e07
7 changed files with 73 additions and 156 deletions
|
|
@ -35,10 +35,19 @@ struct rectangle {
|
|||
struct display;
|
||||
|
||||
struct display *
|
||||
display_create(struct wl_display *display, int fd);
|
||||
display_create(int *argc, char **argv[], const GOptionEntry *option_entries);
|
||||
|
||||
struct wl_compositor *
|
||||
display_get_compositor(struct display *display);
|
||||
|
||||
#ifdef EGL_NO_DISPLAY
|
||||
EGLDisplay
|
||||
display_get_egl_display(struct display *d);
|
||||
#endif
|
||||
|
||||
void
|
||||
display_run(struct display *d);
|
||||
|
||||
enum {
|
||||
WINDOW_MODIFIER_SHIFT = 0x01,
|
||||
WINDOW_MODIFIER_ALT = 0x02,
|
||||
|
|
@ -114,4 +123,5 @@ window_set_keyboard_focus_handler(struct window *window,
|
|||
void
|
||||
window_set_frame_handler(struct window *window,
|
||||
window_frame_handler_t handler, void *data);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue