Skip to content
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

[BUG]: Firefox sometimes doesn't tile after opening #771

Open
Insprill opened this issue Apr 18, 2024 · 4 comments
Open

[BUG]: Firefox sometimes doesn't tile after opening #771

Insprill opened this issue Apr 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Insprill
Copy link

Describe the bug
Firefox sometimes (more often than not) doesn't tile correctly after being opened. Increasing the delay here to 50ms fixes the issue in my testing. 25ms works most of the time, but it would still fail occasionally.

if exe_name.contains("firefox") {
std::thread::sleep(Duration::from_millis(10));
}

As a side note, has an issue been created on Mozilla's bug tracker to potentially get this issue fixed in Firefox instead of having to work around it here?

To Reproduce
Steps to reproduce the behavior:

  1. Open a new Firefox window.
  2. Observe it is not tiled correctly. If it is tiled correctly, close it and try again, moving windows around so it isn't opening in the same location.

Operating System

OS Name:                   Microsoft Windows 11 Pro for Workstations
OS Version:                10.0.22631 N/A Build 22631

komorebic check Output

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Insprill

Looking for configuration files in C:\Users\Insprill

Found komorebi.json; this file can be passed to the start command with the --config flag

No ~/.config/whkdrc found; you may not be able to control komorebi with your keyboard
@Insprill Insprill added the bug Something isn't working label Apr 18, 2024
@LGUG2Z
Copy link
Owner

LGUG2Z commented Apr 18, 2024

Nothing has been opened on the Firefox tracker AFAIK. There are a few other programs I'm sure that this delay could be useful for, I think it makes sense to look at making the list of executables to match against configurable as well as the timing, which I suspect is probably dependent on the specs of the machine where komorebi is running.

@mmikeww
Copy link
Contributor

mmikeww commented Apr 20, 2024

my suspicion is that my chrome extension bugs would also be fixed if they could also be delayed before being tiled

perhaps this configurability setting should be added to the applications.yaml and keep a list of all known programs in there

@Insprill
Copy link
Author

Do we know what the applications, Firefox at least in this case, are doing that causes them to not be tiled correctly? Investigating that would be better since relying on fixed delays is extremely fragile. I don't know much about the inner workings of Komorebi, but could it detect when an application tries to resize/reposition itself shortly after opening (or always?) and force it back to the correct size/place?

@mmikeww
Copy link
Contributor

mmikeww commented Apr 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants