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
commit bac0dd5e3d
Notes: sideshowbarker 2024-07-18 21:36:43 +09:00
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) {