Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some UWP windows are not tiled #5

Open
tabell opened this issue Feb 28, 2021 · 3 comments
Open

Some UWP windows are not tiled #5

tabell opened this issue Feb 28, 2021 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@tabell
Copy link

tabell commented Feb 28, 2021

As per a comment on the HN discussion I think this may have to do with UWP window naming

Steps to reproduce:

  1. Start WinWM.exe with several existing windows such as Explorer and Firefox, note that they become tiled
  2. Click the start menu, search for Calculator and run it

Expected:

Calculator window becomes tiled

Actual:

Calculator window floats above tiled windows

@McYoloSwagHam
Copy link
Owner

I have come back to this problem and I remember why I could not fix it.
in this little gist I have a program that prints all window creations and destructions.
here
and when you open calculator you will see that it receives 2 messages, calculator created and calculator destroyed.

I'm going to leave this issue open if anyone knows how to deal with UWP notifications/events, since they seem to have some irregular properties.

@tsymalla
Copy link

I have come back to this problem and I remember why I could not fix it.
in this little gist I have a program that prints all window creations and destructions.
here
and when you open calculator you will see that it receives 2 messages, calculator created and calculator destroyed.

I'm going to leave this issue open if anyone knows how to deal with UWP notifications/events, since they seem to have some irregular properties.

Tried https://stackoverflow.com/questions/53873390/getting-win32-messages-from-windows-ui-core-corewindow-of-uwp-app-windows ?

@McYoloSwagHam
Copy link
Owner

hmm ok so it seems that I have to find all the UWP processes and the threads responsible for them, then once I've done that I can setWindowsHookEx on that specific threadId and it'll work.

So I guess the way to deal with this, is to use WMI to detect processes that are created, check if those processes are UWP, and then install the hook specifically for those processes.

@McYoloSwagHam McYoloSwagHam added bug Something isn't working help wanted Extra attention is needed labels Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants