Simon Ser
fc640d5f6c
Define _POSIX_C_SOURCE globally
...
See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
2024-02-23 17:43:19 +03:00
Manuel Stoeckl
e2bc8866f4
Use shm_open instead of mkstemp
...
shm_open is more reliable because it does not require
a writeable filesystem folder, unlike mkstemp.
2022-11-25 00:05:12 +01:00
Issam E. Maghni
d45623c2db
cairo: Replace <cairo/cairo.h> by <cairo.h>
...
For full context, read
https://gitlab.freedesktop.org/cairo/cairo/-/issues/479
TL;DR, cairo’s pc file adds `/cairo` to CFLAGS.
So namespace cairo shouldn’t be used.
2021-05-10 10:28:32 +02:00
Sheena Artrip
7efb5d4673
Rename symbol set_cloexec to sway_set_cloexec, remove duplicates.
...
set_cloexec is defined by both sway and wlroots (and who-knows-else),
so rename the sway one for supporting static linkage. We also remove
the duplicate version of this in client/.
Fixes: https://github.com/swaywm/sway/issues/4677
2019-11-01 12:41:08 -04:00
Drew DeVault
236ca63419
swaybg: split into standalone project
...
The new upstream is https://github.com/swaywm/swaybg
This commit also refactors our use of gdk-pixbuf a bit, since the only
remaining reverse dependency is swaybar tray support.
2019-04-25 18:44:28 +03:00
M Stoeckl
0af5b26e41
Fix dead stores found by scan-build
...
In addition to removing unused code, two minor problems are fixed:
(1) `resize set` and `resize adjust` did not error when given
too many arguments.
(2) `orientation` was incorrectly overridden to be 'U' for
scroll events in the swaybar tray `handle_click` function.
2019-01-22 10:12:04 -05:00
M Stoeckl
4b1eaaf731
Removed unused wlroots dependency for sway(bg|bar|msg|nag)
...
Also remove direct libm dependency where unused.
2019-01-21 13:04:15 -05:00
sghctoma
073dcb3a86
Change _XOPEN_SOURCE defines to _POSIX_C_SOURCE
2018-09-03 09:08:49 +02:00
sghctoma
cc16948c85
Fix feature macros for FreeBSD
...
On FreeBSD, snprintf and vsnprintf are visible only if
_XOPEN_SOURCE >= 600.
2018-08-30 09:34:26 +02:00
vilhalmer
54a5ee2747
Set pool_buffers busy when handing them out
2018-06-17 17:34:12 -04:00
emersion
36d5d4b40f
client/pool-buffer: munmap in destroy_buffer
2018-05-27 14:09:48 +01:00
emersion
8df2238956
client/pool-buffer: set CLOEXEC on buffer FD, just in case
2018-05-27 14:09:45 +01:00
Drew DeVault
f242362e7e
Handle output removal on swaybar
2018-04-05 16:04:30 -04:00
Drew DeVault
59f362196b
assert(fd != -1);
...
Thanks @martinetd
2018-03-31 12:01:02 -04:00
Drew DeVault
d39bda76c4
Address review comments
2018-03-28 14:43:23 -04:00
Drew DeVault
53e3763b58
Fix style
2018-03-28 14:25:19 -04:00
Drew DeVault
632bb948b7
Add solid-color rendering to swaybg
2018-03-28 14:25:19 -04:00