aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-29 18:15:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-29 18:15:33 +0000
commit44a353a7f74b562cb057c23760013a12becbecf3 (patch)
tree24f59fa789d7e4afc99567053af95d8742e0f722 /terminal.h
parentsearch: use a sub-surface to render the search buffer (diff)
search: move wayland surface variables into the term struct
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 755c7b4a..948a8f11 100644
--- a/terminal.h
+++ b/terminal.h
@@ -42,15 +42,19 @@ struct wayland {
struct wl_registry *registry;
struct wl_compositor *compositor;
struct wl_subcompositor *sub_compositor;
- struct wl_surface *surface;
struct wl_shm *shm;
+
struct wl_seat *seat;
+ struct wl_keyboard *keyboard;
struct zxdg_output_manager_v1 *xdg_output_manager;
+
+ /* Clipboard */
struct wl_data_device_manager *data_device_manager;
struct wl_data_device *data_device;
struct zwp_primary_selection_device_manager_v1 *primary_selection_device_manager;
struct zwp_primary_selection_device_v1 *primary_selection_device;
- struct wl_keyboard *keyboard;
+
+ /* Cursor */
struct {
struct wl_pointer *pointer;
uint32_t serial;
@@ -61,9 +65,17 @@ struct wayland {
int size;
char *theme_name;
} pointer;
+
+ /* Main window */
+ struct wl_surface *surface;
struct xdg_wm_base *shell;
struct xdg_surface *xdg_surface;
struct xdg_toplevel *xdg_toplevel;
+
+ /* Scrollback search */
+ struct wl_surface *search_surface;
+ struct wl_subsurface *search_sub_surface;
+
bool have_argb8888;
tll(struct monitor) monitors; /* All available outputs */
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */