mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
When term_xcursor_update_for_seat() was called on e.g. keyboard focus loss, it'd update the curret xcursor to 'text' even if it was e.g. on top of the window title, or resize areas. This makes the function a bit more focus aware, and will not be so eager to set the text xcursor.
30 lines
894 B
C
30 lines
894 B
C
#pragma once
|
||
|
||
#include <stdint.h>
|
||
#include <wayland-client.h>
|
||
|
||
#include "wayland.h"
|
||
|
||
/*
|
||
* Custom defines for mouse wheel left/right buttons.
|
||
*
|
||
* Libinput does not define these. On Wayland, all scroll events (both
|
||
* vertical and horizontal) are reported not as buttons, as ‘axis’
|
||
* events.
|
||
*
|
||
* Libinput _does_ define BTN_BACK and BTN_FORWARD, which is
|
||
* what we use for vertical scroll events. But for horizontal scroll
|
||
* events, there aren’t any pre-defined mouse buttons.
|
||
*
|
||
* Mouse buttons are in the range 0x110 - 0x11f, with joystick defines
|
||
* starting at 0x120.
|
||
*/
|
||
#define BTN_WHEEL_LEFT 0x11e
|
||
#define BTN_WHEEL_RIGHT 0x11f
|
||
|
||
extern const struct wl_keyboard_listener keyboard_listener;
|
||
extern const struct wl_pointer_listener pointer_listener;
|
||
|
||
void input_repeat(struct seat *seat, uint32_t key);
|
||
|
||
const char * xcursor_for_csd_border(struct terminal *term, int x, int y);
|