git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commitc69a8737607125a3a5fa6ba8bf58ba0f48b2e220
parent896773f6e4
authorIsaac Freund <[email protected]>
date2024-06-14 15:32
input: apply map-to-output on output activation

Currently a map-to-output input config setting loses effect when an
output is disabled and re-enabled for example.

 river/Root.zig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/river/Root.zig b/river/Root.zig
index 7b87741..1dc0cba 100644
--- a/river/Root.zig
+++ b/river/Root.zig
@@ -416,6 +416,9 @@ pub fn activateOutput(root: *Root, output: *Output) void {
     }
     assert(root.fallback_pending.focus_stack.empty());
     assert(root.fallback_pending.wm_stack.empty());
+
+    // Enforce map-to-output configuration for the newly active output.
+    server.input_manager.reconfigureDevices();
 }
 
 /// Trigger asynchronous application of pending state for all outputs and views.