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.

Moving a fullscreened window to a different group makes it disappear from all groups

See original GitHub issue

When I use lazy.window.togroup(group_name) to send a window to another group and the window is fullscreened, it does not appear on the target group.

Some logs:

2022-02-10 22:33:15,589 ERROR libqtile manager.py:process_key_event():L391 KB command error togroup: Traceback (most recent call last):
  File "/home/mcol/git/qtile/libqtile/command/interface.py", line 312, in call
    return SUCCESS, cmd(*args, **kwargs)
  File "/home/mcol/git/qtile/libqtile/backend/base.py", line 422, in cmd_togroup
    self.togroup(group_name, switch_group=switch_group)
  File "/home/mcol/git/qtile/libqtile/backend/wayland/window.py", line 370, in togroup
    self.group.remove(self)
  File "/home/mcol/git/qtile/libqtile/group.py", line 295, in remove
    self.tiled_windows.remove(win)
KeyError: Window(name='imv - [1/1] [1920x1080] [100%] /home/mcol/20220210_22h32m45s_grim.png [shrink to fit] ', wid=13)

This suggests that, as the window is removed from the current group but then the action errors out, the fullscreened window just remains in an unmapped state.

I think this is a relatively new bug. Pinging @jwijenbergh - I suspect it’s to do with your recent fullscreen changes.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jwijenberghcommented, Feb 10, 2022

Ooh, it only happens with windows that were never tiled, i.e. have matches in float_rules. Perhaps it’s enough to check they are in that self.tiled_windows list before removing them.

Can confirm. We need to indeed add if win in self.tiled_windows when removing it. I think I removed this check when simplifying the pr because I thought it wasn’t need any more

0reactions
jwijenberghcommented, Feb 10, 2022

Progress already made in #3324. Haven’t got the chance to test a lot so lmk if you see any issues @m-col

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sometimes minimized windows move to other monitor ...
My theory: the bug in Windows is that the window always returns to the monitor where the window started in windowed mode vs...
Read more >
How to retrieve windows that have moved 'off-screen'
One method is before you unplug the external monitor (or before you unplug the dongle) is to open up the Displays Preference Pane...
Read more >
Solved: Moving windows in Unity causes them to disappear
The window does NOT dissapear: it is moved. To get it back, quit unity mode, right-click on the windows taskbar (or the thumbnail...
Read more >
WM window disappeared - Google Groups
Whenever I press ESC (or F11) to get from fullscreen-mode to the WM-window, the fullscreen just disappears, but no window is showing.
Read more >
Use apps in Split View on Mac - Apple Support
Use a different app on one side: Click the app window, move the pointer over ... The app that remained in Split View...
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