Files
Files copied to clipboard
Bug: Properties window is opening in the background
Description
When using the current Store version (3.0.1.0), when you open a folder in Files that is empty, then right-clicking a drive and opening the drive properties puts the info window into the background, so the main Files window always stays on top. Even clicking the info window lets it only flash up for a moment, but doesn't bring it to the foreground.
Steps To Reproduce
- Open Files.
- Go to a folder on your system that has no files or sub-folders inside. Removing files doesn't work, it has to be empty when you enter the folder.
- Right-click a drive in the sidebar.
- Click 'Properties' ("Eigenschaften" in German).
- The popup window opens, but immediately moves behind the main Files window.
- Clicking the info window in the background doesn't move it to the foreground.
Requirements
- Let Files open the Properties window in the foreground and don't steal focus off it.
Files Version
3.0.1.0
Windows Version
23H2 (22635.2700)
Log File
Not needed
Thank for the report, seems similar to #11432 except the fix that was used there is already in place for the sidebar.
@yaira2 Sounds like you already have an idea and a plan on how to fix this ;) .
The cause of the issue is known but I can't provide a timeline for when this will be addressed.
@yaira2 do you know what is the cause of the bug, I am trying to see if i can fix it
The issue is the focus automatically switches back to the main window after the flyout closes. The fix should be to delay opening the window until after the menu is closed.
Hi! Can I still try to fix this issue or am I arriving too late? To fix it, should I clone the repository or fork it? Thanks
The issue is open to anyone still. You will need to make a fork to make a PR
Hi, based on your last comment I assume that I can try to fix this issue. Could you please assign it to me and give hints and suggestions which might help me to fix it properly?
@yaira2 I saw your explanation of the fix in one of the comments above, but if it is possible, could you please give more details about it?
@SerhiiHarashchenko We can swiftly fix using my method BringToForegroundEx in Win32Helper class.