aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-29 18:32:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-29 18:32:59 +0000
commit87d6739c030ef620662b6929b7fd1749f22fcb25 (patch)
tree576beb30208c2f301dd704cca80d543c11f19190 /wayland.h
parentMerge branch 'drop-wno-missing-braces-from-freebsd' (diff)
parentSend text_input_rectangle requests for text-input (diff)
Merge branch 'text-input-rectangle'
Closes #309
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index b849249e..bcd8dcab 100644
--- a/wayland.h
+++ b/wayland.h
@@ -139,6 +139,13 @@ struct button_tracker {
bool send_to_client; /* Only valid when surface is the main grid surface */
};
+struct rect {
+ int x;
+ int y;
+ int width;
+ int height;
+};
+
struct seat {
struct wayland *wayl;
struct wl_seat *wl_seat;
@@ -237,6 +244,11 @@ struct seat {
struct zwp_text_input_v3 *wl_text_input;
struct {
struct {
+ struct rect pending;
+ struct rect sent;
+ } cursor_rect;
+
+ struct {
struct {
char *text;
int32_t cursor_begin;