giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.36k stars 458 forks source link

CherryTree window disappears when monitor added/removed during hibernation #2540

Open rmwiseman opened 2 months ago

rmwiseman commented 2 months ago

Version, Operating system CherryTree 1.1.4

Windows: Edition Windows 11 Enterprise Version 22H2 OS build 22621.3737 Experience Windows Feature Experience Pack 1000.22700.1009.0

Describe the bug If I've got CherryTree running and I either plug in or remove an external monitor, CherryTree keeps running, but its window is no longer visible. If I hover the mouse over the icon in the task bar, it looks like it's running, even showing a preview of the window, but the window itself has vanished. I can close the window and reopen it but it's still invisible. If I hover the mouse over the thumbnail of the window, it hides all other windows (ostensibly to show only the CherryTree one) but the window is still not visible.

(I've updated this issue because I now believe it's to do with adding/removing a monitor during hibernation.)

The only workaround I've found is to exit CherryTree completely and start it again.

To Reproduce If applicable, attach a non-personal document where the issue can be reproduced systematically. Steps to reproduce the behavior:

  1. Start CherryTree.
  2. Hibernate Windows.
  3. Plug in or remove a monitor.
  4. Wake Windows.
  5. CherryTree continues running but the window has gone.

Screenshots I can create screen shots on request, but it's a company laptop so I have to be cautious about what I post.

giuspen commented 1 month ago

I have the same situation at my work, I'll see if I can reproduce it

dlemire60 commented 1 month ago

I have what I believe to be a related matter: when my laptop is reconnected to an external monitor, with Cherrytree on the external monitor, clicking on Cherrytree menu causes the menu to display on the laptop screen rather than within the Cherrytree window.

maro1971 commented 1 month ago

Probably connected issue - 2 external monitors + laptop, only external monitors in use at office. After hibernating laptop and starting it at home without external monitors I can see CherryTree application window but search dialog (e.g. CTRL+T) is obviously opened outside of only available (laptop) display, so I cannot see it. Only solution I found was restarting CherryTree application.