update wlx-capture; normalized coords for xshm mouse

This commit is contained in:
galister
2024-02-05 23:20:02 +01:00
parent 2fb55a8b62
commit c262d78b04
2 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -4259,7 +4259,7 @@ dependencies = [
[[package]] [[package]]
name = "wlx-capture" name = "wlx-capture"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/galister/wlx-capture#a3b8312a1ae2c40e9a5ed067cbf04e3a69431c44" source = "git+https://github.com/galister/wlx-capture#c91b249d29319f4c5882abee5e911d84943aa6da"
dependencies = [ dependencies = [
"ashpd", "ashpd",
"drm-fourcc", "drm-fourcc",

View File

@@ -193,8 +193,8 @@ impl ScreenPipeline {
let vertex_buffer = app.graphics.upload_verts( let vertex_buffer = app.graphics.upload_verts(
self.extentf[0], self.extentf[0],
self.extentf[1], self.extentf[1],
(mouse.x - 2) as _, mouse.x * self.extentf[0] - 2.,
(mouse.y - 2) as _, mouse.y * self.extentf[1] - 2.,
4.0, 4.0,
4.0, 4.0,
); );