aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-11 06:30:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-11 06:30:47 +0000
commited0cb06b485e83a914cb7a5888369a213dc5577c (patch)
tree0597f7aafd9bb304012dbdd71273b14960396432 /terminal.h
parentmeson/PKGBUILD: bump fcft requirement to 2.2.0 (diff)
parentwayland: destroy cursor theme when removing pointer capability (diff)
Merge branch 'multi-seat'
Closes #32
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h28
1 files changed, 23 insertions, 5 deletions
diff --git a/terminal.h b/terminal.h
index bcbfbf4d..8316795f 100644
--- a/terminal.h
+++ b/terminal.h
@@ -305,7 +305,6 @@ struct terminal {
uint32_t text;
uint32_t cursor;
} cursor_color;
- const char *xcursor;
struct {
enum selection_kind kind;
@@ -439,6 +438,18 @@ struct terminal {
char *cwd;
};
+extern const char *const XCURSOR_LEFT_PTR;
+extern const char *const XCURSOR_TEXT;
+//extern const char *const XCURSOR_HAND2;
+extern const char *const XCURSOR_TOP_LEFT_CORNER;
+extern const char *const XCURSOR_TOP_RIGHT_CORNER;
+extern const char *const XCURSOR_BOTTOM_LEFT_CORNER;
+extern const char *const XCURSOR_BOTTOM_RIGHT_CORNER;
+extern const char *const XCURSOR_LEFT_SIDE;
+extern const char *const XCURSOR_RIGHT_SIDE;
+extern const char *const XCURSOR_TOP_SIDE;
+extern const char *const XCURSOR_BOTTOM_SIDE;
+
struct config;
struct terminal *term_init(
const struct config *conf, struct fdm *fdm, struct reaper *reaper,
@@ -506,12 +517,19 @@ void term_restore_cursor(struct terminal *term, const struct cursor *cursor);
void term_visual_focus_in(struct terminal *term);
void term_visual_focus_out(struct terminal *term);
+bool term_has_kbd_focus(struct terminal *term);
void term_kbd_focus_in(struct terminal *term);
void term_kbd_focus_out(struct terminal *term);
-void term_mouse_down(struct terminal *term, int button, int row, int col);
-void term_mouse_up(struct terminal *term, int button, int row, int col);
-void term_mouse_motion(struct terminal *term, int button, int row, int col);
-bool term_mouse_grabbed(const struct terminal *term);
+void term_mouse_down(
+ struct terminal *term, int button, int row, int col,
+ bool shift, bool alt, bool ctrl);
+void term_mouse_up(
+ struct terminal *term, int button, int row, int col,
+ bool shift, bool alt, bool ctrl);
+void term_mouse_motion(
+ struct terminal *term, int button, int row, int col,
+ bool shift, bool alt, bool ctrl);
+bool term_mouse_grabbed(const struct terminal *term, struct seat *seat);
void term_xcursor_update(struct terminal *term);
void term_set_window_title(struct terminal *term, const char *title);