aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Tadeo Kondrak <me@tadeo.ca>2021-02-24 11:50:34 -0700
committerLibravatar Simon Ser <contact@emersion.fr>2021-02-24 20:54:48 +0100
commitbb41b7b814361b57e99fd8578e87ebbaec8b4935 (patch)
tree7c9b6e710cdb2e406ce0abf61be9ca099f03fe31
parentbuild: stop cargo-culting assignment alignment (diff)
downloadsway-bb41b7b814361b57e99fd8578e87ebbaec8b4935.tar.gz
sway-bb41b7b814361b57e99fd8578e87ebbaec8b4935.tar.zst
sway-bb41b7b814361b57e99fd8578e87ebbaec8b4935.zip
output: Reconfigure xcursor when applying output config
Before this commit, when an output had its scale dynamically changed, Sway would not load a cursor theme with the new scale. This results in stale cursor images when moving the cursor into an area controlled by the compositor, like the background or resize areas. To reproduce: - Using IPC, set an output scale to a value that isn't currently used - Move the cursor into a compositor-controlled area - The cursor will not change
-rw-r--r--sway/config/output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index c9ec6745..7d0ed395 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -483,6 +483,8 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
483 // this output came online, and some config items (like map_to_output) are 483 // this output came online, and some config items (like map_to_output) are
484 // dependent on an output being present. 484 // dependent on an output being present.
485 input_manager_configure_all_inputs(); 485 input_manager_configure_all_inputs();
486 // Reconfigure the cursor images, since the scale may have changed.
487 input_manager_configure_xcursor();
486 return true; 488 return true;
487} 489}
488 490