Commit graph

2713 commits

Author SHA1 Message Date
Peter Hutterer
8c8bbb9034 xorgproto 2022.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-04-21 10:42:50 +10:00
Peter Hutterer
a839f0c7fc XF86keysyms.h: add new keycodes from kernel v5.17
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-03-25 14:46:40 +10:00
Peter Hutterer
914d8f5e0f XF86keysyms.h: add new keycodes from kernel v5.13
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-11-09 10:16:09 +10:00
Povilas Kanapickas
57acac1d4c xorgproto 2021.5
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-09-15 18:55:35 +03:00
Povilas Kanapickas
d9518ce279 specs: Specify XI 2.4 as released
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-09-15 18:55:34 +03:00
Alex Richardson
a0ed054ee2 Define LONG64 if __SIZEOF_LONG__ indicates 64-bit long
All modern compilers (GCC>=4.6, Clang>=3.0) define this macro, so we can
use it to detect 64-bit longs without adding to the architecture list.

This change allows me to successfully run a simple X11 window on a
64-bit FreeBSD RISC-V QEMU VM via SSH forwarding. Without this change
I get an error that DISPLAY cannot be opened.

Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
2021-06-15 14:25:01 +01:00
Povilas Kanapickas
9cd746bd0d xorgproto-2021.4.99.2
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-05-30 12:47:29 +03:00
Povilas Kanapickas
4aefa5917f Bump inputproto to 2.3.99.2 2021-05-30 12:41:01 +03:00
Povilas Kanapickas
b492f7c932 specs: Fix type of GESTURECLASS num_touches member
This was a copy-paste error from TOUCHCLASS. The protocol structs use
uint8_t for num_touches.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-05-17 14:53:26 +03:00
Povilas Kanapickas
b67e10871e specs: Fix type of TOUCHCLASS num_touches member
The actual protocol structs use uint8_t.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-05-17 14:53:25 +03:00
Povilas Kanapickas
1fe571bae9 Bump inputproto to 2.3.99.1
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-05-15 22:59:40 +03:00
Povilas Kanapickas
4c3242b00d specs: Specify XI 2.4 as unreleased
TODO, while useful for grepping, does not actually mean anything, so
completely useless.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-05-15 22:59:39 +03:00
Povilas Kanapickas
7a9b831c60 xorgproto-2021.4.99.1
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-05-15 20:12:54 +03:00
Povilas Kanapickas
2498b13d92 specs: Add support for gesture events as XI 2.4
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-05-11 01:45:36 +03:00
Povilas Kanapickas
d74ffaed91 include: Add support for XI 2.4 gesture input events
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2021-05-11 01:45:27 +03:00
Peter Hutterer
eec0adee25 xorgproto 2021.4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-04-30 09:34:12 +10:00
Peter Hutterer
34b8a46e64 gitlab CI: check that the autotools and meson versions are in sync
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-04-30 09:31:12 +10:00
Olivier Fourdan
b6bc35b845 xfixes: Add ClientDisconnectMode
The Xserver itself is capable of terminating itself once all X11 clients
are gone, yet in a typical full session, there are a number of X11
clients running continuously (e.g. the Xsettings daemon, IBus, etc.).

Those always-running clients will prevent the Xserver from terminating,
because the actual number of X11 clients will never drop to 0.

To solve this issue directly at the Xserver level, this add new entries
to the XFixes extension to let the X11 clients themselves specify the
disconnect mode they expect.

Typically, those X11 daemon clients would specify the disconnect mode
XFixesClientDisconnectFlagTerminate to let the Xserver know that they
should not be accounted for when checking the remaining clients prior
to terminate.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
2021-04-29 05:48:29 +00:00
Peter Hutterer
559141495b scripts: exit with 77 if python-libevdev is missing
This way we pass make check/ninja test even where the module is not available

See https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/31#note_879823

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-04-16 09:32:15 +10:00
Pierre Le Marre
25f3278b85
Deprecate XK_approxeq and XK_notapproxeq.
Fixes #20
2021-03-11 21:18:38 +01:00
Peter Hutterer
86ffbbc295 gitlab CI: add a job to compare meson and autotools standard installs
Build and install with meson, build and install with autotools and then run
diff to compare the two directory trees. They should be the same.

