Exit on mode change intead of crashing
parent
9d2e22b9bd
commit
ef74911298
|
@ -497,8 +497,11 @@ void wayvnc_process_frame(struct wayvnc* self)
|
|||
self->screencopy.back->height);
|
||||
} else {
|
||||
// TODO: Reallocate
|
||||
assert(width == nvnc_fb_get_width(self->buffer));
|
||||
assert(height == nvnc_fb_get_height(self->buffer));
|
||||
if (width != nvnc_fb_get_width(self->buffer) ||
|
||||
height != nvnc_fb_get_height(self->buffer)) {
|
||||
wayvnc_exit(self);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
struct pixman_region16 txdamage, refined;
|
||||
|
|
Loading…
Reference in New Issue