Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Detect desktop switching and have IINA switch to PiP? #2326
I started wondering whether it's possible to detect when the window is on a desktop/space (fullscreen app) that is no longer visible on the screen. If so that would be a nice point to automatically switch to PiP if there's a video playing.
This way, when you have a fullscreen video playing and swipe to another desktop the video automatically "follows" you. Having a video play audio while not being visible seems like a corner case to me, so this would automate the general case, although it would of course not be the default behavior.
Since there's already a section in settings for PiP, it would fit naturally in there as an option.
Would anyone other than me use it?