-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Resolve some issues with reopening full screen windows #5280
base: develop
Are you sure you want to change the base?
Conversation
Resolve the issue of incorrect position when opening a full screen window after it is hidden. Resolve the issue of flickering when the mouse is placed on the taskbar when the full screen window is hidden and opened again.
If the issue is a result of a reach condition then we should solve the race condition instead of sleeping and re-running a function. If we are certain that it is not, we should document clearly why we do it and which issue it relates to. Do you have an issue number for this problem? |
I think they just copied the code from the initial show function. |
I'm just generally sceptical about creating a new goroutine and then sleeping. How do we know that the arbitrary sleep time is the right one? Why do we even have to spawn a goroutine and then do the operation at a later time? Seems to me like we are either working around a bug or some strange race condition. Excuse my ramblings though. If this is the only way to solve the problem then sure, a common function with an explanatory comment would be much better. |
This sounds like a good conclusion. In 2.6.0 there may be a better solution as the window display sequence may be affected by other threading changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per discussion above, lets move this out to a separate function
It looks like this timeout isn't needed with the changes in #5328? |
Yes, with that merged @xfaris should rebase on latest |
Description:
Resolve the issue of incorrect position when opening a full screen window after it is hidden.
Resolve the issue of flickering when the mouse is placed on the taskbar when the full screen window is hidden and opened again.
Checklist: