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

[Windows] visible rects provided by ui.screens() aren't updated when reserved space changes #156

Closed
knausj85 opened this issue Nov 13, 2020 · 5 comments
Labels
Milestone

Comments

@knausj85
Copy link

The easiest repro:

  1. Start menu on bottom of main monitor
  2. Start Talon
  3. repl => print(str(ui.screens()[0].visible_rect))
  4. Move the start menu to the left, right, or top of the screen
  5. repl => print(str(ui.screens()[0].visible_rect)). Note the visible_rect is the same as in step 3.

Pretty minor thing I noticed when Optikey is started after Talon, causes issues with window snapping etc.

@lunixbochs
Copy link

Hrm. Not completely sure what to do about this.

@lunixbochs lunixbochs added the bug label Dec 13, 2020
@lunixbochs
Copy link

Does windows post some kind of notification when the reserved space changes?

@lunixbochs lunixbochs added this to the v1.0.0 milestone Jan 27, 2021
@knausj85
Copy link
Author

knausj85 commented Feb 9, 2021

I think the only events that are fired are for registered app bars, which might be workable
https://docs.microsoft.com/en-us/windows/win32/shell/abn-poschanged

@lunixbochs
Copy link

I don't have an app bar, I think I can watch for window rect changes of the Shell_TrayWnd class?

@lunixbochs lunixbochs mentioned this issue Sep 17, 2021
11 tasks
@lunixbochs
Copy link

this is done in beta 0.2.0-85, please test and report any issues to the beta channel or on #382

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants