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

Sway doesn't update window visibility when a container changes #8205

Closed
WhyNotHugo opened this issue Jun 11, 2024 · 5 comments · Fixed by #8240
Closed

Sway doesn't update window visibility when a container changes #8205

WhyNotHugo opened this issue Jun 11, 2024 · 5 comments · Fixed by #8240
Labels
bug Not working as intended

Comments

@WhyNotHugo
Copy link
Contributor

WhyNotHugo commented Jun 11, 2024

Sway Version

sway version 1.10-dev-40ca4150b (Jun 10 2024, branch 'master')

I've seen this bug for several weeks now, I think it was introduced with the scene graph changes.

Debug Log

https://paste.sr.ht/~whynothugo/a7173261a6e1d238ddb739a040b70080921fe84b

Configuration File

exec foot
exec foot
# You'll need these mapping to easily reproduce the issue.
bindsym Mod4+a focus parent
bindsym Mod4+shift+s move container to scratchpad

Stack Trace

No crash

Description

  • Start on an empty workspace
  • Open a terminal
  • Open another terminal
  • focus parent
  • move container to scratchpad
  • BUG: Both windows are still there
  • Switch to another workspace and back
  • Windows are gone (they're now in the scratchpad).

Note that you can still interact with the windows in shrödinger's scratchpad until you switch to another workspace (when they disappear).

@WhyNotHugo WhyNotHugo added the bug Not working as intended label Jun 11, 2024
@WhyNotHugo WhyNotHugo changed the title Sway doesn't update the on-screen image when a container changes Sway doesn't update window visibility when a container changes Jun 11, 2024
@WhyNotHugo
Copy link
Contributor Author

There is another sequence of step with similar results, and I suspect they are the same issue:

  • Open FOUR terminals.
  • Switch to a tabbed layout.
  • Focus the second terminal
  • Split vertically
  • Focus the fourth terminal
  • move left twice
  • The tab-bar shows the second tab as active, but the third tab is visible (although we never unfocused the terminal that is not part of the split inside the second tab).
  • move left again (nothing happens on screen, although the window moves to the left inside the split)
  • move left again. The focused terminal (originally on the far right) has now escaped the split without it ever having been rendered inside the split.

@WhyNotHugo
Copy link
Contributor Author

I bisected the issue, but had to skip a lot of commits that either don't build, or render a black screen.

The first bad commit could be any of:

188811f
5b8b505
6d7b132
946fc80
08c484f
869baff
b38ed8b
bac3ab5
6e5fc4c
9a57966
0639bde
ed2724b
06ad734
c640c30
1e018e7
9c17cba
0e1a02b
5f0801b
2e53de8

I seems that the bug was introduced with the scene graph changes. I'm not sure that this information is of any use.

@Nefsen402
Copy link
Member

I didn't know this issue existed. I'll look at it now.

@Nefsen402
Copy link
Member

There is another sequence of step with similar results, and I suspect they are the same issue:

I cannot reproduce this issue. Mind sending a recording of the steps being reproduced?

@WhyNotHugo
Copy link
Contributor Author

Sorry, I couldn't make a clear video showing the issue (you can't really understand what's going on in a video). I've made a reproduction script which should help you visualise the issue: #8292

iguanajuice pushed a commit to iguanajuice/sway that referenced this issue Aug 30, 2024
emersion pushed a commit that referenced this issue Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

Successfully merging a pull request may close this issue.

2 participants