gallium icon indicating copy to clipboard operation
gallium copied to clipboard

Add hot reloading

Open chc4 opened this issue 10 years ago • 4 comments

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.

chc4 avatar Jan 02 '16 08:01 chc4

very good chc4

alureon avatar Mar 15 '16 11:03 alureon

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

chc4 avatar Mar 15 '16 23:03 chc4

I don't know how to write a WM.

alureon avatar Mar 22 '16 15:03 alureon

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.

chc4 avatar Mar 23 '16 18:03 chc4