chore: reset screen xywh on update_shape
based on https://github.com/input-leap/input-leap/pull/2167
This commit is contained in:
parent
d61bce4534
commit
7f6caec162
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
* Deskflow -- mouse and keyboard sharing utility
|
||||||
|
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
|
||||||
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
|
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
|
||||||
* SPDX-FileCopyrightText: (C) 2022 Red Hat, Inc.
|
* SPDX-FileCopyrightText: (C) 2022 Red Hat, Inc.
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||||
|
|
@ -417,7 +418,10 @@ bool EiScreen::isPrimary() const
|
||||||
|
|
||||||
void EiScreen::update_shape()
|
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++) {
|
for (auto it = ei_devices_.begin(); it != ei_devices_.end(); it++) {
|
||||||
auto idx = 0;
|
auto idx = 0;
|
||||||
struct ei_region *r;
|
struct ei_region *r;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue