mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
input: move cursor event listeners from tablet to seat
Otherwise we would subscribe multiple times to the same event when having multiple tablets.
This commit is contained in:
parent
538eb3ee83
commit
dd0cee02a4
9 changed files with 40 additions and 22 deletions
|
|
@ -13,12 +13,13 @@
|
|||
#include "common/scene-helpers.h"
|
||||
#include "common/surface-helpers.h"
|
||||
#include "config/mousebind.h"
|
||||
#include "config/tablet-tool.h"
|
||||
#include "dnd.h"
|
||||
#include "idle.h"
|
||||
#include "input/gestures.h"
|
||||
#include "input/touch.h"
|
||||
#include "input/tablet.h"
|
||||
#include "input/tablet-tool.h"
|
||||
#include "input/tablet-pad.h"
|
||||
#include "labwc.h"
|
||||
#include "layers.h"
|
||||
#include "menu/menu.h"
|
||||
|
|
@ -1450,6 +1451,8 @@ cursor_init(struct seat *seat)
|
|||
gestures_init(seat);
|
||||
touch_init(seat);
|
||||
|
||||
tablet_init(seat);
|
||||
|
||||
seat->request_cursor.notify = request_cursor_notify;
|
||||
wl_signal_add(&seat->seat->events.request_set_cursor,
|
||||
&seat->request_cursor);
|
||||
|
|
@ -1488,6 +1491,8 @@ void cursor_finish(struct seat *seat)
|
|||
gestures_finish(seat);
|
||||
touch_finish(seat);
|
||||
|
||||
tablet_finish(seat);
|
||||
|
||||
wl_list_remove(&seat->request_cursor.link);
|
||||
wl_list_remove(&seat->request_set_shape.link);
|
||||
wl_list_remove(&seat->request_set_selection.link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue