mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
Fix typos/order in tablet-v2
This commit is contained in:
parent
f64962ace8
commit
3ad7b146eb
2 changed files with 4 additions and 4 deletions
|
@ -476,9 +476,9 @@ void wlr_send_tablet_v2_tablet_pad_button(
|
|||
|
||||
void wlr_send_tablet_v2_tablet_pad_strip(struct wlr_tablet_v2_tablet_pad *pad,
|
||||
uint32_t strip, double position, bool finger, uint32_t time) {
|
||||
if (!pad->current_client &&
|
||||
pad->current_client->strips &&
|
||||
pad->current_client->strips[strip]) {
|
||||
if (!pad->current_client ||
|
||||
!pad->current_client->strips ||
|
||||
!pad->current_client->strips[strip]) {
|
||||
return;
|
||||
}
|
||||
struct wl_resource *resource = pad->current_client->strips[strip];
|
||||
|
|
|
@ -389,11 +389,11 @@ void wlr_send_tablet_v2_tablet_tool_proximity_out(
|
|||
if (tool->is_down) {
|
||||
zwp_tablet_tool_v2_send_up(tool->current_client->resource);
|
||||
}
|
||||
zwp_tablet_tool_v2_send_proximity_out(tool->current_client->resource);
|
||||
if (tool->current_client->frame_source) {
|
||||
wl_event_source_remove(tool->current_client->frame_source);
|
||||
send_tool_frame(tool->current_client);
|
||||
}
|
||||
zwp_tablet_tool_v2_send_proximity_out(tool->current_client->resource);
|
||||
|
||||
tool->current_client = NULL;
|
||||
tool->focused_surface = NULL;
|
||||
|
|
Loading…
Reference in a new issue