GithubHelp home page GithubHelp logo

Comments (10)

baskerville avatar baskerville commented on September 23, 2024

I will implement this soon.

from bspwm.

baskerville avatar baskerville commented on September 23, 2024

Please try the adopt-orphans branch.

from bspwm.

sunaku avatar sunaku commented on September 23, 2024

I just tried that branch and bspwm now correctly adopts the orphaned windows. 😺

However, the order of windows (the BSP tree structure) is scrambled every time bspwm re-adopts them.

Is there a way to preserve the order of windows? Thanks.

from bspwm.

sunaku avatar sunaku commented on September 23, 2024

For instance, the wmii WM solved this problem by annotating windows with a _WMII_TAGS property. Upon re-adopting orphans, it would read those properties and know how to restore the previous window ordering.

from bspwm.

baskerville avatar baskerville commented on September 23, 2024

The window ordering wouldn't be sufficient.

I'm afraid the proper way to do that would be to dump bspwm's current
state (monitors, desktops, nodes) and then read that back on startup.

from bspwm.

sunaku avatar sunaku commented on September 23, 2024

I found a bug in the current adopt-orphans implementation:

  1. Open some windows on the first desktop.
  2. Switch to another desktop.
  3. Open a terminal.
  4. Run bspc quit
  5. Relaunch bspwm.
  6. Switch back to the first desktop.

Now observe that the first desktop is empty (and all those old windows are gone!). It should not be! 🐛

from bspwm.

baskerville avatar baskerville commented on September 23, 2024

6e3af9f should address that.

from bspwm.

sunaku avatar sunaku commented on September 23, 2024

Thanks, windows from all previous desktops are now adopted into the first (default) one.

Next, could we recreate the previous desktops from the _NET_WM_DESKTOP information?

from bspwm.

baskerville avatar baskerville commented on September 23, 2024

The previous desktops will be recreated by the autostart, but what you ask for, I presume, is to put the windows back into their previous respective desktops.

Hopefully, 240c75c will permit that.

But orphan adoption will not occur automatically, you have to add:

bspc adopt_orphans

at the end of your autostart.

from bspwm.

baskerville avatar baskerville commented on September 23, 2024

The layout can now be restored completely through the restore message.
Please have a look at wm, wm_restart and bspwm_autostart to see how.

from bspwm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.