mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 19:19:13 +00:00
The global (exported) serverGeneration field is `unsigned long`, while many other places copy it and compare it two other integer types, eg. plain `int` (which is signed). Even if it's unlikely ever reaching such high number of generations that it will ever make trouble, it's still a good idea to clean this up and use the same type everywhere. For clearity, introducing a typedef `x_server_generation_t` which is used everywhere, instead of raw `unsigned long`. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
The X server uses this directory to store the compiled version of the
current keymap and/or any scratch keymaps used by clients. The X server
or some other tool might destroy or replace the files in this directory,
so it is not a safe place to store compiled keymaps for long periods of
time. The default keymap for any server is usually stored in:
X<num>-default.xkm
where <num> is the display number of the server in question, which makes
it possible for several servers *on the same host* to share the same
directory.
Unless the X server is modified, sharing this directory between servers on
different hosts could cause problems.