Merge pull request #314 from raincomplex/master

Mark windows changed on Expose
master
Jim 2014-12-24 12:45:44 -08:00
commit b453571338
2 changed files with 4 additions and 1 deletions

View File

@ -186,6 +186,9 @@ namespace XCompcap
if (ev.type == MapNotify)
changedWindows.insert(ev.xmap.event);
if (ev.type == Expose)
changedWindows.insert(ev.xexpose.window);
if (ev.type == DestroyNotify)
changedWindows.insert(ev.xdestroywindow.event);
}

View File

@ -296,7 +296,7 @@ void XCompcapMain::updateSettings(obs_data_t *settings)
return;
}
XSelectInput(xdisp, p->win, StructureNotifyMask);
XSelectInput(xdisp, p->win, StructureNotifyMask | ExposureMask);
XSync(xdisp, 0);
XWindowAttributes attr;