Skip to content

Commit

Permalink
Clean up bit mask checking
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Maddock <[email protected]>
  • Loading branch information
JoshStrobl and EbonJaeger authored Oct 28, 2023
1 parent b08f5fe commit 8afe1fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon/tabswitcher.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8afe1fe

Please sign in to comment.