-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
river-options: remove protocol #274
Conversation
I'm considering removing the |
3988aaa
to
42fcbba
Compare
My current plan for rivertile is to only expose |
Just did this. Additionally, I've realized that we need a convenient way to apply deltas to layout values for interactive usage. To this end, I've added
|
- Replace the layout option with new default-layout and output-layout commands. - Remove the ability to get/set the output title entirely.
This protocol involves far too much accidental complexity. The original motivating use-case was to provide a convenient way to send arbitrary data to layout clients at runtime in order to avoid layout clients needing to implement their own IPC and do this over a side-channel. Instead of implementing a quite complex but still rigid options protocol and storing this state in the compositor, instead we will simply add events to the layout protocol to support this use case. Consider the status quo event sequence: 1. send get_option_handle request (riverctl) 2. roundtrip waiting for first event (riverctl) 3. send set_foo_value request (riverctl) 4. receive set_foo_value request (river) 5. send foo_value event to all current handles (river) 6. receive foo_value event (rivertile) 7. send parameters_changed request (rivertile) 8. receive parameters_changed request (river) 9. send layout_demand (river) And compare with the event sequence after the proposed change: 1. send set_foo_value request (riverctl) 2. receive set_foo_value request (river) 3. send set_foo_value event (river) 4. send layout_demand (river) This requires *much* less back and forth between the server and clients and is clearly much simpler.
This implements the changes to the river-layout protocol proposed in the previous commit removing river-options.
Add support for command line arguments to set default values for the various options of rivertile, bringing us back to rough feature parity with before the commit removing the river-options protocol.
This protocol involves far too much accidental complexity. The original
motivating use-case was to provide a convenient way to send arbitrary
data to layout clients at runtime in order to avoid layout clients
needing to implement their own IPC and do this over a side-channel.
Instead of implementing a quite complex but still rigid options protocol
and storing this state in the compositor, instead simply add requests
and events to the layout protocol to support this use case.
Consider the status quo event sequence:
And compare with the event sequence after the proposed change:
This requires much less back and forth between the server and clients
and is clearly much simpler.
Note: river-options is currently used for 2 core river features, setting
the active layout and setting the output title. These features are
planned to be moved to the