Merge pull request #5732 from akallabeth/floatbar_button_fix

Fixed #5730: Decoupled floatbar button focus from click events.
This commit is contained in:
Martin Fleisz 2020-02-21 11:36:49 +01:00 committed by GitHub
commit dc89923f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -528,6 +528,7 @@ static void xf_floatbar_button_event_buttonrelease(xfFloatbar* floatbar, XEvent*
{
if (button->clicked)
button->onclick(floatbar);
button->clicked = FALSE;
}
}
@ -658,7 +659,6 @@ static void xf_floatbar_button_event_focusout(xfFloatbar* floatbar, XEvent* even
if (button)
{
button->focus = FALSE;
button->clicked = FALSE;
xf_floatbar_button_event_expose(floatbar, event);
}
}