obs-studio/plugins
Lain dd64fef084 linux-capture: Fix xcomp capturing random windows
There are two situations where xcomposite window capture will capture
random windows: on first creation, and when going to the properties when
the current window is invalid. The first happens because for whatever
reason someone decided to just make it capture the first top-level
window if there is no set value. The second happens because the
properties widget cannot find the value it's looking for and defaults to
the first one when the properties are opened, thus selecting and
capturing the first window in the list (which is probably something we
should fix in the properties view at some point but I don't want to dive
into code that's even *more* cursed than xcomposite code right now)

I think that this was a major oversight and that whoever wrote it
however many countless years ago did not realize that this is something
that maybe users don't want to have happen.

So instead, this diff makes it so that on first creation, it creates a
value that says "[Select a window to capture]" that keeps the capture
inactive until a user actually chooses a window rather than the
top-level window. It also makes it so that if the user has a window that
is no longer valid, it will keep that window in the list and as the
currently selected value, which prevents it from automatically selecting
the first window in the list when properties are opened.

(Have I mentioned xcomposite is cursed? Trying to debug xcomposite code
in a debugger freezes my window compositor and forces me to do a hard
restart of my entire computer, so I was forced to use printf debugging.
Absolute nightmare-inducing code in here.)
2024-09-03 13:28:18 -07:00
..
aja Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
coreaudio-encoder Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
decklink Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
image-source Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
linux-alsa Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
linux-capture linux-capture: Fix xcomp capturing random windows 2024-09-03 13:28:18 -07:00
linux-jack Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
linux-pipewire Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
linux-pulseaudio Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
linux-v4l2 Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
mac-avcapture Update formatting of CMake files 2024-08-14 12:07:47 -04:00
mac-capture mac-capture: Remove disp_finished event 2024-08-25 10:17:06 +10:00
mac-syphon Update formatting of CMake files 2024-08-14 12:07:47 -04:00
mac-videotoolbox Update formatting of CMake files 2024-08-14 12:07:47 -04:00
mac-virtualcam Update formatting of CMake files 2024-08-14 12:07:47 -04:00
nv-filters obs-filters: Add NVIDIA Blur Filter & Background Blur 2024-08-23 15:19:38 -04:00
obs-browser@e4e523df77 obs-browser: Update version to 2.24.2 2024-08-30 18:29:57 -04:00
obs-ffmpeg Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
obs-filters Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
obs-libfdk Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
obs-nvenc obs-nvenc: Only show UHQ tune on supported GPUs 2024-08-21 08:07:25 +02:00
obs-outputs Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
obs-qsv11 Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
obs-text plugins: Remove CMake legacy code paths for Windows modules 2024-08-22 15:39:00 -04:00
obs-transitions Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
obs-vst Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
obs-webrtc Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
obs-websocket@0548c7798a obs-websocket: Update version to 5.5.2 2024-07-19 20:07:14 -04:00
obs-x264 Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
oss-audio Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
rtmp-services Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
sndio Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
text-freetype2 Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
vlc-video Remove CMake legacy code path 2024-08-28 13:53:25 -04:00
win-capture plugins: Remove CMake legacy code paths for Windows modules 2024-08-22 15:39:00 -04:00
win-dshow win-dshow: Fix CMake preventing Virtual Camera from working 2024-08-28 18:10:08 -04:00
win-wasapi plugins: Remove CMake legacy code paths for Windows modules 2024-08-22 15:39:00 -04:00
CMakeLists.txt Remove CMake legacy code path 2024-08-28 13:53:25 -04:00