[Xquartz-changes] xserver: Branch 'server-1.4-apple' - 3 commits
Jeremy Huddleston
jeremyhu at freedesktop.org
Sun Mar 28 15:38:50 PDT 2010
GL/glx/glxcmdsswap.c | 4 ++--
hw/xquartz/quartz.c | 7 +++++--
hw/xquartz/quartzKeyboard.c | 5 ++++-
3 files changed, 11 insertions(+), 5 deletions(-)
New commits:
commit 6d586ed313935154c8da3759981aefb60e594a00
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date: Sun Mar 28 13:46:23 2010 -0700
XQuartz: Re-query dixScreenOrigins as the value could've changed.
Fix a regression in 9c9c3a85b094a3c7b2763a572715d710325091aa
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
(cherry picked from commit 837a4debf7c396c57e92e6aae715bfe341539b1f)
diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c
index c438e20..1488b85 100644
--- a/hw/xquartz/quartz.c
+++ b/hw/xquartz/quartz.c
@@ -275,8 +275,11 @@ static void QuartzUpdateScreens(void) {
DarwinAdjustScreenOrigins(&screenInfo);
quartzProcs->UpdateScreen(pScreen);
- sx = x + darwinMainScreenX;
- sy = y + darwinMainScreenY;
+ /* DarwinAdjustScreenOrigins or UpdateScreen may change dixScreenOrigins,
+ * so use it rather than x/y
+ */
+ sx = dixScreenOrigins[pScreen->myNum].x + darwinMainScreenX;
+ sy = dixScreenOrigins[pScreen->myNum].y + darwinMainScreenY;
/* Adjust the root window. */
pRoot = WindowTable[pScreen->myNum];
commit b0dea136768d8af0eb858e32c58ebb822b967d1f
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date: Thu Mar 25 22:15:58 2010 -0700
XQuartz: Workaround weird key data reported on some layouts
This should make 'Unicode Hex Input' work as an input layout.
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
(cherry picked from commit c96deff2159d77b9933a89e637b07c7dbc573216)
diff --git a/hw/xquartz/quartzKeyboard.c b/hw/xquartz/quartzKeyboard.c
index c9b4bbb..fad3ffc 100644
--- a/hw/xquartz/quartzKeyboard.c
+++ b/hw/xquartz/quartzKeyboard.c
@@ -766,7 +766,10 @@ Bool QuartzReadSystemKeymap(darwinKeyboardInfo *info) {
if (err != noErr) continue;
}
- if (len > 0 && s[0] != 0x0010) {
+ /* Not sure why 0x0010 is there.
+ * 0x0000 - <rdar://problem/7793566> 'Unicode Hex Input' ...
+ */
+ if (len > 0 && s[0] != 0x0010 && s[0] != 0x0000) {
k[j] = ucs2keysym (s[0]);
if (dead_key_state != 0) k[j] = make_dead_key (k[j]);
}
commit 63cd17d93f24f2bcf971e2b9ae415990eebc59e5
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date: Sun Mar 28 15:35:20 2010 -0700
Fix typos in the swap functions
This should fix bug #3539.
Signed-off-by: Tomas Carnecky <tom at dbservice.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Keith Packard <keithp at keithp.com>
Signed-off-by: Keith Packard <keithp at keithp.com>
(cherry picked from commit 0c2fde5c8ad6e94b4ed1588aa93256a2b64f74d9)
Conflicts:
GL/glx/glxcmdsswap.c
diff --git a/GL/glx/glxcmdsswap.c b/GL/glx/glxcmdsswap.c
index 12bc030..4e21d3a 100644
--- a/GL/glx/glxcmdsswap.c
+++ b/GL/glx/glxcmdsswap.c
@@ -345,7 +345,7 @@ int __glXDispSwap_CreatePbuffer(__GLXclientState *cl, GLbyte *pc)
int __glXDispSwap_DestroyPbuffer(__GLXclientState *cl, GLbyte *pc)
{
- xGLXDestroyPbufferReq *req = (xGLXDestroyPbufferReq *) req;
+ xGLXDestroyPbufferReq *req = (xGLXDestroyPbufferReq *) pc;
return BadRequest;
}
@@ -353,7 +353,7 @@ int __glXDispSwap_DestroyPbuffer(__GLXclientState *cl, GLbyte *pc)
int __glXDispSwap_ChangeDrawableAttributes(__GLXclientState *cl, GLbyte *pc)
{
xGLXChangeDrawableAttributesReq *req =
- (xGLXChangeDrawableAttributesReq *) req;
+ (xGLXChangeDrawableAttributesReq *) pc;
return BadRequest;
}
More information about the Xquartz-changes
mailing list