summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-08XF86keysyms.h: add new keycodes from kernel v5.10Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08XF86keysym.h: reserve a range for Linux kernel keysymsPeter Hutterer
The Linux kernel adds a few evdev keycodes roughly every other release. These aren't available as keysyms through XKB until they have been added as keycode in xkeyboard-config and mapped there to a newly defined keysym in the X11 proto headers. In the past, this was done manually, a suitable keysym was picked at random and the mapping updated accordingly. This doesn't scale very well and, given we have a large reserved range for XF86 keysyms anyway, can be done easier. Let's reserve the range 0x10081XXX range for a 1:1 mapping of Linux kernel codes. That's 4095 values, the kernel currently uses only 767 anyway. The lower 3 bytes of keysyms within that range have to match the kernel value to make them easy to add and search for. Nothing in X must care about the actual keysym value anyway. Since we expect this to be parsed by other scripts for automatic updating, the format of those #defines is quite strict. Add a script to generate keycodes as well as verify that the existing ones match the current expected format. The script is integrated into the CI and meson test, so we will fail if an update breaks the expectations. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-21gitlab CI: add a basic build testPeter Hutterer
Build an Arch image that tests a meson build with all build options we support (well, the single one so far). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-18Remove misleading comment about not adding syms to XF86keysym.hPeter Hutterer
We've been adding to those over the last few years. Not a huge amount but enough that we should stop pretending we don't touch that header. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-10-10XKB: Mark key name arrays as not NUL-terminated stringsAlan Coopersmith
They are fixed length (4 characters), and don't need NUL-terminators. This makes gcc stop warning when they're not NUL-terminated, and instead warn if they are passed to functions expecting NUL-terminated strings. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2020-10-10Xfuncproto: define _X_NONSTRING for __attribute__((nonstring))Alan Coopersmith
Bumps xproto version to 7.0.33 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2020-08-24meson: Use configure_file for pc files.orbea
Meson's pkg.generate() is not suitable for header only libraries and using configure_file() allows for more fine tuned control. This also makes the meson and autotools builds more in sync where they both use the same .pc.in files. v2: Drop exec_prefix.
2020-08-24pkgconfig: Drop exec_prefix from the .pc.in files.orbea
This is not used by xorg-devel which contains only headers.
2020-08-18specs: Make links between XI2 enum and event names explicitPovilas Kanapickas
2020-08-18specs: Improve description of detail field in XIPassiveGrabDevicePovilas Kanapickas
2020-08-18specs: Improve description of detail field in DeviceEventPovilas Kanapickas
2020-08-18specs: Fix example of touch event processingPovilas Kanapickas
2020-08-18specs: Use non-hyphenated spelling of nonzeroPovilas Kanapickas
2020-08-18specs: Improve consistency of grammar in a listPovilas Kanapickas
2020-08-18specs: Only key code can be grabbed, not key symbolPovilas Kanapickas
2020-08-18specs: Fix incorrect wording for ignored parameterPovilas Kanapickas
2020-08-18specs: Fix grammar (duplicate word)Povilas Kanapickas
2020-08-08Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-07-07keysymdef: Fix left/rightanglebracket Unicode equivalentSamuel Thibault
As of version 7.7, the X protocol does not define a Unicode equivalent for them. The U+27E8 and U+27E9 equivalents were introduced by 618956f1f ("The big keysym cleanup, to bring implementation in line with the recent revision of Appendix A of the protocol spec."), but as xterm Patch #226 explicitly notes, U+2329 and U+232A should be used rather than U+27E8 and U+27E9. Gtk also inherited this. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2020-07-07keysymdef.h: Fix the documented perl regexpSamuel Thibault
+ is interpreted when not escaped. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2020-07-07keysymdef: Add Hangul unicode equivalentsSamuel Thibault
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2020-07-07keysymdef: Add vietnamese dead accentsSamuel Thibault
These are used in the vn layout. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2020-04-14xorgproto 2020.1xorgproto-2020.1Adam Jackson
Fixes: xorgproto#28 Signed-off-by: Adam Jackson <ajax@redhat.com>
2020-04-14automake: Fix install and dist for the new markdown docsAdam Jackson
2020-04-14Revert "xorgproto 2020.1"Adam Jackson
Fails distcheck. This reverts commit 032a3a16cd6c283fc596c6410c59665cfa1c6cab.
2020-04-06xorgproto 2020.1Adam Jackson
Fixes: xorgproto#28 Signed-off-by: Adam Jackson <ajax@redhat.com>
2020-03-26Replaces text formatted protocol documentation with MarkdownAshok Arora
Protocol documentation under /specs/SIAddresses has been formatted with Markdown. Signed-off-by: Ashok Arora <arora8715@gmail.com>
2020-03-09XF86keysym: Add XF86XK_FullScreenSebastian Wick
Add XF86XK_FullScreen keysym, to be used as mapping for evdev's KEY_FULL_SCREEN. Chromebooks have a special media key for toggling full screen mode. Signed-off-by: Sebastian Wick <sebastian@sebastianwick.net>
2020-02-26Add DPMSInfoNotify eventAlexander Volkov
This will allow applications to respond to changes of power level of a monitor, e.g. an application may stop rendering and related calculations when the monitor is off. Bump DPMS version to 1.2, install dpmsproto.pc. Signed-off-by: Alexander Volkov <a.volkov@rusbitech.ru>
2020-02-25meson: mark more extensions as legacyRoss Burton
The Meson and Autotools builds disagree about what extensions are legacy. This patch makes the Meson build identical to autotools. Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-10-17xorgproto 2019.2xorgproto-2019.2Adam Jackson
Closes: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues/21 Signed-off-by: Adam Jackson <ajax@redhat.com>
2019-10-08Move remaining xlib-entwined headers to LEGACYAdam Jackson
These headers refer to libX11 types and don't belong in this package. libX11 and libXv have been updated to supply these headers themselves now, so these are only useful for building older versions of those libraries. Fixes: xorg/proto/xorgproto#10
2019-07-22Move windowswmproto to legacyJon Turney
2019-06-20xorgproto 2019.1xorgproto-2019.1Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-05-08Update Xalloca.h to reduce compiler warnings:Thomas E. Dickey
The parameter for alloca() was "int" for the (long-obsolete) SunOS 4. In Solaris and anything newer than the early 1990s, it is "size_t". Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2019-03-12.gitignore more autotools artifactsJon Turney
.gitignore autotools artifacts removed in 95570b06
2019-03-01composite: Fix the documentation for the unredirection requestsAdam Jackson
We didn't document the 'update' parameter, which has to match what the client previously requested. Also, the server, client library, and protocol header call it UnredirectSubwindows, not UnredirectWindows. Fixes: xorg/proto/xorgproto#15
2019-02-23Restore generation of specs from docbook in autotools buildsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17Update URLs for protocol specs to use xorgproto repo nowAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17keysymdef.h: Update repo info in commentsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-11Combine *_EXTRA_DIST into EXTRA_DIST in Makefile.amAlan Coopersmith
automake only recognizes EXTRA_DIST - but it looked like it worked since the *.pc.in were included since they're listed in configure.ac, unless you tried building from the tarballs with --enable-legacy, and then it broke. Also adds --enable-legacy to the flags that "make distcheck" uses to configure, to catch problems like this. Fixes: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues/12 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-06Remove COPYING-panoramixprotoAdam Jackson
panoramixproto never had any real content, that was all in xineramaproto instead.
2019-01-30Remove RCS IdsMatthieu Herrb
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-01-25Fix comment for XK_OcaronPeter Hutterer
Reported by: Keve Müller Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-01-22XF86keysym: Add XF86XK_RotationLockToggleHans de Goede
Add XF86XK_RotationLockToggle keysym, to be used as mapping for evdev's KEY_ROTATE_LOCK_TOGGLE. I've a Point of View P1006W-232 Windows tablet which actually has a rotate-lock toggle-button. The latest kernel correctly generates KEY_ROTATE_LOCK_TOGGLE events for this. So now I'm hooking up support for it through all the higher layers. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jian-Hong Pan <jian-hong@endlessm.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-01-21XF86keysym: Add XF86XK_MonBrightnessCycleJian-Hong Pan
Add XF86XK_MonBrightnessCycle keysym, to be used as mapping for evdev's KEY_BRIGHTNESS_CYCLE keycode which is generated from ACPI video module's ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS on some Acer AIO desktop buttons. The button changes the screen's brightness on Windows. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=108861 Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-19Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-10Assorted typo fixes in headersAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-10Remove the use of no-op B16 & B32 bitfield macros in headersAlan Coopersmith
These have always done nothing on all platforms except CRAY. As https://bugs.freedesktop.org/show_bug.cgi?id=45202 points out we don't even detect when they've been wrong for decades. Performed via: find include -name '*.h' | grep -v md.h | xargs perl -i -p -e 's{\s+B\d+}{}g' followed by manual whitespace fixups to preserve visual alignment. The #defines for B16 & B32 are left in place to preserve compatibility in any code that used them outside the xorgproto repo. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Acked-by: Keith Packard <keithp@keithp.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>