mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
Fix linewidth in wlr_screencast.c
This commit is contained in:
parent
cc59abb124
commit
61db8968f9
1 changed files with 4 additions and 1 deletions
|
@ -124,7 +124,10 @@ static void wlr_frame_buffer(void *data, struct zwlr_screencopy_frame_v1 *frame,
|
|||
|
||||
logprint(TRACE, "wlroots: buffer event handler");
|
||||
cast->wlr_frame = frame;
|
||||
if (cast->simple_frame.width != width || cast->simple_frame.height != height || cast->simple_frame.stride != stride || cast->simple_frame.format != format) {
|
||||
if (cast->simple_frame.width != width ||
|
||||
cast->simple_frame.height != height ||
|
||||
cast->simple_frame.stride != stride ||
|
||||
cast->simple_frame.format != format) {
|
||||
logprint(TRACE, "wlroots: buffer properties changed");
|
||||
wlr_frame_buffer_chparam(cast, format, width, height, stride);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue