1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibGUI: Use AK_ENUM_BITWISE_OPERATORS for the FocusPolicy enum

This commit is contained in:
Brian Gianforcaro 2021-03-07 03:24:20 -08:00 committed by Andreas Kling
parent 5f6ab77352
commit bac0dd5e3d
3 changed files with 6 additions and 3 deletions

View file

@ -389,7 +389,7 @@ void Widget::handle_mouseup_event(MouseEvent& event)
void Widget::handle_mousedown_event(MouseEvent& event)
{
if (((unsigned)focus_policy() & (unsigned)FocusPolicy::ClickFocus))
if (has_flag(focus_policy(), FocusPolicy::ClickFocus))
set_focus(true, FocusSource::Mouse);
mousedown_event(event);
if (event.button() == MouseButton::Right) {