Merge pull request #987 from seirl/master

Add fix to watch for VisibilityNotify events.
This commit is contained in:
Jim 2017-09-12 05:30:36 -07:00 committed by GitHub
commit dde03af95e
2 changed files with 7 additions and 1 deletions

View File

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

View File

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