Eamon Walsh
fe9bc481ef
xace: add hooks + new access codes: core protocol font requests
2007-08-16 12:19:49 -04:00
Eamon Walsh
e89301c879
xace: add hooks + new access codes: core protocol client requests
2007-08-16 10:57:49 -04:00
Eamon Walsh
b82557c9fb
xace: add hooks + new access codes: core protocol screensaver requests
2007-08-16 10:36:05 -04:00
Eamon Walsh
568ae737d1
xace: add hooks + new access codes: core protocol server requests
2007-08-16 10:33:58 -04:00
Eamon Walsh
3c9553ac2c
xace: rename hostlist security hook to "server" as this hook will be used
...
for other types of server access besides just the host list.
2007-08-15 14:14:25 -04:00
Eamon Walsh
dc84bb3418
xace: add hooks + new access codes: core protocol cursor requests
2007-08-15 14:13:53 -04:00
Eamon Walsh
b424e01ec5
xace: add hooks + new access codes: core protocol property requests
2007-08-15 14:13:27 -04:00
Eamon Walsh
42d6112ec2
xace: add hooks + new access codes: core protocol GC requests
2007-08-14 13:09:38 -04:00
Eamon Walsh
9a183d7ba5
dix: remove caching of drawables and graphics contexts. The security checks
...
simply bypass the cached values so they are unused.
2007-08-14 11:39:26 -04:00
Eamon Walsh
2763056ab5
xace: add hooks + new access codes: core protocol window requests
2007-08-13 13:44:33 -04:00
Eamon Walsh
d744df32a1
xace: add hooks + new access codes: core protocol colormap requests
2007-08-06 12:23:21 -04:00
Eamon Walsh
d445d2f22b
security: drop the "declare extension security" dix call. Use the
...
SecurityPolicy configuration file instead.
2007-08-03 10:56:18 -04:00
Eamon Walsh
e34fcd2bf4
Merge branch 'master' into XACE-SELINUX
...
Conflicts:
dix/devices.c
dix/property.c
include/dix.h
2007-08-02 14:27:03 -04:00
Daniel Stone
1ace9770fe
Build system: Non-dtrace distcheck hacks
...
automake 1.10 really wants foo.c for foo.O, so give it some dummy files to
deal with if it really needs them.
2007-08-01 08:10:38 +03:00
Daniel Stone
6b055e5d97
Input: Fix stuck modifiers (bug #11683 )
...
Disclaimer: It's 6:51am. I'm trying to be as understandable as possible.
What was happening previously was this:
* Press Alt
* Extended event generated and processed: state is now Alt down once
* Core event generated
- keyboard switched: inherited state is Alt down once
- event processed: Alt down twice
* Release Alt
* Extended event generated and processed: state is now null
* Core event generated and processed: Alt down once
If we switch the order:
* Press Alt
* Core event generated:
- keyboard switched: inherited state is null
- event processed: Alt down once
* Extended event generated and processed: state is now Alt down once
* Release Alt
* Core event generated and processed: state is now null
* Extended event generated and processed: state is now null
When we carry over the previous state, it needs to be the _previous_ state
(state and modifiersPerKey), assuming that we're going to catch now-core
events for any of these. For example, if Ctrl is held down as we pivot, we
need to carry Ctrl over with a count of one, for which an extended + core
release will then clear. Carrying over the union of the previous state _and
the state resulting from the immediate action_ was what broke things.
2007-08-01 06:55:36 +03:00
Daniel Stone
1150969b82
Convert all my license statements to the standard form
...
Convert all my license statements to the standard, accepted form:
cf. <20070717142307.GD13478@fooishbar.org>
http://lists.freedesktop.org/archives/xorg/2007-July/026451.html
keithp's license on configure.ac changed with his verbal permission.
2007-08-01 01:53:31 +03:00
Daniel Stone
8658f5d923
Hotplug: Add HAL support
...
Add support for HAL-based hotplugging, in which we just get the list of
input devices and properties from HAL. Requires an FDI which is not yet
in mainline HAL.
2007-08-01 01:53:31 +03:00
Daniel Stone
4d238c5c67
Input: GetPointerEvents: Deny events from devices without valuators
...
For some reason, my keyboard has 25 mouse buttons, but zero valuators. This
causes GPE to blow up spectacularly, trying to get (and set) co-ordinates from
devices without valuators. For now, just prevent this from ever happening,
and whack a dirty great FIXME in.
2007-08-01 01:53:31 +03:00
Daniel Stone
0afeb0241a
DIX: Clean up null root cursor handling
...
Move the null root cursor handling out of main() and into CreateRootCursor.
2007-08-01 01:53:31 +03:00
Daniel Stone
4d3379d418
Fonts: Fix builtin fonts
...
Make sure the font path is always 'built-ins' when we use built-in fonts,
rather than having it as a fixed path for a while, then clobbering it
halfway through startup.
2007-08-01 01:53:31 +03:00
Daniel Stone
1cdadc2f43
Hotplug: Separate D-Bus into core and hotplug API components
...
Break up D-Bus into two components: a D-Bus core that can be used by any
part of the server (for the moment, just the D-Bus hotplug API, and the
forthcoming HAL hotplug API), and the old D-Bus hotplug API.
2007-08-01 01:53:31 +03:00
Adam Jackson
7da38bb6a1
Partial redundancy elimination in PropertyNotify generation.
2007-07-21 15:27:40 -04:00
Keith Packard
866f092ca0
Make Composite manual redirect windows not clip their parent.
...
This patch changes the semantics of manual redirect windows so that they no
longer affect the clip list of their parent. Doing this means the parent can
draw to the area covered by the child without using IncludeInferiors. More
importantly, this also means that the parent receives expose events when
that region is damaged by other actions.
2007-07-03 14:29:11 -07:00
Adam Jackson
4d76075dbb
Death to RCS tags.
2007-06-29 14:06:52 -04:00
Peter Hutterer
2691c05fd6
Make sure window->optional is allocated before assigning it.
...
DeletePassiveGrabFromList() may remove the window optional, so we need to
re-alloc it if it isn't there anymore.
Thanks to Colin Harrison for spotting the bug.
2007-06-29 11:56:18 +09:30
Tiago Vignatti
d73835efda
More janitor work. Remove 'defined but not used' warnings from kdrive and some minor cosmetic.
2007-06-27 03:34:13 -03:00
Peter Hutterer
8e5102b9f0
Set the detail field for DeviceKeyEvents to the keycode.
...
(cherry picked from commit 0c33dc152e
)
2007-06-25 09:35:31 +09:30
Peter Hutterer
87564543d9
Only decrement buttonsDown when the button count is greater than 0.
...
Device drivers flush their buttons on device init and cause a button down
event to be generated. If we unconditionally decrease the buttons, we won't be
able to ever get a passive device grab.
Format documentation for CheckDeviceGrabs to make it readable.
(cherry picked from commit 3e894974cd
)
Conflicts:
Xi/exevents.c
2007-06-25 09:35:30 +09:30
Peter Hutterer
24ee89fd60
Add a few comments to devices.c
2007-06-25 09:35:30 +09:30
Peter Hutterer
b141b85c25
Check for identical grabs when adding a new passive grab. If an identical grab
...
exists, remove the old one and prepend the new one.
X.org Bug 2738 <https://bugs.freedesktop.org/show_bug.cgi?id=2738 >
2007-06-25 09:35:30 +09:30
Eamon Walsh
e2a720c9a1
Merge branch 'master' into XACE-SELINUX
...
Conflicts:
dix/dixutils.c
2007-06-11 15:29:11 -04:00
Michel Dänzer
644f7ddc0c
dixLookupClient: Use access parameter.
2007-06-11 09:23:18 +02:00
Adam Jackson
dfbe32b5b8
Remove the old Kerberos 5 authentication code.
...
Before you complain, this code hasn't seen material change since at least
X11R6. It certainly does not build with any modern version of Kerberos.
Anybody wanting krb5 auth to their X server should probably be using
GSSAPI instead of internal krb5 API anyway.
2007-06-04 18:07:00 -04:00
Eamon Walsh
793470a835
dix: fix null pointer dereference in new resource lookup function.
2007-06-04 12:33:49 -04:00
Zephaniah E. Hull
a4f3473c88
Fully init the AbsoluteClassRec in InitAbsoluteClassDeviceStruct.
...
(Specificly, we were missing the screen field.)
2007-06-04 06:39:02 -04:00
Luo Jie
3c982bc1a4
Reinstate an apparently mis-deleted ';' from a for loop with no body.
...
Fixes an error returning "No core keyboard" with multiple keyboards.
2007-05-24 11:30:31 -07:00
Luo Jie
1f48995d66
Fix build of composite, dix, and randr when Xinerama is disabled.
2007-05-24 11:20:59 -07:00
Eamon Walsh
2a4aa63a23
Merge branch 'master' into XACE-SELINUX
...
Conflicts:
include/miscstruct.h
2007-05-22 14:50:26 -04:00
Soren Sandmann Pedersen
dde0ceac4e
Add new InitRegions() function called from dix/main
2007-05-15 11:13:15 -04:00
Peter Hutterer
09436fb7c3
Disable devices before removing, remove unrecoverable devices.
2007-04-24 23:11:44 +09:30
Peter Hutterer
c7e2ba0c9b
Use DevicePresence events to tell the client about enabled/disabled devices.
...
Include the device id in the event sent to the client.
2007-04-24 23:11:44 +09:30
Brian
ce099a9b78
fix bug in which maxKeysPerModifier wasn't getting set
2007-04-23 12:34:01 -06:00
Eamon Walsh
9cee4ec5e6
xace: change the semantics of the return value of XACE hooks to allow
...
arbitrary X status codes instead of just TRUE/FALSE.
The dix layer in most cases still does not propagate the return value of
XACE hooks back to the client, however. There is more error propagation
work to do.
2007-04-17 16:01:56 -04:00
Eamon Walsh
1f06d32ef5
Merge branch 'master' into XACE-SELINUX
...
Conflicts:
dix/privates.c
2007-04-17 12:10:22 -04:00
Peter Hutterer
7ccebc50b9
Documentation for events.c.
2007-04-13 13:08:44 +09:30
Magnus Vigerlöf
4f05f9591e
Input: Always add devices with first available ID
...
Scan the device list when adding a new device, and make sure we can use
the first available ID, instead of always incrementing.
2007-04-10 23:58:20 +03:00
Magnus Vigerlöf
07c56abf84
Input: Plug memory leak in device free
...
Remember to also free the motion history, if we're using the DIX-managed
history.
2007-04-10 23:58:20 +03:00
Daniel Stone
e92743bc98
getevents: Copy modifier state from extended to core devices
...
Make core events carry the same modifier state as the extended events, so
that holding down Ctrl on keyboard A and pressing Q on keyboard B won't
cause your app to quit.
2007-04-10 23:58:20 +03:00
Stefan Huehner
1f6741db19
Bug #10560 : Code-Cleanup: function declarations () -> (void)
...
X.Org Bugzilla #10560 : <https://bugs.freedesktop.org/show_bug.cgi?id=10560 >
Patch #9511 <https://bugs.freedesktop.org/attachment.cgi?id=9511 >
2007-04-09 14:33:15 -07:00
Eamon Walsh
1d550bb2c5
devPrivates rework: minor fix; use calloc and avoid initialization.
2007-04-05 12:12:58 -04:00
Eamon Walsh
ed75b05651
dix: add new, combined resource lookup function. Move all dix lookup API
...
deprecated so far to a new file dix/deprecated.c. Remove the deprecation
warnings for the time being.
2007-04-04 16:00:15 -04:00
Eamon Walsh
63e46e4fc3
devPrivates rework: properly free devPrivates on compatibility structures,
...
excluding pixmap.
2007-04-04 15:59:51 -04:00
Eamon Walsh
14aea12cad
xace: forgot one of the hook call arguments. Add it.
2007-04-03 15:23:56 -04:00
Eamon Walsh
353e19fd5e
devPrivates rework: zero out newly allocated private space.
2007-04-03 14:06:02 -04:00
Eamon Walsh
299ff4c829
xace: provide creation-time resource hook call in CreateWindow().
2007-03-28 12:57:11 -04:00
Eamon Walsh
0331c6a8fc
Merge branch 'master' into XACE-SELINUX
2007-03-26 10:28:05 -04:00
Eamon Walsh
f7c5aa0dc0
Remove dead NEED_DBE_BUF_BITS code.
2007-03-26 10:21:44 -04:00
Adam Jackson
4b5802ddbd
General DIX static and dead code cleanup.
2007-03-25 17:57:54 -04:00
Adam Jackson
9a0f25de7c
Static cleanups, dead code deletion.
2007-03-25 12:27:01 -04:00
Peter Hutterer
ac2356843e
dix: Increase allocation size for core keyboard keymap to avoid buffer overrun when copying keymap from extension devices.
2007-03-25 15:24:47 +09:30
Eamon Walsh
84a066cc88
xace: pass serverClient as default argument to dixChangeWindowProperty
...
instead of NullClient.
2007-03-23 10:33:53 -04:00
Eamon Walsh
e1cc68add0
xace: drop the name argument from the property callback.
2007-03-22 17:33:16 -04:00
Eamon Walsh
1b766ffc06
dix: reorganize property code to better support xace hook; requires new API for
...
changing a property, dixChangeWindowProperty, taking an additional client argument.
2007-03-22 15:55:35 -04:00
Eamon Walsh
1b58304ac8
xace: add new argument to property hook for property structure itself.
2007-03-22 14:07:01 -04:00
Eamon Walsh
5486be4898
dix: devPrivates support for PropertyRec.
2007-03-22 10:59:21 -04:00
Eamon Walsh
a3296d111d
xace: add access_mode argument to selection hook.
2007-03-21 17:01:26 -04:00
Eamon Walsh
4c1fb8069d
dix: add new selection fields supporting redirection.
...
This is a minor ABI break.
2007-03-21 16:18:09 -04:00
Eamon Walsh
9c144f8ac5
xace: add XACE_SELECTION_ACCESS hook for selection redirection/access.
2007-03-21 14:39:00 -04:00
Adam Jackson
021fc5cb2c
Static markup and dead code cull over xkb/.
...
The former <X11/extensions/XKBsrv.h> has been pulled into the server now as
include/xkbsrv.h, and the world updated to look for it in the new place,
since it made no sense to define server API in an extension header. Any
further work along this line will need to do similar things with XKBgeom.h
and friends.
2007-03-20 18:37:02 -04:00
Eamon Walsh
2945deba1d
xace: drop XACE_WINDOW_INIT hook, it has been superseded by ResourceStateCallback.
2007-03-19 17:09:10 -04:00
Eamon Walsh
fe05ba75a1
devPrivates rework: pass address of pointer to private callbacks instead of
...
the pointer itself.
2007-03-08 12:14:30 -05:00
Eamon Walsh
b9cff1670f
Add ResourceStateCallback similar in function to ClientStateCallback.
2007-03-08 12:13:52 -05:00
Eamon Walsh
2fcb45eb5d
devPrivates rework: redo field offset registration, drop RC_PRIVATES class.
2007-03-08 12:13:36 -05:00
Eamon Walsh
947f8d249b
devPrivates rework: redo interface again, dropping parent and type parameters
...
as well as preallocation routine.
2007-03-08 12:13:18 -05:00
Eamon Walsh
c45f676208
devPrivates rework: hook up new mechanism in backwards-compatibility mode
...
on existing structures that support devPrivates.
2007-03-08 12:12:51 -05:00
Peter Hutterer
63169ce52d
dix: remove 'register' keyword for all variables.
2007-03-08 17:50:25 +10:30
Eamon Walsh
b5fde366e2
Properly free device devPrivates - memory leak fix.
2007-03-07 12:29:55 -05:00
Eamon Walsh
aaef4d6a41
devPrivates rework: move reset functions into a single call.
2007-03-07 09:57:02 -05:00
Eamon Walsh
bb111291d8
Merge branch 'master' into XACE-SELINUX
2007-03-07 09:03:46 -05:00
Eamon Walsh
81526232bc
remove PIXPRIV check as this flag is always set.
2007-03-06 17:19:11 -05:00
Eamon Walsh
a7cd53deb9
remove PIXPRIV checks as this flag is always set.
2007-03-06 17:05:03 -05:00
Eamon Walsh
74175e0af7
devPrivates rework: remove some debugging code from dixFreePrivates.
2007-03-05 12:34:37 -05:00
Eamon Walsh
23fc429aad
Merge branch 'master' into XACE-SELINUX
2007-03-05 12:18:54 -05:00
Eamon Walsh
e684824709
devPrivates rework: redo interface and implementation.
2007-03-05 11:50:45 -05:00
Eamon Walsh
74f1de1de9
devPrivates rework: unhook resource system; will try a different approach.
2007-03-01 12:17:29 -05:00
Eamon Walsh
81372f9096
devPrivates rework: hook up new interface in resource system; add new
...
resource-adding function that takes an additional ScreenPtr argument.
2007-02-23 13:23:12 -05:00
Eamon Walsh
16f2b8892d
devPrivates rework: add new interface implementation.
2007-02-23 13:22:46 -05:00
Eamon Walsh
9a3eb0357e
devPrivates rework: add RC_PRIVATES class, make ResourceRec visible in
...
the API, and add extra fields and structure supporting private storage.
2007-02-21 07:46:44 -05:00
Ben Byer
81444486be
autoconf goodness for XDarwin, courtesy of pogma
2007-02-17 02:23:11 -08:00
Ben Byer
cf4994b0db
dix mods for Darwin
2007-02-17 01:21:43 -08:00
Peter Hutterer
d570ff7c81
fix: WarpCursor needs to send MotionNotify.
2007-02-15 10:28:55 +10:30
Michel Dänzer
282a4dcaab
Attempt to fix drawable type checks in dixLookupDrawable().
...
Not sure this is 100% correct either, but it fixes at least one reproducible
crasher where it returned a pixmap to dixLookupWindow().
2007-01-08 19:22:41 +01:00
Peter Hutterer
05f915050c
dix/events: take screen number, not pointer, in PostSyntheticMotion
...
Since we were using PostSyntheticMotion incorrectly anyway, update the
declared API to match.
2006-12-27 16:38:06 +00:00
Eamon Walsh
d9e079d2a3
Zero out client devPrivates on allocation.
2006-12-22 13:07:09 -05:00
Eamon Walsh
0128073568
Add loud warnings to deprecated lookup functions.
...
Hopefully this will alert external driver maintainers.
2006-12-15 18:27:16 -05:00
Eamon Walsh
ab1d5b0c31
Convert callers of LookupClient() to dixLookupClient().
2006-12-15 17:26:58 -05:00
Eamon Walsh
25d5e0a629
Convert callers of SecurityLookupWindow() to dixLookupWindow().
2006-12-15 15:50:46 -05:00
Eamon Walsh
00f0705b3b
Remove instances of macros SECURITY_VERIFY_GEOMETRABLE and SECURITY_VERIFY_GC.
2006-12-14 19:15:21 -05:00
Eamon Walsh
5e334f06a1
Remove instances of macros VERIFY_GEOMETRABLE and VERIFY_GC.
2006-12-14 18:27:09 -05:00
Eamon Walsh
51b69ff499
Remove instances of macro SECURITY_VERIFY_DRAWABLE.
2006-12-14 17:53:43 -05:00