Repository navigation
Resolve some issues with reopening full screen windows - #5280
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. |
Jacalz
left a comment
There was a problem hiding this comment.
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 |
|
@xfaris are you able to rebase this and complete the PR? it should be cleaner now that window handling on develop has been tidied up. |
|
I took the liberty of rebasing this onto latest develop. It would be good with a reproduction example for the issue so we can verify that this fixes the issue. As I have added a commit, I am no longer able to approve and merge this myself. |
|
This is now merged. Sorry for the long wait. |
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: