summaryrefslogtreecommitdiff
path: root/Xext
AgeCommit message (Collapse)AuthorFilesLines
2009-04-24input: propagate XTst events through virtual slave devices.Benjamin Close1-2/+13
A XTest virtual slave device pair (kbd/ptr) exists for every master device pair. This is so XTest events are correctly propogated via slave devices up to Master devices and the classes are correctly changed along the way. We add the XTest slave device pair to the Virtual Core pointer and provide a simple way of creating the devices. A XTest Slave Device is identified by the XTstDevicePrivateKey property being set in the devices devProperties XI events are still propagated through the matching device, in the hope the client knows what it is doing. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-19Merge branch 'master' into xi2Peter Hutterer2-41/+73
2009-04-16security: Grant untrusted windows remove access on all windows.Eamon Walsh1-0/+5
This allows untrusted clients to destroy their own windows when they have been reparented by a trusted window manager.
2009-04-16security: Fix a crash caused by wrong ordering of format arguments.Eamon Walsh1-3/+4
2009-04-16security: Revert behavior of extension access for compatibility.Eamon Walsh1-14/+16
Previously, three extensions were defined as "trusted" by the extension: BIG-REQUESTS, XC-MISC, and XPrint. No other extensions were permitted to be used by untrusted clients. In commit 8b5d21cc1d1f4e9d20e5d5eca44cb1e60a419763 this was changed for some reason. Return to the old, compatible behavior.
2009-04-09xselinux: Don't BadAlloc in List* requests if there are no items to list.Eamon Walsh1-3/+3
2009-04-08xselinux: Don't require incoming context strings to be null-terminated.Eamon Walsh1-21/+45
2009-04-07Merge branch 'master' into xi2Peter Hutterer5-44/+23
2009-04-03Revert accidental Makefile change from previous commitAdam Jackson1-1/+1
2009-04-03DPMS: Re-export the various DPMS variables.Adam Jackson1-1/+1
The drivers might not need them but extmod does. Should move it to builtin though.
2009-04-03DPMS: Remove unused DPMSGet()Adam Jackson2-7/+0
2009-04-03DPMS: Code motion.Adam Jackson1-34/+8
2009-03-27selinux: Only activate if policy says to be an object managerAdam Jackson1-0/+4
2009-03-27Xext: set POINTER_SCREEN flag in XTestFakeInput if necessary. (RH #490984)Peter Hutterer1-3/+11
The POINTER_SCREEN flag must be set explicitly for XTest core events to avoid out-of-range events when the lastSlave was an SD with an explicit axis range. Device events sent through XTest don't need this flag, they are expected to be in the valuator range of the device anyway. Red Hat Bug 490984 <https://bugzilla.redhat.com/show_bug.cgi?id=490984> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-20Xext: remove ev_fill from GEExtensions.Peter Hutterer2-18/+4
2009-03-20Xext: purge XGE event masks.Peter Hutterer2-208/+0
The masks were originally designed to generically handle event masks for extensions. Since all that is in-server anyway, it's much better writing custom event masks for those extensions that need it and not providing a unified mechanism. XI2 needs more than the current implementation, which is already too complex for most other extensions. good riddance. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-16selinux: Add support for avc_acquire_netlink_fd()Adam Jackson1-0/+29
Requires libselinux 2.0.79 or newer. Without this, libselinux will check for policy updates on the netlink socket on basically every policy lookup. Statistically speaking, they never happen, and the check translates to at least one more syscall on basically every operation. Instead, take control of the fd from the library, and check it in WakeupHandler if it polls readable.
2009-03-09Replace dixLookupResource by dixLookupResourceBy{Type,Class}Keith Packard6-12/+12
dixLookupResource attempted to automatically detect whether the caller wanted a lookup by-type or by-class, unfortunately, it guessed wrong for RT_NONE. Instead of trying to make the guess better, this patch just reverts the unification and creates separate functions for each operation.
2009-03-03Fix 2 const warnings.Eamon Walsh1-1/+2
2009-03-03This patch changes all places in the X code to use _raw functions. TheEric Paris1-32/+32
X server should never see, translate, or deal with a munged context. Display managers which show contexts to the user should take care of translating these to human readable form.
2009-02-27selinux: Don't bother relabeling resources that are being destroyedAdam Jackson1-0/+2
Makes window destroy about 40x faster in Xvfb.
2009-02-23mi: split EQ popping and event processing into two functions.Peter Hutterer1-3/+1
mieqProcessInputEvents() - pop an event off the EQ and pass it to mieqProcessDeviceEvent() - process the event according to the MD/SD hierarchy. This way, we can use mieqPDE() from Xtest, xkb, and others to post an event. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-17xinerama: Put the proto version in the code instead using proto headers.Eric Anholt1-2/+4
Proto headers updating resulting in the server advertising new versions is broken. This should be applied to every extension. This fixes the build against slightly-older xineramaproto.
2009-02-16xserver: Avoid sending uninitialized padding data over the networkPeter Åstrand4-0/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-13xext: Use proto header rather than the Xext include file, this prevents ↵Benjamin Close1-2/+1
userspace being pulled in causing issues Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Daniel Stone <daniel@fooishbar.org>
2009-02-03Xext: fix typo in GEEventFill macroPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-03Xext: rename shape's EventType to ShapeEventType to avoid name clashing.Peter Hutterer1-8/+8
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-02-03Xext: rename saver's EventType to SaverEventType.Peter Hutterer1-5/+5
Avoid namespace clashing with the internal events. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-30Work around inclusion of <X11/extensions/panoramiXext.h>Paulo Cesar Pereira de Andrade1-0/+3
The X Server build only needs the macros PANORAMIX_MAJOR_VERSION and PANORAMIX_MINOR_VERSION from that header. Addition of extra prototypes to <X11/extensions/panoramiXext.h> caused a X Server build failure.
2009-01-22Remove a bunch of useless casts.Adam Jackson14-86/+76
We've had void * for twenty years now people let's try to act like we know how it works.
2009-01-22Input: Remove core keysyms from KeyClassRecDaniel Stone1-2/+4
Instead of always keeping two copies of the keymap, only generate the core keymap from the XKB keymap when we really need to, and use the XKB keymap as the canonical keymap. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-20Remove CreateUnclippedWinSize from window.hAdam Jackson1-0/+2
This is utterly wrong, but then, so is sdksyms.sh
2009-01-20Move CreateUnclippedWinSize to mbufAdam Jackson1-0/+26
It's the only user, so.
2009-01-15Xext: clean up XGE macros.Peter Hutterer1-6/+7
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2009-01-11xsync: make SyncAlarmCounterDestroyed staticJulien Cristau1-1/+1
2009-01-11Xext: ANSI cleanupsJulien Cristau10-254/+124
2009-01-09Xext: Send out correct events in ProcXTestFakeInputThomas Jaeger1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-09Xext: don't accept DeviceValuator if the dev doesn't have valuators (in xtest)Peter Hutterer1-1/+1
Reported by Chris Ball.
2009-01-05 Update sdk headers to export new symbols.Paulo Cesar Pereira de Andrade1-10/+10
All symbols in installed sdk headers should be explicitly tagged as exported symbols. Otherwise, to ensure it is not a mistake, one could write it as something like: extern /* NOEXPORT */ type name ...; but the proper procedure really should be to use a non sdk header (or a "noinst_" one). This patch also removes prototypes to some functions that existed only temporarily.
2008-12-19xv: remove useless XVCALL macroAdam Jackson3-61/+36
2008-12-18xselinux: Use xace Xtrans wrappers instead of the now-inaccessible wrapees.Eamon Walsh1-6/+2
2008-12-18xace: Export wrappers around two Xtrans functions used by modules.Eamon Walsh2-0/+24
Don't know a better way to do this, since Xtrans isn't a library that can be linked into modules.
2008-12-18Add xace headers to the SDK when enabled and export the XaceHooks symbolEamon Walsh3-8/+11
to modules.
2008-12-12Remove #define NEED_EVENTS and NEED_REPLIESPeter Hutterer16-28/+0
A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-11Fix syncsrv.h guard defineAdam Jackson1-3/+3
2008-12-11xsync: Prototype fix.Colin Harrison1-1/+1
2008-12-11xsync: build fixAdam Jackson1-0/+2
argh protocol header disaster
2008-12-11xsync: Fix wakeup storm in idletime counter.Adam Jackson1-10/+41
Wakeup scheduling only considered the threshold values, and not whether the trigger was edge or level. See also: https://bugzilla.redhat.com/show_bug.cgi?id=474586 http://svn.gnome.org/viewvc/gnome-screensaver/trunk/src/test-idle-ext.c?view=markup
2008-12-11xsync: ANSI cleanupsAdam Jackson1-392/+138
2008-12-11xsync: Use a local header for server API definitionsAdam Jackson3-1/+178