summaryrefslogtreecommitdiff
path: root/dix
AgeCommit message (Collapse)AuthorFilesLines
2008-10-03Remove an utterly, utterly ancient changelog.Adam Jackson2-18/+1
Wow.
2008-10-03dix: fix axis scaling.Peter Hutterer1-2/+6
For two axes [a, b] and [x, y] (inclusive), the formula to scale point P(ab) to (x,y) is: (P - a)/(b - a) * (y - x) + x And the whole end result rounded of course to get the integer we need.
2008-10-03dix: don't lose subpixel precision when scaling.Peter Hutterer1-7/+11
Only scale x/y back from screen range if we have crossed screen, otherwise leave it as it is.
2008-10-03dix: fix non-initialization of pointer accel in master devices.Simon Thum1-2/+7
Init MDs always with PtrAccelNoOp. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-02Don't inherit XAUTHORITY from the environment.Adam Jackson1-4/+0
It's not especially obvious, and unpleasantly overloaded for the Xnest case. Typically this gives you a server that looks for its auth data in the authority file you were using for the running X session, which generally doesn't have an entry for the display you just started. All the major dm's, and startx, pass -auth explicitly, so this shouldn't cause too much upheaval.
2008-09-26Push server-known properties into xserver-properties.h.Peter Hutterer1-0/+1
2008-09-26Xi: add "deletable" flag to properties, add DeleteProperty handler.Peter Hutterer1-1/+2
A property can only be deleted if any of the following is true: - if a property is deletable and all handlers return Success. - if a property is non-deleteable and the all handlers return Success AND the delete request does not come from a client (i.e. driver or the server). A client can never delete a non-deletable property.
2008-09-26Xi: allow Set/GetProperties to return a status, and honour this status code.Peter Hutterer1-4/+3
If a property handler now bails out, return the error code to the caller. This allows to be slightly more specific with the errors.
2008-09-26Xi: remove configure/query device property calls.Peter Hutterer1-4/+3
This removes all the meta-information about device properties (pending, fromClient, range, valid_values, immutable).
2008-09-23Rename SaveSetMap() to SaveSetShouldMap().Adam Jackson1-2/+2
Avoids preprocessor collision with xfixeswire.h
2008-09-22Change 'remap' to 'map' in saveset functions/macrosOwen Taylor2-4/+4
Now that the code has been fixed so that Unmap means unmap and not "don't remap", 'remap' was confusing to have in the function names/parameters, so change it to simple 'map'. Signed-off-by: Keith Packard <keithp@keithp.com>
2008-09-22Don't remap windows for SaveSetUnmapOwen W. Taylor1-0/+5
Since ReparentWindow() does a unmap/map pair for windows that are already mapped, for saveset windows with SaveSetUnmap, we must unmap the window before calling ReparentWindow() to avoid the generation of MapRequest events, and so forth.
2008-09-22Default to -br. Add -retro option for the nostalgic.Adam Jackson2-8/+7
-retro also reverts to the classic cursor display behavior, meaning, the cursor will be visible before anyone calls XDefineCursor().
2008-09-22Don't use our version of ffs() if the system has oneJulien Cristau1-0/+4
2008-09-18dix: calloc, not malloc, ValuatorClassRec.Peter Hutterer1-1/+1
For master devices, the ptraccel code could segfault on free since we'd be dereferencing random memory. Callocing the valuatorClassRec is the easy fix.
2008-09-12Array-index based devPrivates implementation.Eamon Walsh1-101/+108
Note: DevPrivateKey is now pointer-to-int, which means each key now needs to point to some global storage of size at least sizeof(int).
2008-09-02Don't try to destroy a NULL pixmap.Daniel Drake1-1/+1
2008-08-28Prepare for array-index based devPrivates.Tomas Carnecky3-4/+8
TODO: static indices can be made just an int; some indices can be combined.
2008-08-27Add an array of integers for use as per-screen cursor private keys.Eamon Walsh1-0/+2
Replaces the use of the screen pointer itself as the key, which was nice but won't work now that an array index is being stored.
2008-08-20Centralize declaration of ConnectionInfo.Adam Jackson3-2/+1
2008-08-15dix: stick a warning in about loss of subpixel precision.Peter Hutterer1-0/+1
2008-08-13Eviscerate save-under support.Adam Jackson2-159/+2
Use a compositing manager already. Plus I really wanted to use 'eviscerate' in a commit message.
2008-08-12dix: remove superfluous check.Peter Hutterer1-3/+0
2008-08-11The smart scheduler is not optional.Mathieu Bérard2-18/+0
2008-08-09Move string comparaison functions to from dix/ to os/.Matthieu Herrb3-137/+1
2008-08-08dix: don't try to create events if we don't have a screen. #16898Peter Hutterer1-0/+2
A NULL screen may happen during server shutdown, when the output has been shut down but the devices still generate events. X.Org Bug 16898 <http://bugs.freedesktop.org/show_bug.cgi?id=16898>
2008-08-08dix: remove misleading comment in ptrvelo.cSimon Thum1-3/+2
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-08-08dix: remove obsolete FIXME comment.Peter Hutterer1-4/+0
Thanks to Simon Thum for pointing this out.
2008-08-08dix: SetModifierMapping should only apply to the ClientPointer and it's SDs.Peter Hutterer1-1/+2
2008-08-08dix: simplified debugging helper for pointer accelerationSimon Thum1-27/+23
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-08-08dix: simplify velocity tracking filtersSimon Thum1-2/+1
prefer fp-mul over fp-div and remove rather pointless check Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-08-05Redefine clients as a fixed arrayTomas Carnecky2-5/+2
This removes yet another xalloc() each server generation. Also, I couldn't find the corresponding xfree() so I guess that used to be a memory leak there.
2008-08-05Redefine WindowTable as a fixed arrayTomas Carnecky3-8/+2
Instead of xalloc'ing it every server generation. The array is always the same size (MAXSCREENS), anyway.
2008-08-04dix: export driver-side functions for accelerationSimon Thum1-3/+12
also add additional safety for accel driver api Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-08-04dix: use average of pointer accel profileSimon Thum1-29/+109
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-28some trivial changes regarding C compat, indentation, etc.Simon Thum1-7/+16
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-28dix: preparation change: make runtime exchange of filter chain safeSimon Thum1-1/+7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-28dix: optimize precision in device velocity estimationSimon Thum1-25/+63
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-28dix: improve the driver interface to predictable pointer accelerationSimon Thum1-6/+16
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-28dix: introduce defines for accel profile numbersSimon Thum1-12/+14
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-28dix: rename classic accel _scheme_ to lightweight to avoid confusion withSimon Thum2-5/+16
classic accel _profile_ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-28dix: add legal statements to ptrvelo.{c|h}Simon Thum1-0/+23
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-28dix: fix up enter/leave system once again.Peter Hutterer1-5/+8
Two corrections 1. the "detail" field has NotifyVirtual, etc., not the "mode" field. This was a clear bug. 2. don't set/unset the flags for NotifyGrab or NotifyUngrab. Clients are expected to deal with multiple enter/leave events per window if the mode is not NotifyNormal. Testable with TCL menu boxes (such as used in gitk): tk_optionMenu .menu globVar Val1 Val2 Val3 ValJunk pack .menu Thanks to Michel Dänzer for pointing this out.
2008-07-25Fix AddExtension now that CloseDownProc can be NULL.Mathieu Bérard1-1/+1
2008-07-24Allow extension closedown hook to be null.Adam Jackson1-1/+2
2008-07-24Shape extension is built-in and mandatory.Adam Jackson3-40/+0
2008-07-22dix: reset potential lastSlaves when disabling an SDKeith Packard1-0/+8
Unplug a mouse, then warp the pointer and the warp pointer code will try to update the position of the last slave device associated with the master. That pointer will be stale and the X server will crash. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-21dix: shift the duplicate button mapping check to ProcSetPointerMapping.Peter Hutterer1-9/+19
XI 2 allows two buttons to have the same button code.
2008-07-21dix: Remove insane BC hacksDaniel Stone1-12/+1
If your DDX needs a 1bpp mode and doesn't set it up, your DDX is incompetent.
2008-07-17Give priority to clients that are receiving expose and configure eventsSøren Sandmann1-1/+1