We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 207b2b3 commit 7c6d439Copy full SHA for 7c6d439
src/core/seat/input-manager.cpp
@@ -72,7 +72,18 @@ void wf::input_manager_t::refresh_device_mappings()
72
auto mapped_output = section->get_option("output")->get_value_str();
73
if (mapped_output.empty())
74
{
75
- mapped_output = nonull(dev->name);
+ if (dev->type == WLR_INPUT_DEVICE_POINTER)
76
+ {
77
+ mapped_output = nonull(wlr_pointer_from_input_device(
78
+ dev)->output_name);
79
+ } else if (dev->type == WLR_INPUT_DEVICE_TOUCH)
80
81
+ mapped_output =
82
+ nonull(wlr_touch_from_input_device(dev)->output_name);
83
+ } else
84
85
+ mapped_output = nonull(dev->name);
86
+ }
87
}
88
89
auto wo = wf::get_core().output_layout->find_output(mapped_output);
0 commit comments