This does not install the legacy protocols, they're behind a configure switch.
The spec-build is disabled in autotools because we know meson doesn't do that
yet, so no point in comparing those.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-03-10 09:44:43 +00:00
Peter Hutterer
8f6a67d314 meson.build: install the protocol .txt files in doc
This now matches the autotools installation

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-03-10 09:41:59 +00:00
Peter Hutterer
a657dd0b45 meson.build: use built-in variable substitution handling instead of sed
Generated outputs are identical

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-03-10 09:41:59 +00:00
Peter Hutterer
242578ac6e Integrate the keysym verifier into make check
autotools can't pass arguments, so let's default to 'verify' in the script
itself and for distcheck to succeed, we need to set an environment variable to
search for the header (it's an out-of-tree build).

And due to the very faint chance of there being no python during the
xorgproto build, let's make that conditional too.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-03-10 09:39:44 +00:00
Peter Hutterer
388aa4870a Makefile.am: move the man page rules to the top
More readable grouping this way

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-03-10 09:20:42 +00:00
Peter Hutterer
343dc74e52 Makefile.am: reorder the protocols to group by default and LEGACY
An alphabetically ordered list is nice, but it's harder to figure out
based on a diff whether a commit affects the legacy protocols or not.
Let's group those separately, first the normal protocol files, then all the
legacy-only ones.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-03-10 09:20:42 +00:00
Hannah Rittich
4901f35cac Corrected comments in keysymdef.h. 2021-03-01 21:20:24 +00:00
Peter Hutterer
5d37740f4a xorgproto-2021.3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-25 11:19:24 +10:00
Peter Hutterer
24e4a847a9 gitlab CI: add a job to build with meson from the autotools tarball
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-24 15:48:13 +10:00
Peter Hutterer
7b6836f0d5 autotools: add the keysym-generator script to EXTRA_DIST
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-24 15:27:55 +10:00
Peter Hutterer
2bce6cefea xorgproto 2021.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-24 14:39:14 +10:00
Peter Hutterer
0fef97c1e2 configure.ac: remove trailing whitespaces
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-24 14:39:14 +10:00
Peter Hutterer
882505e818 gitlab CI: add an autotools distcheck job
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-24 14:31:20 +10:00
Peter Hutterer
e5d8af9711 scripts: make sure all "Use: XK_Foo" comments point to existing symbols
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-17 10:54:14 +10:00
Peter Hutterer
ff19ac58e1 scripts: use a named pattern for the hexcode check in comments
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-17 10:18:19 +10:00
Peter Hutterer
08549dc858 XF86keysym.h: fix a few references to invalid keys
No change to the header, comments only.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-17 10:17:54 +10:00
Peter Hutterer
ea9cf61a10 XF86keysyms.h: add some keycodes from kernels 2.6.11 and earlier
These keysyms were already present in 2.6.11 which is the first tag in git.

A few notes on specific keys here:
- KEY_EJECTCLOSECD is theoretically different to XF86XK_Eject (kernel
  KEY_EJECTCD) but the actual usage in the hwdb remappings seems to be
  random. Either way it's already mapped to XF86XK_Eject in
  symbols/inet so let's just add an entry for the sake of documenting it.
- XF86XK_CycleAngle seems like the best match for KEY_ANGLE

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
577a56840b XF86keysyms.h: add comments for some keycodes from 2.6.1x kernels
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
941d3952d3 XF86keysyms.h: add some keycodes from 2.6.2x kernels
A few notes on specific keys here:
- Some existing keysyms used some brand names. e.g. KEY_WORDPROCESSOR ->
  existing XF86XK_Word. This introduces some minor inconsistency with
  unbranded new keys like KEY_GRAPHICSEDITOR -> XF86XK_GraphicsEditor.
- XF86XK_DisplayToggle is *not* XF86XK_Display (which represents
  KEY_SWITCHVIDEOMODE)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
7f20931985 XF86keysyms.h: add some keycodes from 2.6.3x kernels
A few notes on specific keys here:
- There are exiting XF86XK_ZoomIn/Out keys, but they don't seem appropriate
  for KEY_CAMERA_ZOOMIN and friends. New symbols are introduced here.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
c52d104fdc XF86keysyms.h: add comment for new keycodes from kernel v3.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
5ffc4c4baa XF86keysyms.h: add new keycodes from kernel v3.10
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
0519088bc6 XF86keysyms.h: add new keycodes from kernel v3.13
ALSToggle has a terrible name, it's the Ambient Light Sensor. But it matches
the kernel define so...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
7dbe7b7a36 XF86keysyms.h: add new keycodes from kernel v3.16
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
ef0e6b8e21 XF86keysyms.h: add new keycodes from kernel v3.18
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
caca9d41b2 XF86keysyms.h: add new keycodes from kernel v4.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
0f8b4d48b9 XF86keysyms.h: add new keycodes from kernel v4.7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
9b54c3c539 XF86keysyms.h: add new keycodes from kernel v4.12
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
58f5208d87 XF86keysyms.h: add new keycodes from kernel v4.13
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00
Peter Hutterer
8ad9743ccd XF86keysyms.h: add comment for new keycodes from kernel v4.16
This keysym is already available under a different name, see
000ebed576

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-08 14:52:02 +10:00