mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Make handle_destroy and output_repaint_timer_handler static
This commit is contained in:
parent
476773dd32
commit
c0811fcf87
3 changed files with 2 additions and 4 deletions
|
@ -78,8 +78,6 @@ typedef void (*sway_surface_iterator_func_t)(struct sway_output *output, struct
|
||||||
struct wlr_surface *surface, struct wlr_box *box, float rotation,
|
struct wlr_surface *surface, struct wlr_box *box, float rotation,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
|
|
||||||
int output_repaint_timer_handler(void *data);
|
|
||||||
|
|
||||||
void output_damage_whole(struct sway_output *output);
|
void output_damage_whole(struct sway_output *output);
|
||||||
|
|
||||||
void output_damage_surface(struct sway_output *output, double ox, double oy,
|
void output_damage_surface(struct sway_output *output, double ox, double oy,
|
||||||
|
|
|
@ -507,7 +507,7 @@ static bool scan_out_fullscreen_view(struct sway_output *output,
|
||||||
return wlr_output_commit(wlr_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;
|
struct sway_output *output = data;
|
||||||
if (output->wlr_output == NULL) {
|
if (output->wlr_output == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include "sway/server.h"
|
#include "sway/server.h"
|
||||||
#include "sway/surface.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);
|
struct sway_surface *surface = wl_container_of(listener, surface, destroy);
|
||||||
|
|
||||||
surface->wlr_surface->data = NULL;
|
surface->wlr_surface->data = NULL;
|
||||||
|
|
Loading…
Reference in a new issue