diff --git a/plugins/linux-capture/xcompcap-helper.cpp b/plugins/linux-capture/xcompcap-helper.cpp index f44fdbab6..4ff158ab3 100644 --- a/plugins/linux-capture/xcompcap-helper.cpp +++ b/plugins/linux-capture/xcompcap-helper.cpp @@ -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); } diff --git a/plugins/linux-capture/xcompcap-main.cpp b/plugins/linux-capture/xcompcap-main.cpp index 4448a7946..ebbc73e57 100644 --- a/plugins/linux-capture/xcompcap-main.cpp +++ b/plugins/linux-capture/xcompcap-main.cpp @@ -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;