Commit graph

7102 commits

Author SHA1 Message Date
Jeremy Huddleston
6904f0cb80 XQuartz: Localization update
(cherry picked from commit 9435fc5e20)
2009-04-22 19:30:25 -07:00
Jeremy Huddleston
5d8caf5b9f XQuartz: Make sure the bgMouseLocationUpdated state is consistent
(cherry picked from commit 8fa8a8e1db)
2009-04-22 19:30:14 -07:00
Jeremy Huddleston
ec3d96760b Merge commit 'origin/server-1.6-branch' into xorg-server-1.6-apple 2009-04-22 19:29:04 -07:00
Eamon Walsh
11db545a86 security: Grant untrusted windows remove access on all windows.
This allows untrusted clients to destroy their own windows when they
have been reparented by a trusted window manager.
(cherry picked from commit 4559d2ace6)
2009-04-16 23:48:52 -04:00
Eamon Walsh
5d48f288ec security: Fix a crash caused by wrong ordering of format arguments.
(cherry picked from commit 3481b32ab9)
2009-04-16 23:48:52 -04:00
Eamon Walsh
93e0a64813 security: Revert behavior of extension access for compatibility.
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 8b5d21cc1d this was changed for
some reason.  Return to the old, compatible behavior.
(cherry picked from commit 6045506be0)
2009-04-16 23:48:51 -04:00
Adam Jackson
cd321badf0 xserver 1.6.1 2009-04-14 16:08:11 -04:00
Peter Hutterer
fcffa3a178 Xext: set POINTER_SCREEN flag in XTestFakeInput if necessary. (RH #490984)
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>
(cherry picked from commit 603db34337)
2009-04-13 16:16:05 -04:00
Kristian Høgsberg
6ff60c6261 glx: Fix drawable private leak on destroy
When a drawable goes away, we don't destroy the GLX drawable in full,
since it may be current for a context.  This means that when the drawable
is destroyed in full later, the backend doesn't get a chance to
destroy resources associated with the drawable (the DRI2Drawable).

With this patch, we destroy the GLX drawable in full when it goes away
and then track down all contexts that reference it and NULL their
pointers.

(cherry picked from commit 7b6400a1b8)
2009-04-13 16:15:24 -04:00
Jeremy Huddleston
428b463b78 XQuartz: Use correct values for ProximityIn and ProximityOut
This was the other underlying cause of teh 100% CPU tablet issue.
(cherry picked from commit a9cecf34c2)
2009-04-11 17:26:25 -07:00
Jeremy Huddleston
e63eb56e62 XQuartz: Solve the tablet 100% CPU bug
This happened because we put a byte in the fd to wake up dispatch, but we never actually enqueued anything in mieq because the num_events was 0.
(cherry picked from commit c21ca7558d)
2009-04-11 17:25:23 -07:00
Jeremy Huddleston
1a1e46d701 XQuartz: Re-enable background window checking
since that code was not the culprit for the wacom tablet, background 100% CPU bug
(cherry picked from commit fc1dc5d71b)
2009-04-11 17:23:01 -07:00
Jeremy Huddleston
0e32904f16 XQuartz: Only set MotionNotify on activation if it is updated.
(cherry picked from commit ae8077a251)
2009-04-11 17:22:49 -07:00
Jeremy Huddleston
7add477ffe XQuartz: Make sure the Fn doesn't trigger unneccessary calls to DarwinUpdateModKeys()
(cherry picked from commit 70a18558c6)
2009-04-11 17:22:37 -07:00
Jeremy Huddleston
55878a78c0 XQuartz: Re-enable Fn as an option for 3button mouse simulation.
Patch from Martin Otte <otte@duke.edu>
(cherry picked from commit b5ec3be6b5)
2009-04-11 17:22:16 -07:00
Jeremy Huddleston
64d82c7d16 XQuartz: xprSetWindowLevel updated to store the level requested by the WM
(cherry picked from commit c28c2ddc3a)
2009-04-10 00:48:31 -07:00
Jeremy Huddleston
d6b413a8ba XQuartz: Update window levels when changing rootless state
(cherry picked from commit 1359ded5bf)
2009-04-10 00:47:39 -07:00
Jeremy Huddleston
192be8e4f9 XQuartz: Fix window levels for rooted mode to allow showing the menu bar.
(cherry picked from commit 80759a4186)
2009-04-10 00:47:27 -07:00
Jeremy Huddleston
886f8b6af3 XQuartz: Properly set the window level for the root window
(cherry picked from commit bdf9286d1c)
2009-04-10 00:47:15 -07:00
Jeremy Huddleston
137db09a35 XQuartz: Properly set the menu bar and hotkey state when changing rootless mode.
Currently no code path exhibits the broken behavior since we only toggle into rootless if we don't have the root.
(cherry picked from commit 970f100ca3)
2009-04-10 00:47:02 -07:00
Jeremy Huddleston
fed3bbdc61 XQuartz: In rooted mode, make sure we start in the hidden state.
(cherry picked from commit 5ecc497f71)
2009-04-10 00:46:47 -07:00
Jeremy Huddleston
e221c4e398 XQuartz: Send MotionNotify before button presses when X11 is in the background
(cherry picked from commit c80d0ec18e)
2009-04-10 00:46:35 -07:00
Jeremy Huddleston
3644e9d1a5 XQuartz: Revert most of the previous override redirect patch
The changes actually caused all windows to move to the current space.  Instead, we're going with a fix entirely within Xplugin that depends on quartz-wm being the window-manager for now.
(cherry picked from commit 997b6f3142)
2009-04-10 00:46:22 -07:00
Eamon Walsh
50894e1354 xselinux: Don't BadAlloc in List* requests if there are no items to list.
(cherry picked from commit 682d7b5569)
2009-04-09 02:50:14 -04:00
Eamon Walsh
feb01d7d6e xselinux: Don't require incoming context strings to be null-terminated.
(cherry picked from commit e8b324102f)
2009-04-08 16:05:11 -04:00
Eamon Walsh
b7dc7374bb Correct access mode in call to dixLookupWindow() within RRSelectInput.
Reported by Alan Coopersmith.
(cherry picked from commit 6544490700)
2009-04-08 16:05:11 -04:00
Jeremy Huddleston
f0c80564e6 XQuartz: Use updated Xplugin API to send overide-redirect windows to the current space when they're ordered in
This fixes the annoying "using a menu moves me to another space" bug
(cherry picked from commit 9e6dab89e0)
2009-04-05 16:32:11 -07:00
Jeremy Huddleston
c5eef1e95b XQuartz: Send a MotionNotify event for the mouse cursor when activating X11.app
Otherwise if X11.app was activated with a mouse click, the location of the even is the last location of the cursor before X11 was deactivated
(cherry picked from commit c7457d7b31)
2009-04-05 16:32:03 -07:00
Jeremy Huddleston
3c80f6214a XQuartz: Still send mouse events while X11 is in the background if we have test extensions enabled
(cherry picked from commit f393fb686c)
2009-04-01 13:53:13 -07:00
Jeremy Huddleston
bbab36899e XQuartz: Return BadRequest when SendPSN isn't implemented rather than success
(cherry picked from commit 49871e9917)
2009-04-01 13:53:01 -07:00
Jeremy Huddleston
c7b56dd9c9 XQuartz: Pad xAppleDRINotifyEvent to 32bytes to match sizeof(xEvent)
(cherry picked from commit 276ee3bb08)
2009-04-01 13:52:48 -07:00
Jeremy Huddleston
bd40a10350 XQuartz: Don't report mouse events while X11 is not the foreground application
(cherry picked from commit 5d1dd35096)
2009-03-31 18:12:40 -07:00
Jeremy Huddleston
1313ff3eb8 Merge commit 'origin/server-1.6-branch' into xorg-server-1.6-apple 2009-03-31 18:12:27 -07:00
Jeremy Huddleston
faef10ec17 XQuartz: Fix mouse tracking for quake, et. al. in wine
Patch courtesy of Codeweavers

Fix mouse movement tracking.  For a non-window-related mouse-move event,
calculate the new position by adding the event's delta-x and delta-y values
to the previous mouse position.  Do not rely on the current mouse position
because it may have been changed by a XWarpPointer call.
(cherry picked from commit 7a67935b05)
2009-03-30 20:41:29 -07:00
Adam Jackson
38b0f9edca Fix distcheck with dolt 2009-03-27 16:49:45 -04:00
Adam Jackson
509986d6f0 Fix Changelog generation 2009-03-27 16:28:26 -04:00
Adam Jackson
0f9fd02dac selinux: Add support for avc_acquire_netlink_fd()
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.
(cherry picked from commit 3992dd38ca)
2009-03-27 16:18:39 -04:00
Adam Jackson
b3484c8480 selinux: Don't bother relabeling resources that are being destroyed
Makes window destroy about 40x faster in Xvfb.
(cherry picked from commit b030f858f2)
2009-03-27 16:18:08 -04:00
Peter Hutterer
08ac9140f6 xkb: Fix wrong colour reference in XKB geometry copying. #20081
base_color and label_color need to reference the color in the destination, not
in the source.

X.Org Bug 20081 <http://bugs.freedesktop.org/show_bug.cgi?id=20081>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
(cherry picked from commit f5bf1fdaf3)
2009-03-27 15:25:36 -04:00
Peter Hutterer
124da1da5c Xi: don't crash on a NULL property name, just return None.
strcmp doesn't like NULL-pointers.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 0d9a42dc03)
2009-03-27 15:25:24 -04:00
Peter Hutterer
ea9f51fd42 Xi: add XATOM_FLOAT to server-defined properties.
This property is used to denote type float for input properties. Such
properties can be accessed easily through the XIPropToFloat() function.

Code originally written by Simon Thum.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
(cherry picked from commit a48c81dcdf)
2009-03-27 15:25:18 -04:00
Peter Hutterer
6ad6b6f900 Xi: add XIPropToInt() auxiliary function.
Converts an XIPropertyValuePtr to an integer, provided that type and format is
right.

Code originally written by Simon Thum.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
(cherry picked from commit 669f6810af)
2009-03-27 15:25:07 -04:00
Adam Jackson
667865b9eb randr: Fix thinko in xf86TargetPreferred
The only-one-output case would only work right if that also happened to
be the zeroth output.  Oops.
(cherry picked from commit 8a6ed44a8b)
2009-03-20 16:58:06 -07:00
Jeremy Huddleston
da8b2891a1 XQuartz: Implement SendPSN for AppleWM
(cherry picked from commit 779e9fdc2d)
2009-03-04 13:40:35 -08:00
Eric Paris
f469726fec This patch changes all places in the X code to use _raw functions. The
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.
(cherry picked from commit c7cf926d25)
2009-03-03 14:05:16 -05:00
Jeremy Huddleston
3b36a8688b Merge commit 'origin/server-1.6-branch' into xorg-server-1.6-apple 2009-02-28 00:48:52 -08:00
Jeremy Huddleston
ccf5f7bc07 XQuartz: Don't erase the mode_switch+keysym if it's the same as shift+keysym
(cherry picked from commit 3e2427e6e9)
2009-02-26 21:25:13 -08:00
Keith Packard
60c161545a X server version 1.6.0
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-02-25 12:05:44 -08:00
Maarten Maathuis
e9a9f80797 exa: kill of exaImageGlyphBlt
- It serves no obvious purpose, yet it directly accesses many fb
symbols.
(cherry picked from commit 5cc67ae94c)
2009-02-25 11:49:37 -08:00
Jeremy Huddleston
10e0603fb9 XQuartz: Re-enable support for capslock
(cherry picked from commit 4901b8147e)
2009-02-25 11:35:19 -08:00