Skip to content

Don't hide Switcheroo overlay on closing a window unless the window can't be closed and requires user attention #23

Description

@HellBrick

This may be a difficult one. I think it would be incredibly useful to be able to close multiple windows without reopening Switcheroo overlay every time. I think that in most cases it doesn't make sense to switch to the window you are about to close, since you want to get rid of it anyway. The only case when you actually want to switch to it is when the window prevents closing itself: a typical case is when the window displays some kind of "do you want to save the files" dialog. I tried disabling hiding and switching in the CloseWindow() method to see what's gonna happen: if the window can't be closed and displays a modal dialog, its taskbar icon starts glowing, alerting the user that the window requires some attention. I think it may be possible to detect this and act accordingly by switching to this window (and stay in the overlay if the window is closed). Alternatively, if the previous solution is impossible, it may be enough to launch a timer and check the state of the window after a small delay: if it no longer exists, stay in the otherlay; otherwise switch to it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions