mirror of
https://github.com/swaywm/sway.git
synced 2025-11-21 06:59:48 -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
|
|
@ -261,6 +261,7 @@ sway_cmd output_cmd_enable;
|
|||
sway_cmd output_cmd_mode;
|
||||
sway_cmd output_cmd_position;
|
||||
sway_cmd output_cmd_scale;
|
||||
sway_cmd output_cmd_subpixel;
|
||||
sway_cmd output_cmd_transform;
|
||||
|
||||
sway_cmd seat_cmd_attach;
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@ struct output_config {
|
|||
int x, y;
|
||||
float scale;
|
||||
int32_t transform;
|
||||
enum wl_output_subpixel subpixel;
|
||||
|
||||
char *background;
|
||||
char *background_option;
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ struct sway_output {
|
|||
|
||||
int lx, ly; // layout coords
|
||||
int width, height; // transformed buffer size
|
||||
enum wl_output_subpixel detected_subpixel;
|
||||
|
||||
bool enabled, configured;
|
||||
list_t *workspaces;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue