Commit graph

14 commits

Author SHA1 Message Date
Alan Coopersmith
f717637569 Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`

`git diff -w` & `git diff -b` show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/99>
2025-08-02 14:39:03 -07:00
Demi Marie Obenour
6b1012c29c Allow client to force server to terminate if it exits
This is intended to be used by screen lockers, where the server must
exit if the screen locker does, to avoid a security hole.  As suggested
by Alan Coopersmith, this is implemented using a new flag for the
disconnect mode of the XFixes extension.  Includes wording suggestions
from Peter Hutterer.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
2023-06-01 11:34:37 -04: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
Alan Coopersmith
09602b2130 Fix spelling/wording issues
Found by using:
  codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-08-08 10:33:56 -07:00
Peter Harris
d6d910b74a cursor-name is after cursor-image in GetCursorImageAndName
Signed-off-by: Peter Harris <pharris@opentext.com>
2015-09-22 08:36:20 -04:00
Owen W. Taylor
e4ba4e04b8 HideCursor/ShowCursor: Fix the interpretation of the window argument
In the implementation of HideCursor/ShowCursor in the xserver code,
the window passed in only identifies a screen, not a portion of the
window tree, and it's been that way since the beginning. Changing
the implementation at this point would likely break existing code,
and the main usage of this protocol (magnifiers) only needs the
global behavior, so change the protocol to document the actual
behavior.

Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
2015-04-08 14:20:11 -04:00
Peter Hutterer
b6c6bc2aa4 CreatePointerBarrier takes a window, not a drawable
Technically this is a change in the protocol, but we've never supported
anything but a Window.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-02-11 09:59:28 +10:00
Adam Jackson
9760b4bdd1 fixesproto v5: Pointer barriers
v3: Review fixes:
- INT16 not CARD16 for coordinates
- BadDevice not BadMatch

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-02-09 18:06:51 -05:00
Peter Hutterer
5092125232 Document behaviour of CursorNotifies with XI2 servers.
CursorNotifies are only sent for the ClientPointer to avoid confusion in the
client.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-03 10:58:43 +10:00
Peter Hutterer
beebe5339e Hide/ShowCursor works on all master pointers in XI2.
Servers supporting XI2 will hide all cursors when a client requests
HideCursor. This is arguably closest to the original intent of the request -
to not display a cursor above the given window.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-03 10:58:43 +10:00
Keith Packard
196061a586 ChangeSaveSet with map=Unmap means 'unmap', not 'don't remap'
The semantics in the spec were conflicting, and the implementation did the
'don't remap' version which was not useful. The server implementation has
been fixed, this change clarifies the specification to match that design.
2008-09-22 12:44:13 -07:00
Alan Coopersmith
6415267d65 Typo fixes in XFixes protocol spec 2007-01-09 10:45:51 -08:00
Alan Coopersmith
2e9a7b2004 Update XFixes protocol spec to match XFixes 4.0
Add ExpandRegion, HideCursor & ShowCursor requests
Correct description of version numbering to match XFixes conventions
2007-01-09 10:45:02 -08:00
Eric Anholt
0afb1fdaa1 Move fixes protocol description to the new canonical location/name. 2007-01-09 09:43:50 -08:00
Renamed from protocol (Browse further)