From 82d464bb90af7fed57a36aacc2dce22994849bac Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 29 Nov 2015 15:27:28 -0500 Subject: Add text rendering support to wayland clients --- wayland/window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wayland/window.c') diff --git a/wayland/window.c b/wayland/window.c index 13d4c7b2..916e3b57 100644 --- a/wayland/window.c +++ b/wayland/window.c @@ -63,6 +63,7 @@ struct window *window_setup(struct registry *registry, uint32_t width, uint32_t window->width = width; window->height = height; window->registry = registry; + window->font = "monospace 10"; window->surface = wl_compositor_create_surface(registry->compositor); if (shell_surface) { @@ -74,6 +75,8 @@ struct window *window_setup(struct registry *registry, uint32_t width, uint32_t wl_pointer_add_listener(registry->pointer, &pointer_listener, window); } + get_next_buffer(window); + window->cursor.cursor_theme = wl_cursor_theme_load("default", 32, registry->shm); // TODO: let you customize this window->cursor.cursor = wl_cursor_theme_get_cursor(window->cursor.cursor_theme, "left_ptr"); window->cursor.surface = wl_compositor_create_surface(registry->compositor); @@ -118,4 +121,5 @@ int window_render(struct window *window) { } void window_teardown(struct window *window) { + // TODO } -- cgit v1.2.3