Merge pull request #987 from seirl/master
Add fix to watch for VisibilityNotify events.
This commit is contained in:
commit
dde03af95e
@ -267,6 +267,9 @@ namespace XCompcap
|
|||||||
if (ev.type == Expose)
|
if (ev.type == Expose)
|
||||||
changedWindows.insert(ev.xexpose.window);
|
changedWindows.insert(ev.xexpose.window);
|
||||||
|
|
||||||
|
if (ev.type == VisibilityNotify)
|
||||||
|
changedWindows.insert(ev.xvisibility.window);
|
||||||
|
|
||||||
if (ev.type == DestroyNotify)
|
if (ev.type == DestroyNotify)
|
||||||
changedWindows.insert(ev.xdestroywindow.event);
|
changedWindows.insert(ev.xdestroywindow.event);
|
||||||
}
|
}
|
||||||
|
@ -318,7 +318,10 @@ void XCompcapMain::updateSettings(obs_data_t *settings)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (p->win)
|
if (p->win)
|
||||||
XSelectInput(xdisp, p->win, StructureNotifyMask | ExposureMask);
|
XSelectInput(xdisp, p->win,
|
||||||
|
StructureNotifyMask
|
||||||
|
| ExposureMask
|
||||||
|
| VisibilityChangeMask);
|
||||||
XSync(xdisp, 0);
|
XSync(xdisp, 0);
|
||||||
|
|
||||||
XWindowAttributes attr;
|
XWindowAttributes attr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user