mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
cursor.c: fix switch statement indentation
This commit is contained in:
parent
c5658fde8e
commit
2cb055b94a
1 changed files with 19 additions and 19 deletions
38
src/cursor.c
38
src/cursor.c
|
|
@ -437,16 +437,16 @@ handle_release_mousebinding(struct view *view, struct server *server, uint32_t b
|
|||
&& mousebind->button == button
|
||||
&& modifiers == mousebind->modifiers) {
|
||||
switch (mousebind->mouse_event) {
|
||||
case MOUSE_ACTION_RELEASE:
|
||||
case MOUSE_ACTION_RELEASE:
|
||||
break;
|
||||
case MOUSE_ACTION_CLICK:
|
||||
if (mousebind->pressed_in_context) {
|
||||
mousebind->pressed_in_context = false;
|
||||
break;
|
||||
case MOUSE_ACTION_CLICK:
|
||||
if (mousebind->pressed_in_context) {
|
||||
mousebind->pressed_in_context = false;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
activated_any = true;
|
||||
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
|
||||
|
|
@ -493,17 +493,17 @@ handle_press_mousebinding(struct view *view, struct server *server, uint32_t but
|
|||
&& mousebind->button == button
|
||||
&& modifiers == mousebind->modifiers) {
|
||||
switch (mousebind->mouse_event) {
|
||||
case MOUSE_ACTION_CLICK:
|
||||
mousebind->pressed_in_context = true;
|
||||
continue;
|
||||
case MOUSE_ACTION_DOUBLECLICK:
|
||||
if (!double_click)
|
||||
continue;
|
||||
break;
|
||||
case MOUSE_ACTION_PRESS:
|
||||
break;
|
||||
default:
|
||||
case MOUSE_ACTION_CLICK:
|
||||
mousebind->pressed_in_context = true;
|
||||
continue;
|
||||
case MOUSE_ACTION_DOUBLECLICK:
|
||||
if (!double_click)
|
||||
continue;
|
||||
break;
|
||||
case MOUSE_ACTION_PRESS:
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
activated_any = true;
|
||||
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue