Skip to content

Comments

Fix window positioning for tiling window managers#1

Merged
NSPC911 merged 1 commit intoNSPC911:mainfrom
stylebending:fix-tiling-wm-position
Feb 19, 2026
Merged

Fix window positioning for tiling window managers#1
NSPC911 merged 1 commit intoNSPC911:mainfrom
stylebending:fix-tiling-wm-position

Conversation

@stylebending
Copy link
Contributor

Problem

When using tiling window managers like GlazeWM, the bongo cat window was invincible or appeared briefly then disappeared. This happens because FindWindow("Shell_TrayWnd") returns zeros instead of the actual taskbar position.

Solution

  • Added fallback logic that detects when taskbar position is invalid (0,0,0,0)
  • Uses SystemParametersInfo(SPI_GETWORKAREA) to get screen work area instead
  • Applied fix in three places: startup, config reload, and monitor loop
  • Also fixed window visibility on startup and cached fullscreen check to prevent race conditions

Testing

  • Tested on Windows 11 with GlazeWM
  • Cat now appears and stays visible in bottom-right corner

@NSPC911
Copy link
Owner

NSPC911 commented Feb 19, 2026

seems like i cant escape ctypes

Copy link
Owner

@NSPC911 NSPC911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah looks fine, no issues imo

@NSPC911 NSPC911 merged commit b6d6e76 into NSPC911:main Feb 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants