update wlx-capture; normalized coords for xshm mouse
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -4259,7 +4259,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "wlx-capture"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/galister/wlx-capture#a3b8312a1ae2c40e9a5ed067cbf04e3a69431c44"
|
||||
source = "git+https://github.com/galister/wlx-capture#c91b249d29319f4c5882abee5e911d84943aa6da"
|
||||
dependencies = [
|
||||
"ashpd",
|
||||
"drm-fourcc",
|
||||
|
||||
@@ -193,8 +193,8 @@ impl ScreenPipeline {
|
||||
let vertex_buffer = app.graphics.upload_verts(
|
||||
self.extentf[0],
|
||||
self.extentf[1],
|
||||
(mouse.x - 2) as _,
|
||||
(mouse.y - 2) as _,
|
||||
mouse.x * self.extentf[0] - 2.,
|
||||
mouse.y * self.extentf[1] - 2.,
|
||||
4.0,
|
||||
4.0,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user