aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2019-01-17 22:30:24 +0100
committerLibravatar emersion <contact@emersion.fr>2019-01-18 10:09:10 +0100
commita737d7ecc4d7f4825ca7879e3449522bc87049be (patch)
tree7c40fbaebce93738d1f44d32f2d6f059a073e85e /include
parentoutput: remove output_add_listeners (diff)
downloadsway-a737d7ecc4d7f4825ca7879e3449522bc87049be.tar.gz
sway-a737d7ecc4d7f4825ca7879e3449522bc87049be.tar.zst
sway-a737d7ecc4d7f4825ca7879e3449522bc87049be.zip
Better handle outputs without CRTC
This happens if you plug in more outputs than supported by your GPU. This patch makes it so outputs without CRTCs appear as disabled. As soon as they get a CRTC (signalled via the mode event), we can enable them.
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h2
-rw-r--r--include/sway/output.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 978606a6..8215ff59 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -568,7 +568,7 @@ struct output_config *new_output_config(const char *name);
568 568
569void merge_output_config(struct output_config *dst, struct output_config *src); 569void merge_output_config(struct output_config *dst, struct output_config *src);
570 570
571void apply_output_config(struct output_config *oc, struct sway_output *output); 571bool apply_output_config(struct output_config *oc, struct sway_output *output);
572 572
573struct output_config *store_output_config(struct output_config *oc); 573struct output_config *store_output_config(struct output_config *oc);
574 574
diff --git a/include/sway/output.h b/include/sway/output.h
index 7279187d..9ebdb6c1 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -31,7 +31,7 @@ struct sway_output {
31 int lx, ly; 31 int lx, ly;
32 int width, height; 32 int width, height;
33 33
34 bool enabled; 34 bool enabled, configured;
35 list_t *workspaces; 35 list_t *workspaces;
36 36
37 struct sway_output_state current; 37 struct sway_output_state current;