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

Provide a way for headless outputs to be destroyed #5522

Closed
RedSoxFan opened this issue Jul 6, 2020 · 5 comments · Fixed by #7192
Closed

Provide a way for headless outputs to be destroyed #5522

RedSoxFan opened this issue Jul 6, 2020 · 5 comments · Fixed by #7192
Labels
enhancement New feature or incremental improvement

Comments

@RedSoxFan
Copy link
Member

This is a follow up to #5483, where there was an attempt to remove a headless output using output HEADLESS-1 disable. Since disabling a headless output does not make sense and is not supported by wlroots, there should be a way to destroy these outputs.

We'll likely want something like output HEADLESS-1 destroy. The output command does not currently have any action-only subcommands so we'll likely want to add support for those. Unfortunately, the output command also has the unique property of allowing subcommands to be chained (for backwards compatibility) which may complicates things. We'll likely want to prevent this chaining for action-only subcommands and make them two different branches.

@RedSoxFan RedSoxFan added the enhancement New feature or incremental improvement label Jul 6, 2020
@emersion
Copy link
Member

emersion commented Jul 6, 2020

Potential alternative solutions:

  • Make disabling a no-op in the headless backend?
  • Support disabling a Sway output even if wlroots can't?

Not necessarily exclusive with a way to destroy headless outputs.

@Hubro
Copy link

Hubro commented Apr 11, 2021

Any workarounds available for this? What do I do when I'm no longer using the virtual output? Do I just have to reboot to avoid having a workspace permanently bound to an invisible display?

@emersion
Copy link
Member

Send a patch?

@ldelossa
Copy link

ldelossa commented Jul 16, 2022

Any workarounds available for this? What do I do when I'm no longer using the virtual output? Do I just have to reboot to avoid having a workspace permanently bound to an invisible display?

Just spitballing, but you could assign some impossible position like 9999x0 to the headless and reconfigure sway. Then just move any workspaces that were there to your normal screens?

@Hubro
Copy link

Hubro commented Jul 16, 2022

Any workarounds available for this? What do I do when I'm no longer using the virtual output? Do I just have to reboot to avoid having a workspace permanently bound to an invisible display?

Just spitballing, but you could assign some impossible position like 9999x0 to the headless and reconfigure sway. Then just move any workspaces that were there to your normal screens?

I tried something similar a while back, I think I set it to 1x1 and placed it top right of my main monitor. Unfortunately it caused a slew of bugs, I think some applications would constantly crash, even though I didn't place them on the 1x1 monitor. It's also too easy to accidentally move a window to the invisible monitor, in which case they would usually crash/freeze indefinitely.

I've just stopped using virtual monitors until this feature is implemented, it's more trouble than it's worth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

Successfully merging a pull request may close this issue.

4 participants