-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win32: add an option to change window affinity #11494
Conversation
Will this affect previous Windows versions like 7 or 8.1? |
It's supported since Windows 7, however the option
-- See https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity for more info. |
"mpv window" I assume?
Probably best to replace all occurrences of |
546ef6e
to
0bf45e5
Compare
EDIT: also added ability to change it at runtime now.
Fixed those mistakes in the doc. Originally I was referring to "the default windows(as in OS) behavior" to avoid repeating "mpv window" but this works too. |
i have nothing else to add, feel free to review. |
7b8c03d
to
0d71053
Compare
Can you please squash this commits? It's much easier to review that way. Also you can always merge master in with |
Hope I did it right.. never squashed commits. |
How can i fix the merge mistake? I'm using the github desktop app. |
Easiest way imo is to make a new branch off of master, cherry-pick the commit you want, delete your old one, rename the new branch to the old one, and then force push that. |
df9f3e3
to
bd69cb1
Compare
Thanks, works now, I also added an #ifdef to m_sub_options for the affinity option. |
2521a86
to
6c24de5
Compare
6c24de5
to
f14a51b
Compare
eba8e88
to
dee750e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments.
1c781a8
to
ad4d269
Compare
ad4d269
to
5c69696
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't test but LGTM.
I only tested it on Windows11, I have no 10 or 7 Machine. |
Download the artifacts for this pull request: |
Can you get rid of the merge commit? Edit: Looks like the fit_border option snuck back in there somehow (just removed it). |
f064aa4
to
32206f7
Compare
Cleaned it up, should be fine now I hope, I accidentally ran git reset on 1 of my other repos which gave me headache... |
ec471ed
to
0eb3a28
Compare
0eb3a28
to
99b2577
Compare
Add an option to control the mpv window's affinity. This will affect how it's displayed on the desktop and in system-level operations like taking screenshots.