sway/workspaces: refer to outputs by their monitor identifier (make and model)
This commit is contained in:
@@ -143,7 +143,8 @@ void Workspaces::onCmd(const struct Ipc::ipc_response& res) {
|
|||||||
if (p_w.isArray() && !p_w.empty()) {
|
if (p_w.isArray() && !p_w.empty()) {
|
||||||
// Adding to target outputs
|
// Adding to target outputs
|
||||||
for (const Json::Value& output : p_w) {
|
for (const Json::Value& output : p_w) {
|
||||||
if (output.asString() == bar_.output->name) {
|
auto output_name = output.asString();
|
||||||
|
if (output_name == bar_.output->name || output_name == bar_.output->identifier) {
|
||||||
Json::Value v;
|
Json::Value v;
|
||||||
v["name"] = p_w_name;
|
v["name"] = p_w_name;
|
||||||
v["target_output"] = bar_.output->name;
|
v["target_output"] = bar_.output->name;
|
||||||
|
|||||||
Reference in New Issue
Block a user