chore: reset screen xywh on update_shape

based on https://github.com/input-leap/input-leap/pull/2167
This commit is contained in:
sithlord48
2025-01-27 22:45:07 -05:00
committed by Nick Bolton
parent d61bce4534
commit 7f6caec162

View File

@ -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<uint32_t>::max();
y_ = std::numeric_limits<uint32_t>::max();
for (auto it = ei_devices_.begin(); it != ei_devices_.end(); it++) {
auto idx = 0;
struct ei_region *r;