thumbnails: do not crash if window size is 0x0
This commit is contained in:
parent
77890d463a
commit
4dafea185f
1 changed files with 2 additions and 0 deletions
|
@ -414,6 +414,8 @@ cairo_surface_t *get_window_thumbnail_ximage(Window win, size_t size, gboolean u
|
|||
fw = tw;
|
||||
ox = oy = 0;
|
||||
}
|
||||
if (!w || !h || !tw || !th || !fw)
|
||||
goto err0;
|
||||
|
||||
XShmSegmentInfo shminfo;
|
||||
XImage *ximg;
|
||||
|
|
Loading…
Reference in a new issue