This is useful to get access to input devices from the display when only a
widget or window is available.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
return wnd->disp->eloop;
}
+struct wlt_display *wlt_window_get_display(struct wlt_window *wnd)
+{
+ if (!wnd)
+ return NULL;
+
+ return wnd->disp;
+}
+
void wlt_widget_destroy(struct wlt_widget *widget)
{
if (!widget)
void wlt_window_toggle_maximize(struct wlt_window *wnd);
void wlt_window_toggle_fullscreen(struct wlt_window *wnd);
struct ev_eloop *wlt_window_get_eloop(struct wlt_window *wnd);
+struct wlt_display *wlt_window_get_display(struct wlt_window *wnd);
void wlt_widget_destroy(struct wlt_widget *widget);
struct wlt_window *wlt_widget_get_window(struct wlt_widget *widget);