mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
seat focus on button press
This commit is contained in:
parent
0fdecb4d3a
commit
21626e8153
7 changed files with 90 additions and 4 deletions
|
|
@ -19,4 +19,7 @@ char* libinput_dev_unique_id(struct libinput_device *dev);
|
|||
struct sway_input_manager *sway_input_manager_create(
|
||||
struct sway_server *server);
|
||||
|
||||
bool sway_input_manager_swayc_has_focus(struct sway_input_manager *input,
|
||||
swayc_t *container);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -7,9 +7,13 @@
|
|||
struct sway_seat {
|
||||
struct wlr_seat *seat;
|
||||
struct sway_cursor *cursor;
|
||||
struct sway_input_manager *input;
|
||||
swayc_t *focus;
|
||||
|
||||
struct wl_listener focus_destroy;
|
||||
};
|
||||
|
||||
struct sway_seat *sway_seat_create(struct wl_display *display,
|
||||
struct sway_seat *sway_seat_create(struct sway_input_manager *input,
|
||||
const char *seat_name);
|
||||
|
||||
void sway_seat_add_device(struct sway_seat *seat,
|
||||
|
|
@ -20,4 +24,6 @@ void sway_seat_remove_device(struct sway_seat *seat,
|
|||
|
||||
void sway_seat_configure_xcursor(struct sway_seat *seat);
|
||||
|
||||
void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue