Close screenrecorder when target window is closed

This commit is contained in:
dec05eba
2022-03-31 01:50:06 +02:00
parent 7228d36647
commit e49d30048f
2 changed files with 8 additions and 1 deletions

View File

@@ -1405,6 +1405,12 @@ int main(int argc, char **argv) {
if (frame_time_overflow >= 0.0) {
frame_timer_start = time_now - frame_time_overflow;
if(dpy && src_window_id) {
XWindowAttributes attr;
if(!XGetWindowAttributes(dpy, src_window_id, &attr))
running = 0;
}
bool frame_captured = true;
if(redraw) {
redraw = false;