aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-02-10 16:56:57 -0800
committerFurkan Sahin <furkan-dev@proton.me>2019-02-10 16:56:57 -0800
commit5fffb7cf80becae6c6475b1d5d350f46de51aafd (patch)
tree6a8b5b2204624848edb0b37ecfad8c7764bd2633 /include/util.h
parent6545281d99449ef186880498a1bbfdcf4517e219 (diff)
Add support for manually setting subpixel hinting on outputs.
Many laptop screens report unknown subpixel order. Allow users to manually set subpixel hinting to work around this. Addresses https://github.com/swaywm/sway/issues/3163
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
index 1fd772c0..6a668fd6 100644
--- a/include/util.h
+++ b/include/util.h
@@ -3,6 +3,7 @@
#include <stdint.h>
#include <stdbool.h>
+#include <wayland-server-protocol.h>
/**
* Wrap i into the range [0, max[
@@ -29,4 +30,6 @@ bool parse_boolean(const char *boolean, bool current);
*/
float parse_float(const char *value);
+const char *sway_wl_output_subpixel_to_string(enum wl_output_subpixel subpixel);
+
#endif