mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
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
This commit is contained in:
parent
200833caae
commit
6e3046878d
14 changed files with 102 additions and 5 deletions
|
|
@ -644,6 +644,8 @@ void ipc_client_handle_command(struct ipc_client *client) {
|
|||
json_object_object_add(output_json, "focused",
|
||||
json_object_new_boolean(focused));
|
||||
|
||||
const char *subpixel = sway_wl_output_subpixel_to_string(output->wlr_output->subpixel);
|
||||
json_object_object_add(output_json, "subpixel_hinting", json_object_new_string(subpixel));
|
||||
json_object_array_add(outputs, output_json);
|
||||
}
|
||||
struct sway_output *output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue