Commit Graph

19489 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
06faa6dbae dix: unexport NoticeTime()
Not used by any external drivers, so no need to keep it public.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
317b1b4b56 dix: unexport InitBlockAndWakeupHandlers()
Not supposed to be called by drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
f07085c84b dix: unexport WakeupHandler()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
2fc8e5fc30 dix: unexport BlockHandler()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
0b1495d91e dix: rename IsFloating() to InputDevIsFloating()
Give it a better fitting name.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
04ab8a081a dix: unexport and document IsFloating()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
763c913232 dix: rename IsMaster to InputDevIsMaster()
Give it a better fitting name.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
49e546879a dix: unexport IsMaster()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
ce82890d9f dix: unexport IsKeyboardDevice()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
1e73bd8ac8 dix: unexport IsPointerDevice()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
e1545e89fe dix: rename IsParent() to WindowIsParent()
Spending it a more fitting name.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
6208a76440 dix: unexport IsParent()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
29cba31504 dix: unexport PickKeyboard()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
399497e58e dix: unexport PickPointer()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
b6bd735091 dix: unexport OtherClientGone()
Just an internal resource destructor, not used by any external
drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
5978217287 dix: unexport and document ScreenRestructured()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
83a443fed5 dix: unexport and document WindowsRestructured()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
6abbd6698a dix: unexport and document WindowHasNewCursor()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
f0f081b2a0 dix: unexport RootWindowFinalizeCallback field
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:31 +02:00
Enrico Weigelt, metux IT consult
785aab8e9c dix: unexport DeviceEventCallback field
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
b17af68e7f dix: unexport DeliverRawEvent()
Not used by any external drivers, so no need to keep it public.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
8376c6248b dix: unexport DeliverEventsToWindow()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
3c8c213e1e dix: unexport DeliverEvents() and fix return type
* not needed by any drivers, so no need to keep it exported
* correct return type is `enum EventDeliveryState`

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
9466dc3756 dix: unexport TryClientEvents()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
8ca75bea0d dix: unexport, document and rename GetSpriteWindow()
Not used by any drivers, so no need to keep it exported.
Also spending it for a better fitter name.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
b6761d088e dix: unexport, document and rename GetCurrentRootWindow()
Not used by any drivers, so no need to keep it exported.
Also spending it for a better fitter name.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
8267ec74c6 dix: unexport and document AlterSaveSetForClient()
Not used by any external drivers, so no need to keep it exported.
Also using XRetCode and marking paremters where NULL isn't allowed.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
44a2813903 dix: drop unused parameter from ConfineToShape()
The device parameter is never used, so no point in passing it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
09429b9940 dix: unexport and document ConfineToShape()
Not used by any drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
dca76268f2 dix: unexport SendGraphicsExpose() and fix parameter types
* not used by any drivers, so no need to keep it exported
* fix parameter types to matching the protocol types

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
cadd13fa26 dix: unexport SendErrorToClient() and fix parameter types
* not used by any drivers, so no need to keep it exported
* fix parameter types to matching the protocol types

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
b25ca8a9a5 dix: unexport and document ClientIsAsleep()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
81ba3a953b dix: unexport and document ClientWakeup()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
38d2fbd69a dix: unexport and document ClientSignalAll()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
74826feb2d dix: unexport and document ClientSignal()
Not used by any external drivers, so no need to keep it exported.

Also renamed to dixClientSignal(), since there's a conflicting prototype
in fontsproto.h.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
77e873d052 dix: unexport and document ClientSleep()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
ff0618e603 dix: unexport and document MarkClientException()
Not supposed to be used by external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
cb3bf7ce6e dix: unexport and document NextAvailableClient()
Only called from OS layer, thus should not be exported at all.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
3befe1d7b2 include: drop obsolete dixevents.h
The include has become empty now. Not used by any external drivers,
so it can be dropped now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
8b79b34ae2 dix: unexport and document EventSuppressForWindow()
Not used by any external drivers, and not supposed to be used by them,
so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
000821a7bd dix: unexport and document EventSelectForWindow()
Not used by any external drivers, and not supposed to be used by them,
so no need to keep it in public API.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
59bb7de096 dix: XineramaTryClientEventsResult() change return type to Bool
Callers are only interested in whether event was actually sent
(retval==1) or not, so Bool is sufficient and easier.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:30 +02:00
Enrico Weigelt, metux IT consult
aba8c24732 dix: MaybeDeliverEventToClient(): change return type to Bool
Callers are only interesed in whether event was actually sent
(retval==1) or not, so Bool is suffient and easier.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-26 19:56:27 +02:00
Enrico Weigelt, metux IT consult
9981236f58 dix: MaybeDeliverEventToClient() drop count parameter
It's always called with just a single event, so no need for the count
parameter. Also renaming it in order to better fit it's new semantics.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-23 20:41:23 +02:00
Enrico Weigelt, metux IT consult
025c9b50c8 dix: unexport and document MaybeDeliverEventsToClient()
Not used by any external drivers, and only supposed to be DIX internal,
so shouldn't be exported at all.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-23 20:41:04 +02:00
Enrico Weigelt, metux IT consult
5867378c29 dix: unexport, rename and document GetSpriteCursor()
* not used by any external drivers, so no need to keep it exported
* choose better fitting name: InputDevGetSpriteCursor()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-23 20:40:55 +02:00
Enrico Weigelt, metux IT consult
0ff73b41ef dix: unexport and document SetCriticalEvent()
Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-23 20:36:02 +02:00
Enrico Weigelt, metux IT consult
b7ed2a964d dix: unexport events related request handlers
Request handlers aren't supposed to be called by external drivers directly,
so no need to keep them in the public SDK API.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-23 20:36:02 +02:00
Enrico Weigelt, metux IT consult
77ac98684c (!2006) sdk: add generic X return code
This type is should be used instead of plain int for all functions
returning and X error code (that's possibly sent to the client),
in order to make return value semantics clear to the humen reader.
(for the compiler, it still will be just an int)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-23 20:36:02 +02:00
Enrico Weigelt, metux IT consult
7567b7a530 (!2005) sdk: add _X_ATTRIBUTE_NONNULL_ARGS() macro
Adding a macro for specifying nonnull attributes, for easier future
transition to new C23 attributes or supporting strange compilers that
don't understand this attribute.

The purpose of using those attributes is aiding compiler warnings and
potential optimizations.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-23 20:36:02 +02:00