mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
input: send tablet proximity-in only above a valid surface
A resize with a tablet tool might end above a non-tablet capable surface, discard the proximity-in in that case.
This commit is contained in:
parent
d65f56e8a5
commit
15135465d9
1 changed files with 3 additions and 2 deletions
|
|
@ -403,10 +403,11 @@ handle_tip(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
bool exit_interactive = cursor_finish_button_release(tool->seat);
|
||||
if (exit_interactive && tool->tool_v2->focused_surface) {
|
||||
if (exit_interactive && surface && tool->tool_v2->focused_surface) {
|
||||
/*
|
||||
* Re-enter the surface after a resize/move to ensure
|
||||
* being back in tablet mode.
|
||||
* being back in tablet mode, but only if we are still
|
||||
* above a tablet capable surface.
|
||||
*/
|
||||
wlr_tablet_v2_tablet_tool_notify_proximity_out(tool->tool_v2);
|
||||
wlr_tablet_v2_tablet_tool_notify_proximity_in(tool->tool_v2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue