summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-01-17 22:30:24 +0100
committerFurkan Sahin <furkan-dev@proton.me>2019-01-17 22:30:24 +0100
commit78c8536df8c0ac2492a9cd321614ac8d40e41cda (patch)
tree7c40fbaebce93738d1f44d32f2d6f059a073e85e /include
parent55b852138fe39070c773b4ae601f147343debb8d (diff)
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);
void merge_output_config(struct output_config *dst, struct output_config *src);
-void apply_output_config(struct output_config *oc, struct sway_output *output);
+bool apply_output_config(struct output_config *oc, struct sway_output *output);
struct output_config *store_output_config(struct output_config *oc);
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 {
int lx, ly;
int width, height;
- bool enabled;
+ bool enabled, configured;
list_t *workspaces;
struct sway_output_state current;