Skip to content

Commit

Permalink
Merge pull request input-leap#1915 from marcelopio/patch-1
Browse files Browse the repository at this point in the history
InputCapture changes for KDE integration
  • Loading branch information
shymega authored Jun 10, 2024
2 parents fe876ce + b6dae88 commit 3ffbff2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/platform/PortalInputCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void PortalInputCapture::cb_zones_changed(XdpInputCaptureSession* session, GVari
// place, we can just install barriers everywhere and let EIS figure it out.
// Also a lot easier to implement for now though it doesn't cover
// differently-sized screens...
auto id = barriers_.size();
auto id = barriers_.size() + 1;
x1 = x;
y1 = y;
x2 = x + w - 1;
Expand All @@ -345,7 +345,7 @@ void PortalInputCapture::cb_zones_changed(XdpInputCaptureSession* session, GVari
"x2", x2,
"y2", y2,
nullptr)));
id = barriers_.size();
id = barriers_.size() + 1;
x1 = x + w;
y1 = y;
x2 = x + w;
Expand All @@ -359,7 +359,7 @@ void PortalInputCapture::cb_zones_changed(XdpInputCaptureSession* session, GVari
"x2", x2,
"y2", y2,
nullptr)));
id = barriers_.size();
id = barriers_.size() + 1;
x1 = x;
y1 = y;
x2 = x;
Expand All @@ -373,7 +373,7 @@ void PortalInputCapture::cb_zones_changed(XdpInputCaptureSession* session, GVari
"x2", x2,
"y2", y2,
nullptr)));
id = barriers_.size();
id = barriers_.size() + 1;
x1 = x;
y1 = y + h;
x2 = x + w - 1;
Expand All @@ -383,7 +383,7 @@ void PortalInputCapture::cb_zones_changed(XdpInputCaptureSession* session, GVari
g_object_new(XDP_TYPE_INPUT_CAPTURE_POINTER_BARRIER,
"id", id,
"x1", x1,
"y1", y2,
"y1", y1,
"x2", x2,
"y2", y2,
nullptr)));
Expand Down

0 comments on commit 3ffbff2

Please sign in to comment.