diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-11-20 11:32:51 -0500 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-11-20 11:33:11 -0500 |
commit | 515681503e4ce268da3cc6d951104ecafcd1194c (patch) | |
tree | 03f14c6e99e83fede339d939d8fae0f5b216d83e | |
parent | 7a2203007175c9cae1a5793bd9ceadb7d0959770 (diff) |
screencopy: Use box size instead for shm copy
This doesn't change functionality, both the values are the same. Less
confusing to use the box size.
-rw-r--r-- | types/wlr_screencopy_v1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c index 50267569..99ed7696 100644 --- a/types/wlr_screencopy_v1.c +++ b/types/wlr_screencopy_v1.c @@ -196,8 +196,8 @@ static bool frame_shm_copy(struct wlr_screencopy_frame_v1 *frame, int x = frame->box.x; int y = frame->box.y; - int width = frame->buffer->width; - int height = frame->buffer->height; + int width = frame->box.width; + int height = frame->box.height; void *data; uint32_t format; |