xserver/mi
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Enrico Weigelt, metux IT consult b0ffa7b286 treewide: rename dixGetFirstScreenPtr() to dixGetMasterScreen() for correct semantics
In Xinerama/Panoramix configuration there's one screen that's having special
meaning - it's used for simulating as the frontend for all client operations:
the clients (should) only talk to that screen, while panoramix subsystem is
proxying those operations to all the other screens (with certain changed
applied, eg. coordinate transformations).

Historically, this screen happens to be the first one in the system (some of
it's proc's are hooked up in order to achieve desired behaviour). That's why it
used to be accessed via screenInfo.screens[0] - that already had been encapsulated
into a tiny helper `dixGetFirstScreen()`.

a) the correct terminus technicus for a situation where one device (or SW entity)
   entirely controlling others is a master-slave-relationship: the controlling
   device/entity is `master`, the controlled ones are `slave` (to that specific
   master).

b) the term "first screen" is inacurate and misleading here: what the caller's are
   actually interest in isn't the first entry in the screen array, but the screen
   that's controlling the others. With upcoming refactoring of the Xinerama/Panoramix
   subsystem, this might well be a different array index than 0.

c) the term `default` also wouldn't match: `default` implies there's a real practical
   choice, and such value applies when no explicit choice has been made. But in this
   case, it practically doesn't make sense (except perhaps for debugging purpose)
   for a client to use any different screen.

Therefore fixing the function name to the correct technical terminology.
(for sake of patch readability, renaming corresponding variables is left to
subsequent patches).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-09-12 11:44:05 +02:00
..
meson.build treewide: remove "lib" prefix in static_library names (meson) 2025-07-03 12:01:52 +02:00
mi.h mi: unexport miXYToWindow() 2025-02-06 16:45:20 +02:00
mi_priv.h mi: mark miWindowExposures() and miExpandDirectColors() exported 2025-06-12 17:21:48 +02:00
miarc.c mi: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
micmap.c dix: add dixAllocServerXID() 2025-06-12 17:21:48 +02:00
micmap.h (1832) mi: micmap: drop unused miInitVisualsProcPtr type 2025-06-12 17:21:43 +02:00
micoord.h mi: Remove semi-arbitrary arch awareness in packed coordinate macros 2014-07-28 12:20:44 -07:00
micopy.c mi: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
midash.c mi: unexport miStepDash() 2025-02-06 16:45:20 +02:00
midispcur.c mi: miDCDeviceCleanup(): little loop simplification 2025-09-04 19:13:14 +02:00
mieq.c treewide: drop unnecessary includes of Xi/eglobals.h 2025-09-09 14:41:10 +02:00
miexpose.c treewide: rename dixGetFirstScreenPtr() to dixGetMasterScreen() for correct semantics 2025-09-12 11:44:05 +02:00
mifillarc.c mi: use calloc() instead of malloc() 2025-06-12 16:49:27 +02:00
mifillarc.h mi: Unexport arc fill implementation details 2014-10-27 15:45:21 -04:00
mifpoly.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
migc.c mi: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
migc.h mi: Add include guards to migc.h 2017-02-16 15:10:32 -05:00
miglblt.c mi: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
miinitext.c meson: rename symbol MITSHM to CONFIG_MITSHM 2025-08-05 11:39:28 +02:00
miinitext.h mi: List extensions in usage message 2021-01-29 12:52:09 +00:00
miline.h mi: add/fix include guards where missing/broken 2025-06-27 13:58:05 +02:00
mioverlay.c mi: use calloc() instead of malloc() 2025-06-12 16:49:27 +02:00
mioverlay.h Revert "mi: drop obsolete miInitOverlay()" 2025-02-27 11:53:54 +00:00
mipointer.c dix: move inpututils.h and rename it to inpututil_privs.h 2025-07-18 04:51:30 +02:00
mipointer.h mi: (re)export and document miPointerInitialize() 2025-02-13 23:53:39 +00:00
mipointer_priv.h mi: (re)export and document miPointerInitialize() 2025-02-13 23:53:39 +00:00
mipointrst.h dix: Update some comments to reflect the new non-SIGIO input model 2016-06-08 11:36:32 -04:00
mipoly.c mi: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
mipoly.h mi: add/fix include guards where missing/broken 2025-06-27 13:58:05 +02:00
mipolypnt.c mi: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
mipolyrect.c mi: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
mipolyseg.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipolytext.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipushpxl.c mi: use calloc() instead of malloc() 2025-06-12 16:49:27 +02:00
miscanfill.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
miscrinit.c meson: rename symbol MITSHM to CONFIG_MITSHM 2025-08-05 11:39:28 +02:00
misprite.c dix: move ColormapRec declaration out of public header 2025-06-12 17:21:43 +02:00
misprite.h mi: add/fix include guards where missing/broken 2025-06-27 13:58:05 +02:00
mistruct.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
mivalidate.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mivaltree.c treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
miwideline.c mi: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
miwideline.h mi: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
miwindow.c treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
mizerarc.c mi: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
mizerarc.h mi: add/fix include guards where missing/broken 2025-06-27 13:58:05 +02:00
mizerclip.c mi: miline.h: unexport only locally used macros 2025-02-06 22:18:11 +00:00
mizerline.c mi: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00