mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fixed #5730: Decoupled floatbar button focus from click events.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user