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

Add hot reloading #9

Open
chc4 opened this issue Jan 2, 2016 · 4 comments
Open

Add hot reloading #9

chc4 opened this issue Jan 2, 2016 · 4 comments

Comments

@chc4
Copy link
Owner

chc4 commented Jan 2, 2016

Currently, you can only reload the config. This is actually pretty sweet. Unfortunately, that's pretty much useless during dev since you still have to cold reload for code changes.

Make the entire WindowManager struct derive Encodable/Decodable, serialize it to a swapfile, execvp the new binary, load in the old WindowManager.

Alternatively, we could just scan the XOrg window heirarchy on boot to see what to add. It's a lot less work, but would put all windows in the same workspace and forget about lots of other important info.

@alureon
Copy link

alureon commented Mar 15, 2016

very good chc4

@chc4
Copy link
Owner Author

chc4 commented Mar 15, 2016

You're welcome to learn Rust and help me with this~

@alureon
Copy link

alureon commented Mar 22, 2016

I don't know how to write a WM.

@chc4
Copy link
Owner Author

chc4 commented Mar 23, 2016

It's pretty easy. Reading over other WMs helps a little bit, but that's mostly just needed for the X.Org setup since it's a bit esoteric. Like, this issue wouldn't even be touching X11 unless it goes the scan window hierarchy route, which I would rather not do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants