Fix PDF viewer not to produce garbage windows for nonexistent files
Was calling window_flush() on redraw handler which already happens on window redrawing.
This commit is contained in:
committed by
Kristian Høgsberg
parent
80ad1a943d
commit
2bd429b734
@@ -78,7 +78,6 @@ redraw_handler(struct widget *widget, void *data)
|
|||||||
if(!view->document) {
|
if(!view->document) {
|
||||||
cairo_destroy(cr);
|
cairo_destroy(cr);
|
||||||
cairo_surface_destroy(surface);
|
cairo_surface_destroy(surface);
|
||||||
window_flush(view->window);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user