summaryrefslogtreecommitdiffstats
path: root/swaybar/bar.c
Commit message (Collapse)AuthorAge
* swaybar: render with minimum height, nominally text heightLibravatar Ian Fan2018-10-20
|
* Put swaybar in overlay layer when using mode hideLibravatar Ryan Dwyer2018-10-20
| | | | This allows the bar to render over fullscreen views.
* swaybar: separate input code to new fileLibravatar Ian Fan2018-10-18
|
* Sway clients: Exit gracefully when compositor is unavailableLibravatar Ryan Dwyer2018-10-15
|
* Remove timerfd from loop implementationLibravatar Ryan Dwyer2018-10-15
| | | | | timerfd doesn't work on the BSDs, so this replaces it with a timespec for the expiry and uses a poll timeout to check the timers when needed.
* Move swaybar's event loop to common directory and refactorLibravatar Ryan Dwyer2018-10-15
| | | | | | | * The loop functions are now prefixed with `loop_`. * It is now easy to add timers to the loop. * Timers are implemented using pollfd and timerfd, rather than manually checking them when any other event happens to arrive.
* swaybar: when hiding bar, save old height to be restored upon reshowLibravatar Ian Fan2018-10-14
| | | | | | | | 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.
* swaybar: send signal to status when hiding or showing barLibravatar Ian Fan2018-10-14
|
* swaybar: handle mode/hidden_state changesLibravatar Ian Fan2018-10-14
| | | | | | | | | 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.
* swaybar: move mode & mode_pango_markup to bar structLibravatar Ian Fan2018-10-14
| | | | | | 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.
* swaybar: only send initial workspace request if workspace buttons are enabledLibravatar Ian Fan2018-10-14
|
* swaybar: add free_hotspots helper functionLibravatar Ian Fan2018-10-14
|
* swaybar: save id upon startupLibravatar Ian Fan2018-10-14
| | | | | This adds an id property to the bar, which will be used to filter barconfig_update events
* bar-bindsym: address ianyfan's commentsLibravatar Brian Ashworth2018-10-09
|
* Implement bar bindsymLibravatar Brian Ashworth2018-10-09
|
* swaybar: allow null status_commandLibravatar Ryan Dwyer2018-10-08
| | | | | | | | | Sway sets a default status_command which runs date every second. This patch removes this behaviour so the user can have a NULL status bar if desired. I had to swap swaybar's event_loop_poll and wl_display_flush so that it would map the initial surface.
* swaybar: fix binding to wl_pointer multiple timesLibravatar emersion2018-10-06
|
* swaybar: synchronize rendering to output framesLibravatar Ian Fan2018-09-30
|
* swaybar: move i3bar definitions into separate fileLibravatar Ian Fan2018-09-28
|
* swaybar: fail if bar id is invalidLibravatar Ian Fan2018-09-28
|
* swaybar, swaylock, & tree/container: Set cairo font options to render text ↵Libravatar Geoff Greer2018-09-22
| | | | and lines with subpixel hinting (if available).
* swaybar: don't wl_display_roundtrip on each frameLibravatar emersion2018-09-20
| | | | | | | This was the source of numerous bugs, from hotplug events not being received to segfaults because wl_display_roundtrip was making the bar process unplug events while blocking in an iteration over all outputs.
* swaybar: handle hotpluggingLibravatar emersion2018-09-20
| | | | Don't kill and respawn swaybars on hotplug.
* swaybar: use output names instead of output indexesLibravatar emersion2018-09-17
|
* swaybar: Fix scroll handling on workspace buttonsLibravatar minus2018-07-19
| | | | | | | | | | As well as ignoring scroll events on status elements when click_events is enabled. Previously, using the scroll wheel on a workspace button would switch to that workspace instead of scrolling through them. Clicks and scrolling on status elements would always be processed by swaybar, too. So in case you were using scrolling as volume control on a status item, swaybar would additionally scroll through your workspaces.
* send scroll events to swaybar blocksLibravatar Peter Rice2018-07-16
|
* make hotspot callback take an x11 button idLibravatar Peter Rice2018-07-16
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* Fix a bunch of swaybar memory leaksLibravatar emersion2018-04-24
|
* Work around maybe-uninitialized in bar.cLibravatar Alex Xu (Hello71)2018-04-24
| | | | Fixes #1855.
* Fix swaybar axis event logicLibravatar Scott Anderson2018-04-22
| | | | | | | | | | | Uses 'visible' instead of 'focused', since we may scroll on a bar which isn't the focused output. We can't use "next_on_output" or "prev_on_output" to implement this, because it only modify the focused output. So scrolling on an unfocused output will affect the incorrect one. We just use the "workspace name" command instead.
* Remove void * castsLibravatar Scott Anderson2018-04-21
| | | | They're pointless.
* Remove status command event on errorLibravatar Scott Anderson2018-04-21
| | | | | This prevents very high CPU load when the status command dies, and poll continuously awoken with POLLHUP.
* Fix swaybar output config.Libravatar Ryan Dwyer2018-04-10
|
* Handle output removal on swaybarLibravatar Drew DeVault2018-04-05
|
* Address review feedbackLibravatar Drew DeVault2018-04-03
|
* Don't use asserts with side-effectsLibravatar Drew DeVault2018-04-03
|
* Add hidpi support to swaybarLibravatar Drew DeVault2018-04-03
|
* Render i3bar blocksLibravatar Drew DeVault2018-04-02
|
* Implement workspace switch on clickLibravatar Drew DeVault2018-03-30
|
* Implement scroll wheel workspace switchingLibravatar Drew DeVault2018-03-30
|
* Initialize seat pointer in swaybarLibravatar Drew DeVault2018-03-30
|
* Use render_all_frames from bar_setupLibravatar Drew DeVault2018-03-29
|
* Fix layer_surface_closedLibravatar Drew DeVault2018-03-29
|
* Tear down bar when display exitsLibravatar Drew DeVault2018-03-29
|
* Clean up status line on exitLibravatar Drew DeVault2018-03-29
|
* Implement status lineLibravatar Drew DeVault2018-03-29
| | | | Does not yet support i3bar json protocol
* Re-render bar on IPC updatesLibravatar Drew DeVault2018-03-29
|
* Round up workspaces on each outputLibravatar Drew DeVault2018-03-29
|
* Only utilize the configured outputsLibravatar Drew DeVault2018-03-29
|