From 8afe1fe4f25824c1e80afe37a30024028cd03a5a Mon Sep 17 00:00:00 2001 From: Joshua Strobl Date: Sat, 28 Oct 2023 21:27:18 +0300 Subject: [PATCH] Clean up bit mask checking Co-authored-by: Evan Maddock <5157277+EbonJaeger@users.noreply.github.com> --- src/daemon/tabswitcher.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/tabswitcher.vala b/src/daemon/tabswitcher.vala index 1eca46f45..ff9698e94 100644 --- a/src/daemon/tabswitcher.vala +++ b/src/daemon/tabswitcher.vala @@ -82,8 +82,8 @@ namespace Budgie { window.state_changed.connect((changed_mask, new_state) => { if ( - ((changed_mask & libxfce4windowing.WindowState.ACTIVE) != 0) && - ((new_state & libxfce4windowing.WindowState.ACTIVE) != 0) + (libxfce4windowing.WindowState.ACTIVE in changed_mask) && + (libxfce4windowing.WindowState.ACTIVE in new_state) ) { activation_timestamp = get_time(); window_activated(window);