question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fullscreen window not accessible when it loses focus.

See original GitHub issue

The issue:

I wanted to do X, but Y happened, and I expected Z. I think this is a bug.

Can’t refocus on a fullscreen window that lost focus. The fullscreen window doesn’t accept keyboard input so I can’t unfullscreen it.

qtile --version: 0.21.0 Logs attached at bottom. None of the open bugs seem to match my issue.

After some more testing it seems that buggy state(Y) happens whenever fullscreen window loses focus through:

  • lazy.layout.next(). Buggy state does not happen when there is no window to switch to.
  • Moving the mouse onto another window with focus on hover
  • Switching to a different group WITH A WINDOW
  • Switching to a blank group does NOT cause buggy state

When hidden, fullscreen windows cannot:

  • Accept keyboard input, even when the Prompt widget shows the fullscreen window’s name
  • Be switched to by Qtile via lazy.layout.next()
    • Switching away is possible, but layout.next() will skip the fullscreen window
    • rofi -show window can force Qtile to focus on fullscreen windows.
  • Can sometimes get control of the window again with lazy.restart() (See Behavior when qtile is restarted).
  • Application responds to lazy.window.kill()
  • Application can be moved to another group.

Affected Applications:

  • Osu-lazer (the bug report is based on behavior with this in fullscreen)
  • Minecraft
  • Interestingly, Firefox (f11) is NOT affected. Firefox with fullscreen YouTube isn’t either.

Behavior when qtile is restarted

On group with fullscreen window

Layout is :MonadTall Focus on Hover is On

  • If Osu(fullscreen) is the only window
    • Osu and Qtile seems to have a fight, but Osu remains in fullscreen. Control is regained
  • If Osu(fullscreen) is 1/2 windows
    • Osu will be forced into a window if focused.
      • Osu still thinks it’s in fullscreen.
      • Osu can accept keyboard input.
      • Focusing on another window will immediately hide Osu behind everything.
      • If the layout is bad you may end up with a 1/3 case
    • If not focused, it will be hidden immediately.
  • If Osu(fullscreen) is 1/3 windows
    • I cannot get Osu to be focused. Osu is hidden(bugged) immediately after restart.

On a different group not containing fullscreen window

  • Switching to the fullscreen group the first time after restart yields proper behavior
  • Any future switches yields buggy behavior.

Debug Logs

Scenario 1
  1. Delete qtile config from another group
  2. lazy.restart() (mod-control-r)
  3. $ qtile shell -> > debug()
  4. Switch to group 6 (Osu-Lazer)
  5. Expected behavior happens. Fullscreen is visible
  6. Switch to Group 2
  7. Switch to Group 6
  8. Buggy behavior happens. Fullscreen is invisible
  9. lazy.restart()

qtile (copy 2).log

Required:

  • I have searched past issues to see if this bug has already been reported.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elParaguayocommented, Jun 17, 2022

did I write an essay?

No. You wrote a very thorough bug report which is great.

I have just had no time to look at this yet and may not have some time for a while longer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fullscreen GLFW window disappears when focus is lost
GLFW_AUTO_ICONIFY specifies whether the full screen window will automatically iconify and restore the previous video mode on input focus loss.
Read more >
Prevent full screen applications from minimizing when they ...
Is it possible to prevent a full=screen application from minimizing when it loses focus? I'm running Windows 7. windows-7 · Share.
Read more >
Fullscreen minimizes if it loses focus : r/AnyDesk - Reddit
When I have AnyDesk in fullscreen mode, it minimizes itself if I click on another window. I have multiple monitors and it would...
Read more >
Active Window losing focus/priority to invisible system services
Active Window losing focus/priority to invisible system services in Windows 10? I've had Windows 10 for a few weeks now, however for the...
Read more >
Do not iconify full screen windows that lose focus #143 - GitHub
Fullscreen windows are minimized when loosing focus. This makes it impossible to run multiple fullscreen windows on a multi monitor setup.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found