diff options
author | Geoff Greer <geoff@greer.fm> | 2019-02-10 16:56:57 -0800 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-03-24 09:37:24 +0200 |
commit | 6e3046878d4dced3f2e503973ad31d7921c0c400 (patch) | |
tree | 6a8b5b2204624848edb0b37ecfad8c7764bd2633 /sway/ipc-server.c | |
parent | Allow for workspace renaming during exec handling (diff) | |
download | sway-6e3046878d4dced3f2e503973ad31d7921c0c400.tar.gz sway-6e3046878d4dced3f2e503973ad31d7921c0c400.tar.zst sway-6e3046878d4dced3f2e503973ad31d7921c0c400.zip |
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 'sway/ipc-server.c')
-rw-r--r-- | sway/ipc-server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index df57cba5..e133a5bf 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c | |||
@@ -644,6 +644,8 @@ void ipc_client_handle_command(struct ipc_client *client) { | |||
644 | json_object_object_add(output_json, "focused", | 644 | json_object_object_add(output_json, "focused", |
645 | json_object_new_boolean(focused)); | 645 | json_object_new_boolean(focused)); |
646 | 646 | ||
647 | const char *subpixel = sway_wl_output_subpixel_to_string(output->wlr_output->subpixel); | ||
648 | json_object_object_add(output_json, "subpixel_hinting", json_object_new_string(subpixel)); | ||
647 | json_object_array_add(outputs, output_json); | 649 | json_object_array_add(outputs, output_json); |
648 | } | 650 | } |
649 | struct sway_output *output; | 651 | struct sway_output *output; |