minus
bfcfabee2b
swaybar: Fix scroll handling on workspace buttons
...
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.
6 years ago
emersion
48b911a459
Merge pull request #2281 from pvsr/X11_click
...
Send clicks to swaybar blocks as X11 button ids
6 years ago
Peter Rice
e43c20134a
remove unnecessary parens
6 years ago
Peter Rice
14511da75d
send scroll events to swaybar blocks
6 years ago
Peter Rice
79a998849b
make hotspot callback take an x11 button id
6 years ago
Ryan Dwyer
255dc8bbb0
swaybar: Read urgent colors from IPC
6 years ago
minus
c73a40555f
swaybar/bg: Fix crash on DPMS off
...
When turning off displays via DPMS, swaybar and swaybg still tried to
render, but did not get a valid buffer, causing them to crash.
6 years ago
emersion
63b4bf5000
Update for swaywm/wlroots#1126
6 years ago
Brian Ashworth
1b4c289482
Fix swaybar teardown when workspace buttons hidden
6 years ago
Brian Ashworth
78c08fb0a2
Implement mode --pango_markup
7 years ago
Ryan Dwyer
e012b05b00
Swaybar: Respect pango_markup config
...
Makes swaybar respect the user's pango_markup configuration in the
workspace buttons and binding mode indicator.
7 years ago
Rostislav Pehlivanov
3b6629af3c
Revert "Install swaybar and swaybg under /usr/lib/sway"
...
This reverts commit f2c209c299
.
7 years ago
Rostislav Pehlivanov
2c0c3dc7cc
Revert "Make the LIBDIR path configurable"
...
This reverts commit 1670b46bf6
.
7 years ago
Rostislav Pehlivanov
0cdc47ab1e
Revert "Meson: Replace option `instlibdir` with `libexecdir`"
...
This reverts commit 830c4ef74c
.
7 years ago
Nicolas Braud-Santoni
830c4ef74c
Meson: Replace option `instlibdir` with `libexecdir`
...
Derive a value from it, called `rundir` rather than writing join_paths(libexecdir,
'sway') all over the place.
7 years ago
Nicolas Braud-Santoni
1670b46bf6
Make the LIBDIR path configurable
7 years ago
Nicolas Braud-Santoni
f2c209c299
Install swaybar and swaybg under /usr/lib/sway
7 years ago
emersion
aa36899d8a
Fix a bunch of swaybar memory leaks
7 years ago
Alex Xu (Hello71)
63267240bf
Work around maybe-uninitialized in bar.c
...
Fixes #1855 .
7 years ago
Scott Anderson
4dfbc3160c
Fix swaybar axis event logic
...
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.
7 years ago
Scott Anderson
c63554885e
Remove void * casts
...
They're pointless.
7 years ago
Scott Anderson
2ebb6073b7
Remove status command event on error
...
This prevents very high CPU load when the status command dies,
and poll continuously awoken with POLLHUP.
7 years ago
Scott Anderson
9a3fb33e33
Change remove_event logic
...
We defer the removal of entries until after the poll loop has finished.
Otherwise we may end up adjusting the poll array while we're still
reading from it, causing us to skip events.
7 years ago
Scott Anderson
e0107c4dd7
Always send POLLHUP and POLLERR with event loop
7 years ago
Bruno Pinto
9bc4565a59
Fix memory leak on swaybar
...
Code from @NilsBrause
Ref #1820
7 years ago
Scott Anderson
0d67d56c2a
Set _POSIX_C_SOURCE properly
7 years ago
Drew DeVault
5785170421
Fix separator height calculation
...
Fixes #1796
Also rearranged this code to more closely mirror the similar code above
so future discrepancies are easier to spot.
7 years ago
emersion
84243a708e
Merge pull request #1792 from RyanDwyer/fix-swaybar-status-blocks
...
Fix swaybar not showing all status blocks
7 years ago
Ryan Dwyer
7dfc0409eb
Check height in surface local coordinates and rename some variables.
7 years ago
db
39e3319394
fix swaybar ipc handling
...
Swap return with break in IPC_EVENT_WORKSPACE case to free resp.
Change default return value to true. This causes IPC_EVENT_MODE changes to be
rendered instantly.
7 years ago
Ryan Dwyer
1a0d367f22
Fix swaybar not showing all status blocks.
7 years ago
Ryan Dwyer
c38de16722
Fix swaybar output config.
7 years ago
Drew DeVault
ac3be29517
Fix some more bugs
7 years ago
Ryan Dwyer
bac65078a2
Fix buffer issues in swaybar status line.
7 years ago
emersion
16e363e3e2
Fix swaybar HiDPI rounding issue
7 years ago
Drew DeVault
4ba6545c65
Fixup for #1773
7 years ago
db
257a831c72
Use full ws->name in swaybar hotspot callback
...
If strip_workspace_numbers option is enabled, we must preserve the right
workspace name for hotspot.
7 years ago
Drew DeVault
efac07db5f
Fix workspaces not updated on swaybar
7 years ago
Drew DeVault
f242362e7e
Handle output removal on swaybar
7 years ago
Drew DeVault
38bdd4bdeb
Address review feedback
7 years ago
Drew DeVault
c4e92c81f5
Adjust height calculation, naming
7 years ago
Drew DeVault
d48e7036aa
Don't use asserts with side-effects
7 years ago
Drew DeVault
2605950769
Add hidpi support to swaybar
7 years ago
Drew DeVault
f366ef373e
Fix #1709
7 years ago
Drew DeVault
ef50d84be1
Render blocks the correct order
7 years ago
Drew DeVault
c507727ad2
Fix use-after-free with block hotspots
7 years ago
Drew DeVault
0cbd2a4f49
Send click events for i3bar blocks
7 years ago
Drew DeVault
333dbcbe72
Render i3bar blocks
7 years ago
Drew DeVault
ee85c91831
Demarcate i3bar JSON into individual updates
7 years ago
Drew DeVault
2a5108a278
Implement workspace switch on click
7 years ago