-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bar mode/hidden_state events #2751
Commits on Oct 14, 2018
-
commands: fix sending bar mode/hidden_state updates to all bars
Previously, if a change was sent to all bars, it would only actually change the first bar it encountered, due to return value handling
Configuration menu - View commit details
-
Copy full SHA for 1f90f92 - Browse repository at this point
Copy the full SHA 1f90f92View commit details -
This adds an id property to the bar, which will be used to filter barconfig_update events
Configuration menu - View commit details
-
Copy full SHA for d0b54e9 - Browse repository at this point
Copy the full SHA d0b54e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18eaf45 - Browse repository at this point
Copy the full SHA 18eaf45View commit details -
swaybar: only subscribe to required events
This adds barconfig_update to the list of subscribed events, as well as checking when the other events need to be subscribed to.
Configuration menu - View commit details
-
Copy full SHA for a67fa8a - Browse repository at this point
Copy the full SHA a67fa8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19f0bf3 - Browse repository at this point
Copy the full SHA 19f0bf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a388ffa - Browse repository at this point
Copy the full SHA a388ffaView commit details -
swaybar: move mode & mode_pango_markup to bar struct
This distinguishes the binding mode from the distinct config mode, as well as removing mode_pango_markup from the config struct where it should not be present.
Configuration menu - View commit details
-
Copy full SHA for fed11d1 - Browse repository at this point
Copy the full SHA fed11d1View commit details -
swaybar: streamline ipc handling
The received json is handled outside of the case statement, which will allow better extensibility. This commit also introduces the variable bar_is_dirty, the return value signifying whether the bar requires rendering.
Configuration menu - View commit details
-
Copy full SHA for 55ca16f - Browse repository at this point
Copy the full SHA 55ca16fView commit details -
swaybar: handle mode/hidden_state changes
As well as adding the hidden_state property to the bar config struct, this commit handles barconfig_update events when the mode or hidden_state changes, and uses a new function determine_bar_visibility to hide or show the bar as required, using, respectively, destroy_layer_surface, which is also newly added, and add_layer_surface, which has been changed to allow dynamically adding the surface.
Configuration menu - View commit details
-
Copy full SHA for bcc61e5 - Browse repository at this point
Copy the full SHA bcc61e5View commit details -
swaybar: show hidden bar on key event
Since wayland does not currently allow swaybar to create global keybinds, this is handled within sway and sent to the bar using a custom event, so as not to pollute existing events, called bar_state_update.
Configuration menu - View commit details
-
Copy full SHA for 2f1fd80 - Browse repository at this point
Copy the full SHA 2f1fd80View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6f72cb - Browse repository at this point
Copy the full SHA f6f72cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a29ee77 - Browse repository at this point
Copy the full SHA a29ee77View commit details -
swaybar: when hiding bar, save old height to be restored upon reshow
Previously, when the bar was hidden, the height would be set to 0. This meant that if the bar was empty upon reshow, it would not render since the height was still 0, which made it seem there was a problem. Now, the height is not reset, but the width is, to indicate upon reshow that the layer surface needed reconfiguring.
Configuration menu - View commit details
-
Copy full SHA for 4dba7c0 - Browse repository at this point
Copy the full SHA 4dba7c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85dd36e - Browse repository at this point
Copy the full SHA 85dd36eView commit details