Commit b3fcffa6 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add message in the logs when there is a X11 error while getting window attributes.

parent ed8a6bd6
......@@ -349,9 +349,13 @@ static void x11video_process(MSFilter *f){
bool_t precious=FALSE;
XWindowAttributes wa;
if (obj->window_id == 0) goto end;
if ((obj->window_id == 0) || (x11_error == TRUE)) goto end;
if (x11_error == TRUE) {
ms_error("Could not get window attributes for window %lu", obj->window_id);
goto end;
if (wa.width!=obj->wsize.width || wa.height!=obj->wsize.height){
ms_warning("Resized to %ix%i", wa.width,wa.height);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment