Skip to content

Commit

Permalink
Fix two double-click options conflicting
Browse files Browse the repository at this point in the history
If "Prevent pause/play from triggering on double click" and "Disable
fullscreen toggle on double click" options were both selected, the
latter one didn't apply.
  • Loading branch information
nurupo committed Oct 24, 2023
1 parent 67a00e6 commit f46055c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pause_click.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ static int mouse(filter_t *p_filter, vlc_mouse_t *p_mouse_out, const vlc_mouse_t
}

// prevent fullscreen from toggling on double click
if (var_InheritBool(p_filter, DISABLE_FS_TOGGLE_CFG) && p_mouse_new->b_double_click) {
if (var_InheritBool(p_filter, DISABLE_FS_TOGGLE_CFG) &&
(p_mouse_new->b_double_click || p_mouse_out->b_double_click)) {
p_mouse_out->b_double_click = 0;
}

Expand Down

0 comments on commit f46055c

Please sign in to comment.