aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2019-03-31 18:58:03 +0200
committeremersion <contact@emersion.fr>2019-03-31 20:16:03 +0300
commit09b2833dcddaae70e48902562c7e393db06ea521 (patch)
tree32b818b26609cbec7c270b0a758ee0c4297ef141
parent08454adadaa5db9f136531eddbe290a933a335bf (diff)
send proximity_out in proximity in for tablet_v2
When the proximity_in event is sent for tablet_v2 and there's already a surface that currently has tablet (tool) focus, it should be told that this is no longer the case, so we need to send the proximity_out event.
-rw-r--r--types/tablet_v2/wlr_tablet_v2_tool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/tablet_v2/wlr_tablet_v2_tool.c b/types/tablet_v2/wlr_tablet_v2_tool.c
index 5bb57028..fc151e52 100644
--- a/types/tablet_v2/wlr_tablet_v2_tool.c
+++ b/types/tablet_v2/wlr_tablet_v2_tool.c
@@ -314,6 +314,8 @@ void wlr_send_tablet_v2_tablet_tool_proximity_in(
return;
}
+ wlr_send_tablet_v2_tablet_tool_proximity_out(tool);
+
struct wlr_tablet_client_v2 *tablet_tmp;
struct wlr_tablet_client_v2 *tablet_client = NULL;
wl_list_for_each(tablet_tmp, &tablet->clients, tablet_link) {