screencopy: Handle error from with_buffer_contents_mut

Fixes https://github.com/pop-os/cosmic-comp/issues/48.

https://github.com/Smithay/smithay/pull/1475 fixes the segfault so this
instead produces an error. Then we need to handle the error here.
This commit is contained in:
Ian Douglas Scott 2024-07-03 14:35:32 -07:00 committed by Victoria Brekenfeld
parent f02520c194
commit 9f8fec6ec5
3 changed files with 7 additions and 4 deletions

2
Cargo.lock generated
View file

@ -4856,7 +4856,7 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
[[package]]
name = "smithay"
version = "0.3.0"
source = "git+https://github.com/smithay//smithay?rev=3731734#3731734d5a0409186a0475238ffe46e2835cee6d"
source = "git+https://github.com/smithay//smithay?rev=4171247#41712470abede74dab8a039ce048c70d56115ce6"
dependencies = [
"appendlist",
"ash 0.38.0+1.3.281",