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

ctx.top_layer_id() keeps returning the same layer id after closing or not drawing a window #5351

Open
OwlyCode opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something is broken

Comments

@OwlyCode
Copy link

OwlyCode commented Nov 4, 2024

Describe the bug
When a window is closed, ctx.top_layer_id() keeps returning its layer id.

To Reproduce
Steps to reproduce the behavior:

  1. Open a window
  2. Call ctx.top_layer_id()
  3. Close the window (using the .open() method or by not drawing it at all)
  4. Call ctx.top_layer_id() again, it's the same layer id.

Expected behavior
I'd have expected it to return None if no more window are opened or the layer id of the next windows that gets on top.

Desktop (please complete the following information):

  • OS: Windows 11

Additional context
I tested a change that would fix it here: d3aacc5

Ready to PR that if needed!

@OwlyCode OwlyCode added the bug Something is broken label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant