summaryrefslogtreecommitdiff
path: root/clients/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'clients/window.h')
-rw-r--r--clients/window.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/clients/window.h b/clients/window.h
index 538ff07e..f45a2818 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -40,8 +40,14 @@ struct rectangle {
struct display;
struct input;
+typedef void (*display_global_handler_t)(struct display *display,
+ const char *interface,
+ uint32_t id,
+ uint32_t version);
+
struct display *
-display_create(int *argc, char **argv[], const GOptionEntry *option_entries);
+display_create(int *argc, char **argv[], const GOptionEntry *option_entries,
+ display_global_handler_t handler);
struct wl_display *
display_get_display(struct display *display);
@@ -134,11 +140,6 @@ typedef int (*window_motion_handler_t)(struct window *window,
int32_t x, int32_t y,
int32_t sx, int32_t sy, void *data);
-typedef void (*display_global_handler_t)(struct display *display,
- const char *interface,
- uint32_t id,
- uint32_t version);
-
struct window *
window_create(struct display *display, int32_t width, int32_t height);
struct window *
@@ -234,10 +235,6 @@ window_set_title(struct window *window, const char *title);
const char *
window_get_title(struct window *window);
-void
-display_set_global_handler(struct display *display,
- display_global_handler_t handler);
-
struct wl_drag *
window_create_drag(struct window *window);