diff options
author | rahulaggarwal965 <rahulaggarwal965@gmail.com> | 2021-04-13 05:45:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 11:45:20 +0200 |
commit | e304dbc88328bdfa0131ccd017fb17bc6ac1080e (patch) | |
tree | c712b8697a7ed699c3e16f97baa08eabd7045272 /include | |
parent | 318a6d40cab6b5892b720f653e2f9c9dae56525d (diff) |
Added -hover-select option that automatically selects the entry under the cursor (#1234)
Diffstat (limited to 'include')
-rw-r--r-- | include/settings.h | 2 | ||||
-rw-r--r-- | include/view.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/settings.h b/include/settings.h index 1c05b7f0..b01c2e6f 100644 --- a/include/settings.h +++ b/include/settings.h @@ -139,6 +139,8 @@ typedef struct int element_height; /** Sidebar mode, show the modi */ unsigned int sidebar_mode; + /** Mouse hover automatically selects */ + unsigned int hover_select; /** Lazy filter limit. */ unsigned int lazy_filter_limit; /** Auto select. */ diff --git a/include/view.h b/include/view.h index fadb8a68..03455301 100644 --- a/include/view.h +++ b/include/view.h @@ -100,10 +100,11 @@ void rofi_view_handle_text ( RofiViewState *state, char *text ); * @param state the Menu handle * @param x The X coordinates of the motion * @param y The Y coordinates of the motion + * @param find_mouse_target if we should handle pure mouse motion * * Update the state if needed. */ -void rofi_view_handle_mouse_motion ( RofiViewState *state, gint x, gint y ); +void rofi_view_handle_mouse_motion ( RofiViewState *state, gint x, gint y, gboolean find_mouse_target ); /** * @param state the Menu handle * |