Skip to content

Commit

Permalink
More consistent handling of button event in titlebar title.
Browse files Browse the repository at this point in the history
  • Loading branch information
phkaeser committed Dec 1, 2024
1 parent 06fb37d commit 9fd076f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolkit/titlebar_title.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ bool _wlmtk_titlebar_title_element_pointer_button(
wlmtk_titlebar_title_t *titlebar_title_ptr = BS_CONTAINER_OF(
element_ptr, wlmtk_titlebar_title_t, super_buffer.super_element);

if (button_event_ptr->button != BTN_LEFT) return true;
if (button_event_ptr->button != BTN_LEFT) return false;

switch (button_event_ptr->type) {
case WLMTK_BUTTON_DOWN:
Expand Down

0 comments on commit 9fd076f

Please sign in to comment.