diff options
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/output.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 747ab28b..fb8a9ee5 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -1,6 +1,5 @@ #define _POSIX_C_SOURCE 200809L #include <assert.h> -#include <fcntl.h> #include <stdbool.h> #include <string.h> #include <sys/socket.h> @@ -488,24 +487,6 @@ static void handle_swaybg_client_destroy(struct wl_listener *listener, config->swaybg_client = NULL; } -static bool set_cloexec(int fd, bool cloexec) { - int flags = fcntl(fd, F_GETFD); - if (flags == -1) { - sway_log_errno(SWAY_ERROR, "fcntl failed"); - return false; - } - if (cloexec) { - flags = flags | FD_CLOEXEC; - } else { - flags = flags & ~FD_CLOEXEC; - } - if (fcntl(fd, F_SETFD, flags) == -1) { - sway_log_errno(SWAY_ERROR, "fcntl failed"); - return false; - } - return true; -} - static bool _spawn_swaybg(char **command) { if (config->swaybg_client != NULL) { wl_client_destroy(config->swaybg_client); |