focused_window_* variables stuck

I have keyboard shortcut that checks focused_window_width and expands or collapses it depending on its value. After updating macos from 26.1 to 26.4, it stopped working. Debug shows that the variable is stuck. How it looks. I added a HUD at the start of the action with vars focused_window_width and focused_window_x. I switch to the target window; it is at its normal size. I press the shortcut, and the window expands (the HUD shows width and x as “962 735”). I press the shortcut again, but the window does not resize (I expect it to return to its normal size). The HUD still shows “962 735”. If I switch focus to other windows several times and then return, the other branch of the shortcut action may execute. In that case, the window size is restored, and the HUD shows “1728 0”.

In condition builder builder (“Configure Conditions…“) I see the same behavior: the window is expanded to entire screen, but variables shows that it has normal size and it’s placed in the center of the screen.

exported_triggers.bttpreset (6.4 KB)


Device information:

  • Macbook 16 Pro M3M
  • macOS version: 26.4
  • BetterTouchTool version: 6.311 (stable) / 6.315 (alpha)

thanks for reporting, should be resolved in 6.316 alpha!

I’ve installed 6.341 alpha and the bug is still here.

it is working fine here, could you post an export of a trigger that doesn’t work for you? (exported from the latest version if possible)

Possibly a permission issue? You could try to quit BTT , then remove it from System Settings -> Security & Privacy -> Accessibility (disabling is not enough to reset the permissions)

I’ve checked permissions, they are fine (just in case I disabled and enabled a11y to be sure). The shortcut triggers actions, but window variables are stuck. I use this shortcut for iterm2 if it matters.

exported_triggers.bttpreset (6.4 KB)

just note this, disabling does nothing if they are in a weird state, only deleting

Yep, I meant removing app from the list.