diff options
author | 2018-10-16 10:50:56 +0100 | |
---|---|---|
committer | 2018-10-16 10:50:56 +0100 | |
commit | ac20690945f1cd44c4c22267c9e7a172ebcf5ba5 (patch) | |
tree | 994739d4ba8388d7a336ac825a618daf2274ec66 /swaynag | |
parent | Prevent duplicate workspace::focus events (diff) | |
parent | Merge pull request #2845 from colemickens/posix_clock (diff) | |
download | sway-ac20690945f1cd44c4c22267c9e7a172ebcf5ba5.tar.gz sway-ac20690945f1cd44c4c22267c9e7a172ebcf5ba5.tar.zst sway-ac20690945f1cd44c4c22267c9e7a172ebcf5ba5.zip |
Merge branch 'master' into set-set-raw-focus
Diffstat (limited to 'swaynag')
-rw-r--r-- | swaynag/swaynag.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c index 69da851e..fa6bbe05 100644 --- a/swaynag/swaynag.c +++ b/swaynag/swaynag.c | |||
@@ -342,7 +342,11 @@ static const struct wl_registry_listener registry_listener = { | |||
342 | 342 | ||
343 | void swaynag_setup(struct swaynag *swaynag) { | 343 | void swaynag_setup(struct swaynag *swaynag) { |
344 | swaynag->display = wl_display_connect(NULL); | 344 | swaynag->display = wl_display_connect(NULL); |
345 | assert(swaynag->display); | 345 | if (!swaynag->display) { |
346 | sway_abort("Unable to connect to the compositor. " | ||
347 | "If your compositor is running, check or set the " | ||
348 | "WAYLAND_DISPLAY environment variable."); | ||
349 | } | ||
346 | 350 | ||
347 | swaynag->scale = 1; | 351 | swaynag->scale = 1; |
348 | wl_list_init(&swaynag->outputs); | 352 | wl_list_init(&swaynag->outputs); |