1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-30 23:38:10 +00:00
mpv/osdep
der richter f7a32b5f29 mac: make display-names unique to allow specific selection
the Screen property localizedName returns a none unique dynamic name
that doesn't allow a specific selection of a Screen on every OS boot.
the name consists of the vendor name and model name (eg DELL U2723QE).
if the same model display is connected to the system several times,
macOS starts to add numbers to the localizedName (eg DELL U2723QE (1)),
that may not be associated to the same Screen on every OS boot or
connecting the display. it also changes the name of the first connected
display by adding that numeration. this makes it impossible specify the
proper screen with the screen-name option every time.

to circumvent this we remove the enumeration from the name and instead
add the serial number to the display-names property. this makes the
actual Screen unique and none dynamic. furthermore the selection of a
screen by name will check for equality for the old localizedName, simple
name without enumeration, serial number and the combined name with
serial number. this makes it possible to select the screen by either of
those names and identifiers, and keeps backwards compatibility with the
old behaviour.

Examples:
localized name (System Settings name): DELL U2723QE, DELL U2723QE (1)
simple name: DELL U2723QE
serial number: 123456789
combined name: DELL U2723QE (123456789)
2024-04-24 20:35:38 +02:00
..
android
mac mac: make display-names unique to allow specific selection 2024-04-24 20:35:38 +02:00
compiler.h audio: introduce ao_read_data_nonblocking() 2023-11-08 20:26:23 +01:00
endian.h
getpid.h
glob-win.c
io.c win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
io.h win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
language-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
language-posix.c
language-win.c
main-fn-mac.c mac/app: cleanup and optimise App launch and termination 2024-04-01 22:13:39 +02:00
main-fn-unix.c
main-fn-win.c osdep/main-fn-win: fix implicit conversion warning 2024-03-19 08:58:18 +01:00
main-fn.h
mpv.exe.manifest win32: opt in to the windows segment heap 2023-12-22 16:36:31 +01:00
mpv.rc
path-darwin.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
path-mac.m osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
path-unix.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
path-uwp.c various: use correct PATH_MAX for win32 2023-12-27 22:55:56 +01:00
path-win.c various: use correct PATH_MAX for win32 2023-12-27 22:55:56 +01:00
path.h osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
poll_wrapper.c vo: don't sleep 1ms always when requested time is in the past 2023-11-09 21:31:58 +00:00
poll_wrapper.h
semaphore-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
semaphore.h various: make mentions of macOS consistent 2024-02-21 20:46:53 +01:00
strnlen.h
subprocess-dummy.c
subprocess-posix.c osdep: fix infinite loop when cancelling subprocess 2024-02-11 14:13:22 +01:00
subprocess-win.c various: replace dead links in comments 2024-02-11 04:01:24 +00:00
subprocess.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
subprocess.h
terminal-dummy.c win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
terminal-unix.c terminal: add terminal_set_mouse_input function 2024-04-18 01:03:33 +02:00
terminal-win.c terminal-win: support mouse input events 2024-04-18 01:03:33 +02:00
terminal.h terminal: add terminal_set_mouse_input function 2024-04-18 01:03:33 +02:00
threads-posix.c threads: remove unused code 2023-11-05 17:36:17 +00:00
threads-posix.h osdep/threads: fix warning: initializer element is not constant 2024-03-19 08:58:18 +01:00
threads-win32.h win32: increase hires timer resolution 2024-03-19 20:23:25 +01:00
threads.h threads: unbreak mpv on builds without asserts 2023-11-06 04:14:49 +00:00
timer-darwin.c mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
timer-linux.c osdep/timer-linux: check clock availability on init 2023-11-08 04:32:10 +00:00
timer-win32.c win32: increase hires timer resolution 2024-03-19 20:23:25 +01:00
timer.c mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
timer.h mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
utils-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
utils-mac.h osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
w32_keyboard.c win32: properly handle WM_XBUTTONUP and WM_XBUTTONDOWN 2023-12-06 11:07:37 +01:00
w32_keyboard.h
win32-console-wrapper.c win32-console-wrapper: fix printf specifiers 2024-03-19 19:56:25 +01:00
windows_utils.c win32: implement shell link target resolving 2024-03-19 11:34:00 +01:00
windows_utils.h win32: implement shell link target resolving 2024-03-19 11:34:00 +01:00