mirror of https://github.com/mpv-player/mpv
wayland/shm: prevent the window from flying away
With the new xdg_shell the problem will be no gone by itself.
This commit is contained in:
parent
157d470b31
commit
0670c541a5
|
@ -487,6 +487,8 @@ static void frame_handle_redraw(void *data,
|
||||||
if (p->resize_attach) {
|
if (p->resize_attach) {
|
||||||
destroy_shm_buffer(&p->tmp_buffer);
|
destroy_shm_buffer(&p->tmp_buffer);
|
||||||
p->resize_attach = false;
|
p->resize_attach = false;
|
||||||
|
p->x = 0;
|
||||||
|
p->y = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue