From 7f6caec162ea31083f548196e9a55a4eb4ec7d14 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Mon, 27 Jan 2025 22:45:07 -0500 Subject: [PATCH] chore: reset screen xywh on update_shape based on https://github.com/input-leap/input-leap/pull/2167 --- src/lib/platform/EiScreen.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/platform/EiScreen.cpp b/src/lib/platform/EiScreen.cpp index 2d15176cc..9815b8342 100644 --- a/src/lib/platform/EiScreen.cpp +++ b/src/lib/platform/EiScreen.cpp @@ -1,5 +1,6 @@ /* * Deskflow -- mouse and keyboard sharing utility + * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers * SPDX-FileCopyrightText: (C) 2024 Symless Ltd. * SPDX-FileCopyrightText: (C) 2022 Red Hat, Inc. * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception @@ -417,7 +418,10 @@ bool EiScreen::isPrimary() const void EiScreen::update_shape() { - + w_ = 1; + h_ = 1; + x_ = std::numeric_limits::max(); + y_ = std::numeric_limits::max(); for (auto it = ei_devices_.begin(); it != ei_devices_.end(); it++) { auto idx = 0; struct ei_region *r;