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

Some application windows sometimes don't appear upon launch unless something changes on the screen #476

Open
leviport opened this issue May 10, 2024 · 7 comments
Labels
bug Something isn't working
Milestone

Comments

@leviport
Copy link
Member

leviport commented May 10, 2024

This one has been difficult to pin down, but I think I finally have steps to recreate it semi-reliably. I'm not certain that it's a compositor bug, so feel free to transfer this issue if it fits better somewhere else. I've seen it happen with other applications, so I'm pretty certain it's not just a cosmic-term bug.

Steps to reproduce:

  • Turn off dock in settings, leaving only the panel active
  • Navigate to a fresh workspace with nothing on it
  • Launch cosmic-term with the default Super + T shortcut, but quickly release both Super and T
    Now, cosmic-term often doesn't appear until I either press a key or move my mouse, at which time cosmic-term appears normally.

As mentioned in the first step, having the dock active makes the bug vanish, and cosmic-term always appears as expected. Also, having an OBS screen capture scene set up makes the bug vanish as well. Since attempting to record the bug makes the bug go away, I'll see if I can get a clear video of it happening with my phone and upload it in this thread.

@leviport leviport added the bug Something isn't working label May 10, 2024
@leviport
Copy link
Member Author

@git-f0x
Copy link
Contributor

git-f0x commented May 12, 2024

I've occasionally encountered a similar issue in different situations (e.g. sometimes when toggling tiling, the layout doesn't show properly until the cursor is moved).
I'd guess the reason for why it works with the dock is that the App Tray is on it. When launching the terminal, the App Tray changes, so it would probably also work with just the panel, if the App Tray was on it.

@WatchMkr WatchMkr added this to the alpha 1 milestone May 13, 2024
@ids1024
Copy link
Member

ids1024 commented May 13, 2024

I've noticed something like this this when testing cosmic-comp outside of cosmic-session (so no panel, etc). I use the launcher to open an application like Firefox, but it doesn't appear until I move the cursor.

@Drakulix
Copy link
Member

Probably some event is not triggering a re-draw, when it should. Might be difficult to pin down exactly. Does firefox always reproduce this?

@leviport
Copy link
Member Author

leviport commented May 14, 2024

I see it frequently with Firefox as well, yeah. I'm not certain if it's 100% of the time though, since something as simple as letting off the Super key too slowly is enough to trigger an update, which means I don't notice it.

I noticed the window may also appear when the clock on my panel updates and changes time, so there is at least one case where user input isn't necessary to show the window.

@ids1024
Copy link
Member

ids1024 commented May 14, 2024

Does firefox always reproduce this?

I find it pretty consistently reproducible when starting cosmic-comp on it's own, opening the launcher with a keybinding, and starting firefox. Without moving the cursor.

@git-f0x
Copy link
Contributor

git-f0x commented May 17, 2024

I can reproduce it 100% of the time in all apps (that can be launched with a shortcut) if I remove any changing panel components (e.g. App Tray), and there are no other open apps (since the windows switching focus probably triggers a re-draw). Letting go of the Super key more slowly when launching an app makes it display after releasing Super.

@WatchMkr WatchMkr modified the milestones: alpha 1, alpha 2 May 25, 2024
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
Status: Alpha 2
Development

No branches or pull requests

5 participants