Fix compiling with -fno-common
This commit is contained in:
parent
9c93e1c0ce
commit
29a5ce5f65
|
@ -78,7 +78,7 @@ struct sway_server {
|
||||||
list_t *dirty_nodes;
|
list_t *dirty_nodes;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sway_server server;
|
extern struct sway_server server;
|
||||||
|
|
||||||
struct sway_debug {
|
struct sway_debug {
|
||||||
bool noatomic; // Ignore atomic layout updates
|
bool noatomic; // Ignore atomic layout updates
|
||||||
|
@ -92,7 +92,7 @@ struct sway_debug {
|
||||||
} damage;
|
} damage;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sway_debug debug;
|
extern struct sway_debug debug;
|
||||||
|
|
||||||
/* Prepares an unprivileged server_init by performing all privileged operations in advance */
|
/* Prepares an unprivileged server_init by performing all privileged operations in advance */
|
||||||
bool server_privileged_prepare(struct sway_server *server);
|
bool server_privileged_prepare(struct sway_server *server);
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
static bool terminate_request = false;
|
static bool terminate_request = false;
|
||||||
static int exit_value = 0;
|
static int exit_value = 0;
|
||||||
struct sway_server server = {0};
|
struct sway_server server = {0};
|
||||||
|
struct sway_debug debug = {0};
|
||||||
|
|
||||||
void sway_terminate(int exit_code) {
|
void sway_terminate(int exit_code) {
|
||||||
if (!server.wl_display) {
|
if (!server.wl_display) {
|
||||||
|
|
Loading…
Reference in a new issue