Skip to content

Conversation

@gzaugg
Copy link
Contributor

@gzaugg gzaugg commented Oct 15, 2024

This pull request addresses an issue where the "Focus Window" action in AltSnap causes the program to crash when a window with a size of 0 is present. Although the configuration dialog remains functional, windows can no longer be dragged. This PR introduces a fix for the problem.

I was unable to find a way to deliberately recreate the window with size 0. However, I encountered the same issue on two different PCs running Windows 11 (one of them a fresh installation). Below are the properties of the problematic window:

---------------------------
Debug Info
---------------------------
Window Rect: (top, left, bottom, right): 720, 1280, 720, 1280
Process name: Unknown
IsWindowVisible: TRUE
IsWindowCloaked: FALSE
EXSTYLE & WS_EX_NOACTIVATE: TRUE
EXSTYLE & WS_EX_TOOLWINDOW: FALSE
STYLE & WS_CAPTION: TRUE
EXSTYLE & WS_EX_APPWINDOW: FALSE
BorderlessFlag: FALSE
MenuShowEmptyLabelWin: FALSE
Window title: 'Setup'
Blacklisted (Bottommost): FALSE

=> IsAltTabAble Result: TRUE

My assumption is that this issue may be related to a system update window in Win11 (and maybe other versions as well), though this has not been confirmed.

@RamonUnch
Copy link
Owner

Thanks, very appreciated patch.

@RamonUnch RamonUnch merged commit 9d89359 into RamonUnch:main Nov 11, 2024
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