diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 12:56:24 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 12:56:24 +0000 |
| commit | f2a745cfdb4365fad98551a990a99ec295f53b06 (patch) | |
| tree | aa3d8a264c8f23d5f4a58ea495d85ebde31b5240 /wayland.h | |
| parent | render: render_resize(): don't do anything if width or height is 0 (diff) | |
| parent | render: remove 'refresh' from render_resize() (diff) | |
Merge branch 'cleanup-wayland-window-callbacks'
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -84,7 +84,7 @@ struct wl_primary { struct wayland; struct wl_window { - struct wayland *wayl; + struct terminal *term; struct wl_surface *surface; struct xdg_surface *xdg_surface; struct xdg_toplevel *xdg_toplevel; @@ -98,6 +98,12 @@ struct wl_window { struct wl_callback *frame_callback; tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */ + + struct { + bool is_activated; + int width; + int height; + } configure; }; struct config; @@ -173,13 +179,9 @@ void wayl_destroy(struct wayland *wayl); struct terminal *wayl_terminal_from_surface( struct wayland *wayl, struct wl_surface *surface); -struct terminal *wayl_terminal_from_xdg_surface( - struct wayland *wayl, struct xdg_surface *surface); -struct terminal *wayl_terminal_from_xdg_toplevel( - struct wayland *wayl, struct xdg_toplevel *toplevel); /* TODO: pass something other than 'term'? Need scale... */ bool wayl_cursor_set(struct wayland *wayl, const struct terminal *term); -struct wl_window *wayl_win_init(struct wayland *wayl); +struct wl_window *wayl_win_init(struct terminal *term); void wayl_win_destroy(struct wl_window *win); |
