Enrico Weigelt, metux IT consult
feea24f2bc
randr: unexport and document RROutputDeleteUserMode()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
670dce82c9
randr: unexport and document RROutputAddUserMode()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
89a4eaad73
randr: unexport and document RRModeInitErrorValue()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
6649392662
randr: unexport and document RRModeInit()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
21b0a81e82
randr: unexport and document RRModesForScreen()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
24cf645e3e
randr: unexport and document RROutputIsLeased()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
306c136563
randr: unexport and document RRCrtcIsLeased()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
68e946afb0
randr: unexport and document RRLeaseFree()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
57c19389c0
randr: unexport and document RRLeaseTerminated()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
0c6d8e1227
randr: unexport and document RRClientKnowsRates()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
d73997dd23
randr: unexport and document RRHasScanoutPixmap()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
5eaa31020b
randr: unexport and document RRReplaceScanoutPixmap()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
b1edfdc57a
randr: unexport and document RRCrtcDetachScanoutPixmap()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
6d56c0c5cd
randr: unexport and document RRCrtcInitErrorValue()
...
Not supposed to be called by drivers, just internal to the randr extsnsion,
so shouldn't have been exported in the first place.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
7db0e6796c
randr: unexport and document RRCrtcInit()
...
Not supposed to be called by any driver, just internal to the extension,
so shouldn't have been exported in the first place.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
bf242cf605
randr: unexport and document RRCrtcDestroy()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
04a4562508
randr: unexport and document RRCrtcGetTransform()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
64e02013c4
randr: unexport and document RRCrtcGetScanoutSize()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
739cd6ec03
randr: unexport and document RRDeliverCrtcEvent()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
7d47d48bda
randr: unexport and document RRCrtcSetTransformSupport()
...
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-19 12:28:55 +02:00
Enrico Weigelt, metux IT consult
6485f1cab6
randr: unexport and document RRCrtcExists()
...
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-19 12:28:52 +02:00
Enrico Weigelt, metux IT consult
59cdfcc375
randr: unexport and document RRVerticalRefresh()
...
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-19 11:55:25 +02:00
Enrico Weigelt, metux IT consult
6fba494ec0
randr: unexport and document RROutputSetNonDesktop()
...
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-19 11:55:21 +02:00
Enrico Weigelt, metux IT consult
d51688448b
randr: unexport and document RRFirstEnabledCrtc()
...
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-19 11:55:16 +02:00
Enrico Weigelt, metux IT consult
27746d6b8b
randr: unexport and document RRInit()
...
Not called, and should not be called, by drivers, so no need to
keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:55:04 +02:00
Enrico Weigelt, metux IT consult
f768720b9d
randr: unexport and document RRResourcesChanged()
...
Not used by external drivers, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:54:59 +02:00
Enrico Weigelt, metux IT consult
120382506b
randr: unexport and document RRDeliverScreenEvent()
...
Not used by external drivers, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
fe220534d6
randr: move remaining dispatch prototypes to rrdispatch.h
...
Since we now have a separate header for them, move them all over to there.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
2aa80dd31e
randr: unexport provider related request handlers
...
Those aren't used by any drivers and never should so, thus no need to
keep them exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
70e4bd8111
randr: unexport output related request handlers
...
Those aren't used by any drivers and never should so, thus no need to
keep them exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
4e6cc3073c
randr: unexport mode related request handlers
...
Those aren't used by any drivers and never should so, thus no need to
keep them exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
2671931960
randr: unexport crtc related request handlers
...
Those aren't used by any drivers and never should so, thus no need to
keep them exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
2579bf6ec0
randr: unexport screen related request handlers
...
Those aren't used by any drivers and never should so, thus no need to
keep them exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
b6e5e1167d
randr: make RRCrtcTransformSet() static
...
Only used locally inside rrcrtc.c, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
c91600ae9b
randr: make RRCrtcPendingTransform() static
...
only used locally inside rrcrtc.c, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
dc77156e84
randr: make RRCrtcGammaGet() static
...
Only used locally inside rrcrtc.c, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
49048ceb5c
randr: make RRCrtcChanged() static
...
Only used locally inside rrcrtc.c, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
d3cfc67a6d
randr: drop obsolete RRTransformFini()
...
Not used anywhere, so no need to keep it around any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
2dee9fb854
randr: drop obsolete RRPostProviderPendingProperties()
...
Not used anywhere, so no need to keep it around any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
9e2d82412d
randr: drop obsolete RRDeleteAllProviderProperties()
...
Not used by anybody, so no need to keep it around any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
be0a65e848
randr: drop obsolete RRProviderLookup()
...
Not used anywhere, so no need to keep it around any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:43 +02:00
Enrico Weigelt, metux IT consult
0a839a18f9
randr: drop unused RRPointerMoved()
...
Not used anywhere, so no need to keep it any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:42 +02:00
Enrico Weigelt, metux IT consult
9bc4a0af89
randr: drop unused dummy RRCrtcGammaNotify()
...
Not called by anybody and been just a dummy for quite a while,
so no need to keep it around any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:42 +02:00
Enrico Weigelt, metux IT consult
4315cce063
randr: drop obsolete RRGetRotation()
...
Not used anymore, so no need to keep it around anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-19 11:45:42 +02:00
Enrico Weigelt, metux IT consult
73f3c47608
randr: fix unconditional byte-swap in ProcRRGetProviderInfo()
...
The list of the associated provider's capabilities was always swapped
unconditionally, while it should only be in case of client having
opposite endianess.
Fixes: 426bc0a28e
Reported-By: dasha_uwu
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1977 >
2025-05-18 23:42:19 +00:00
Enrico Weigelt, metux IT consult
f0fd9f8bf4
dix: fix warning on redefinition of typedefs
...
| ../dix/input_priv.h:56:29: warning: redefinition of typedef 'InputOption' is a C11 feature [-Wtypedef-redefinition]
| 56 | typedef struct _InputOption InputOption;
| | ^
| ../include/input.h:255:29: note: previous definition is here
| 255 | typedef struct _InputOption InputOption;
| | ^
| In file included from ../hw/xfree86/common/xf86Cursor.c:36:
| ../dix/input_priv.h:57:25: warning: redefinition of typedef 'XI2Mask' is a C11 feature [-Wtypedef-redefinition]
| 57 | typedef struct _XI2Mask XI2Mask;
| | ^
| ../include/input.h:256:25: note: previous definition is here
| 256 | typedef struct _XI2Mask XI2Mask;
| | ^
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1978 >
2025-05-18 17:35:31 +00:00
Olivier Fourdan
b97b459c06
xwayland: Update sprite prior to clearing the focus window
...
Xwayland has its own XYToWindow() handler to account for the case when
the pointer leaves an X11 surface to enter another Wayland native window
(which of course are unknown to Xwayland).
When that occurs, Xwayland will treat it as if the pointer had entered
the root window so that the X11 clients receive an appropriate leave
event.
When the pointer leaves the X11 surface, Xwayland will call
CheckMotion() to update the sprite coordinates and possibly the cursor.
However, CheckMotion() will call back into the XYToWindow() handler,
which will then pretend the window has entered the root window, and that
may cause the wrong cursor to be applied.
To avoid the issue, change the order we do things, by calling
CheckMotion() first prior to clear up the internal focus window so that
the first call to XYToWindow() will return the correct X11 window so we
get to update the cursor correctly.
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1811
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1915 >
2025-05-16 10:02:53 +00:00
Alan Coopersmith
37b7ea8f8a
render: miindex.c does not need header guard macros
...
Clears warning from clang 19.1.7:
render/miindex.c:27:9: warning: macro is not used [-Wunused-macros]
27 | #define _MIINDEX_H_
| ^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1910 >
2025-04-19 17:02:16 +00:00
Alan Coopersmith
f988558348
os: remove unused definition of BUGADDRESS
...
We stopped including this in error messages back in 2008
Clears warning from clang 19.1.7:
os/utils.c:1338:9: warning: macro is not used [-Wunused-macros]
1338 | #define BUGADDRESS BUILDERADDR
| ^
Fixes: ef77e4c44
("Remove useless commentary from environment and argument processing.")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1910 >
2025-04-19 17:02:16 +00:00
Alan Coopersmith
d1cc5a599f
test: remove extra return
...
Clears warning from clang 19.1.7:
test/misc.c:239:12: warning: 'return' will never be executed
[-Wunreachable-code-return]
239 | return 0;
Fixes: 46b579e8d
("test: switch the unit tests to something resembling a test suite")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1910 >
2025-04-19 17:02:15 +00:00