Commit Graph

49 Commits

Author SHA1 Message Date
gingerBill
80a21a01cc Merge pull request #6687 from MightyChubz/xlib-signature-changes
Additional Xlib binding changes
2026-05-15 12:40:17 +01:00
Alexander Cusaac (MightyChubz)
6888cca982 refactor: Change bit_set type for SizeHints to int
This doesn't really change actual behavior, but to stay accurate to the internal logic of X11, this would be a regular long for the flags, not an unsigned long.
2026-05-13 18:07:57 -04:00
gingerBill
7c2588b101 Fix formatting to keep -vet happy 2026-05-13 14:05:20 +01:00
Alexander Cusaac (MightyChubz)
310d27ff19 fix: Change discard from bool to b32 in Sync 2026-05-13 02:13:46 -04:00
Alexander Cusaac (MightyChubz)
53dd8075b1 refactor: Clean signature for GetWindowProperty 2026-05-13 02:13:15 -04:00
Alexander Cusaac (MightyChubz)
e294f3f1e1 feat: Add atom constants for XA_CARDINAL and XA_INTEGER
XA_CARDINAL is used in particular for frame extents.
2026-05-13 02:11:58 -04:00
Alexander Cusaac (MightyChubz)
a1a201b4ff typo
oops
2026-05-13 00:51:40 -04:00
Alexander Cusaac (MightyChubz)
844f813ab6 refactor: Add returns to all window mapping/unmapping functions
These do return a `b32` value on return, true for success and false for
failure. They should be here since these can fail.
2026-05-13 00:51:31 -04:00
ddenizozgur
4de05d4b49 vendor/x11: fix missing only_if_exists parameter in XInternAtoms 2026-05-13 04:08:05 +03:00
Alexander Cusaac (MightyChubz)
202a4f19ca refactor: Change return type for IconifyWindow
This one is a little tricky. While the docs show that XIconifyWIndow
returns a Status type, hinting at the Status enum we have, it is not
*treated* like a Status type. This function, so far in my experience, is
the only one to return non-zero when successful, and zero when a failure
occurrs (BadValue or BadWindow). Because of this, the type should
actually be a b32 to act as a boolean. Zero (false) for failure,
non-zero (true) for true.
2026-05-11 20:55:33 -04:00
Alexander Cusaac (MightyChubz)
3b909eab03 fix: Add missing parameter to TranslateCoordinates
This adds the missing child_return parameter to TranslateCoordinates to
fix random segfaults occurring when calling it. This function in the man
pages for X11 list a child_return parameter, so I added it as part of
the signature. After running 20 tests calling to this function, all
passed without failing, compared to before where it crashed roughly ~60%
of the time on my system.
2026-05-11 20:52:52 -04:00
Bruno
e65dcd64b8 add bindings to allow custom cursors 2026-02-27 09:54:26 -03:00
Nahuel2998
7ef562b51e vendor/x11/xlib: Fix signature of XChangeWindowAttributes
Actually fixes #5139
2026-02-04 17:29:10 -03:00
Nahuel2998
37e82c9387 vendor/x11/xlib: Fix returntype of some procs
Returntype of a few procs was incorrectly set to i32 rather than a proc
that returns i32.
2026-02-03 17:17:33 -03:00
gingerBill
70059b0fba Merge pull request #6141 from magicalhacks/x11-fixes
Minor x11/xlib bindings fixes (KeySym + Xutf8LookupString)
2026-01-29 14:00:22 +00:00
wpcasarin
d838065d32 vendor/x11/xlib: Fix XSetWindowBackgroundPixmap binding name
Changed SetWindowBackgroundMap to SetWindowBackgroundPixmap to match
the actual X11 C function name. The incorrect name caused linker errors.
2026-01-18 23:28:52 -03:00
magicalhack
59d08f3a57 Minor x11/xlib bindings fixes
- Fix Xutf8LookupString signature (^cstring -> cstring)
- Fix type of KeySym (u32 -> uint)
2026-01-17 13:14:28 -05:00
Laytan
2f6f24d839 Merge pull request #5800 from IllusionMan1212/xlib-IM
vendor/xlib: a few more IM-related procedures and constants
2025-11-23 21:07:20 +01:00
IllusionMan1212
e4ccfd6e58 vendor/xlib: a few more IM-related procedures and constants 2025-10-12 23:49:33 +02:00
Jeroen van Rijn
998fbdc5c0 Doc lines for vendor:* 2025-10-10 17:51:28 +02:00
Wesley Kerfoot
a9e9e88f06 add missing xlib functions for getting and setting text properties 2025-08-03 11:34:54 -04:00
Jeroen van Rijn
e3fe733a55 Fix #5139 2025-05-09 19:45:46 +02:00
gingerBill
511c186297 Fix typo 2025-04-03 10:23:35 +01:00
gingerBill
5be052f288 Fix #4995 2025-04-03 10:20:08 +01:00
dogue
87db5f2df4 xlib: add proc binding for SetWindowBorder 2025-03-23 22:09:42 -04:00
fleandro
25cdc3736e vendor:x11/xlib add IS_SUPPORTED constant to match core:time and friends 2025-01-05 17:50:52 +00:00
Karl Zylinski
19f0127e55 Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax. 2024-09-14 18:27:49 +02:00
gingerBill
eb799393d5 Fix -vet-tabs issues 2024-08-24 13:56:41 +01:00
IllusionMan1212
554b0e5bf7 vendor/x11: added a few procedures for xrandr, xinput, and xfixes 2024-08-10 12:06:52 +02:00
flysand7
15997d2a90 [vendor/x11]: Fix missing argument in XDefaultDepth, wrong types in CreateSimpleWindow 2024-07-20 12:47:00 +11:00
IllusionMan1212
0c27d95679 vendor/x11: some XKB extension procedures and constants 2024-07-08 21:00:19 +02:00
Laytan Laats
108b8feb35 Add vendor:wgpu 2024-06-12 17:22:02 +02:00
Colin Davidson
70592630a4 add support for title changes, cursor config, and dnd 2024-06-06 02:39:48 -07:00
Colin Davidson
52ba3357ee oops, missed shuffling a few x-funcs 2024-06-04 04:48:24 -07:00
Colin Davidson
e46e22e21b add a few more x11 funcs, fix egl bug 2024-06-04 01:12:10 -07:00
gingerBill
d06575dd49 Merge pull request #3149 from IllusionMan1212/missing-x11-funcs
vendor/x11: added XQueryExtension, XGetEventData, and XFreeEventData
2024-03-09 16:53:11 +00:00
IllusionMan1212
301b9eef31 vendor/x11: added XQueryExtension, XGetEventData, and XFreeEventData 2024-01-29 06:22:33 +02:00
IllusionMan1212
36ed8fe55d vendor/x11: change display to be a ^Display in XGenericEventCookie struct 2024-01-29 05:54:14 +02:00
flysand7
f169d8c396 [x11/xlib]: Fix some foreign declarations 2023-12-01 12:00:45 +11:00
flysand7
2cb5cc774d [vendor/x11]: Add build guards for other xlib files 2023-11-13 19:51:35 +11:00
flysand7
5f7843a13d [vendor/x11]: Correct system import for linux 2023-11-13 19:49:23 +11:00
flysand7
1b770fc3b2 [vendor/x11]: Correction on XPutImage definition 2023-11-13 19:45:26 +11:00
flysand7
79d3c3be66 [vendor/x11]: Add xlib utility functions, make compileable with -strict-style 2023-11-13 19:40:06 +11:00
flysand7
55d42492ac [vendor/x11]: Add some client to window management communication functions 2023-11-13 11:59:36 +11:00
flysand7
1db95aa09d [vendor/x11]: Fix XDefaultScreen 2023-11-12 21:30:45 +11:00
flysand7
c0bbe1e23d [vendor/x11]: Add a special type for mouse events 2023-11-12 21:09:41 +11:00
flysand7
9e35361eb8 [vendor/x11]: Fix definition for EventType 2023-11-12 20:59:07 +11:00
flysand7
cce42f4a6b [vendor/x11]: Fix XOpenDisplay 2023-11-12 20:48:32 +11:00
flysand7
e67473d89a [vendor/x11]: Add most of the basic xlib bindings 2023-11-11 20:20:40 +11:00