Implemented <doubleClickTime> in rc.xml

This commit is contained in:
alex 2021-08-29 18:31:57 -04:00 committed by Johan Malm
parent a4fdb43d42
commit 36f5b49f2a
4 changed files with 47 additions and 6 deletions

View file

@ -343,7 +343,7 @@ cursor_button(struct wl_listener *listener, void *data)
desktop_focus_view(&server->seat, view);
damage_all_outputs(server);
if (is_double_click(500) && view_area == LAB_SSD_PART_TITLEBAR) {
if (is_double_click(rc.doubleclick_time) && view_area == LAB_SSD_PART_TITLEBAR) {
struct mousebind* mousebind;
wl_list_for_each_reverse(mousebind, &rc.mousebinds, link) {
if( (mousebind->context == MOUSE_CONTEXT_TITLEBAR) &&