aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-03-02 12:40:19 +0100
committerDrew DeVault <sir@cmpwn.com>2020-03-04 03:09:43 +0100
commitc0811fcf8736961725f7aa848e740f38f2bdf6ed (patch)
treec5d361234a4c4fc4225526791153324e91cd0dbf /sway
parent476773dd32e2f423f58dea39fac8b2dc0ba085b9 (diff)
Make handle_destroy and output_repaint_timer_handler static
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/output.c2
-rw-r--r--sway/desktop/surface.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index f5c84d96..16c6fc54 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -507,7 +507,7 @@ static bool scan_out_fullscreen_view(struct sway_output *output,
return wlr_output_commit(wlr_output);
}
-int output_repaint_timer_handler(void *data) {
+static int output_repaint_timer_handler(void *data) {
struct sway_output *output = data;
if (output->wlr_output == NULL) {
return 0;
diff --git a/sway/desktop/surface.c b/sway/desktop/surface.c
index 35af2870..767b2045 100644
--- a/sway/desktop/surface.c
+++ b/sway/desktop/surface.c
@@ -5,7 +5,7 @@
#include "sway/server.h"
#include "sway/surface.h"
-void handle_destroy(struct wl_listener *listener, void *data) {
+static void handle_destroy(struct wl_listener *listener, void *data) {
struct sway_surface *surface = wl_container_of(listener, surface, destroy);
surface->wlr_surface->data = NULL;