Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Adam Jackson
xserver
Commits
116f0201
Commit
116f0201
authored
Mar 18, 2013
by
Keith Packard
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'whot/next'
parents
cf89aa53
0f537da7
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
281 additions
and
200 deletions
+281
-200
Xext/panoramiX.c
Xext/panoramiX.c
+7
-7
Xext/sync.c
Xext/sync.c
+8
-5
Xext/xvdisp.c
Xext/xvdisp.c
+4
-4
composite/compext.c
composite/compext.c
+6
-1
configure.ac
configure.ac
+8
-1
dix/main.c
dix/main.c
+2
-0
dix/window.c
dix/window.c
+4
-0
fb/fbpict.c
fb/fbpict.c
+2
-6
hw/kdrive/ephyr/ephyr.c
hw/kdrive/ephyr/ephyr.c
+3
-4
hw/kdrive/ephyr/ephyrinit.c
hw/kdrive/ephyr/ephyrinit.c
+6
-0
hw/kdrive/ephyr/ephyrvideo.c
hw/kdrive/ephyr/ephyrvideo.c
+0
-24
hw/kdrive/ephyr/hostx.c
hw/kdrive/ephyr/hostx.c
+29
-14
hw/kdrive/ephyr/hostx.h
hw/kdrive/ephyr/hostx.h
+2
-1
hw/kdrive/fbdev/fbdev.c
hw/kdrive/fbdev/fbdev.c
+0
-10
hw/kdrive/linux/mouse.c
hw/kdrive/linux/mouse.c
+0
-6
hw/kdrive/src/kinput.c
hw/kdrive/src/kinput.c
+0
-8
hw/kdrive/src/kxv.c
hw/kdrive/src/kxv.c
+0
-2
hw/xfree86/common/xf86Events.c
hw/xfree86/common/xf86Events.c
+0
-1
hw/xfree86/common/xf86Mode.c
hw/xfree86/common/xf86Mode.c
+7
-10
hw/xfree86/common/xf86Option.c
hw/xfree86/common/xf86Option.c
+1
-1
hw/xfree86/common/xf86fbman.c
hw/xfree86/common/xf86fbman.c
+7
-5
hw/xfree86/common/xf86xvmc.c
hw/xfree86/common/xf86xvmc.c
+3
-1
hw/xfree86/ddc/ddc.c
hw/xfree86/ddc/ddc.c
+4
-3
hw/xfree86/ramdac/xf86Cursor.c
hw/xfree86/ramdac/xf86Cursor.c
+0
-1
include/dix-config.h.in
include/dix-config.h.in
+3
-0
include/input.h
include/input.h
+5
-0
os/Makefile.am
os/Makefile.am
+5
-0
os/backtrace.c
os/backtrace.c
+75
-0
os/log.c
os/log.c
+4
-0
randr/rrcrtc.c
randr/rrcrtc.c
+3
-6
xfixes/cursor.c
xfixes/cursor.c
+2
-8
xkb/xkb.c
xkb/xkb.c
+1
-2
xkb/xkbActions.c
xkb/xkbActions.c
+80
-69
No files found.
Xext/panoramiX.c
View file @
116f0201
...
...
@@ -596,7 +596,7 @@ Bool
PanoramiXCreateConnectionBlock
(
void
)
{
int
i
,
j
,
length
;
Bool
disable
B
acking
S
tore
=
FALSE
;
Bool
disable
_b
acking
_s
tore
=
FALSE
;
int
old_width
,
old_height
;
float
width_mult
,
height_mult
;
xWindowRoot
*
root
;
...
...
@@ -622,10 +622,10 @@ PanoramiXCreateConnectionBlock(void)
}
if
(
pScreen
->
backingStoreSupport
!=
screenInfo
.
screens
[
0
]
->
backingStoreSupport
)
disable
B
acking
S
tore
=
TRUE
;
disable
_b
acking
_s
tore
=
TRUE
;
}
if
(
disable
B
acking
S
tore
)
{
if
(
disable
_b
acking
_s
tore
)
{
for
(
i
=
0
;
i
<
screenInfo
.
numScreens
;
i
++
)
{
pScreen
=
screenInfo
.
screens
[
i
];
pScreen
->
backingStoreSupport
=
NotUseful
;
...
...
@@ -831,15 +831,15 @@ PanoramiXConsolidate(void)
saver
->
type
=
XRT_WINDOW
;
FOR_NSCREENS
(
i
)
{
ScreenPtr
pScreen
=
screenInfo
.
screens
[
i
];
ScreenPtr
scr
=
screenInfo
.
screens
[
i
];
root
->
info
[
i
].
id
=
pScreen
->
root
->
drawable
.
id
;
root
->
info
[
i
].
id
=
scr
->
root
->
drawable
.
id
;
root
->
u
.
win
.
class
=
InputOutput
;
root
->
u
.
win
.
root
=
TRUE
;
saver
->
info
[
i
].
id
=
pScreen
->
screensaver
.
wid
;
saver
->
info
[
i
].
id
=
scr
->
screensaver
.
wid
;
saver
->
u
.
win
.
class
=
InputOutput
;
saver
->
u
.
win
.
root
=
TRUE
;
defmap
->
info
[
i
].
id
=
pScreen
->
defColormap
;
defmap
->
info
[
i
].
id
=
scr
->
defColormap
;
}
AddResource
(
root
->
info
[
0
].
id
,
XRT_WINDOW
,
root
);
...
...
Xext/sync.c
View file @
116f0201
...
...
@@ -2747,7 +2747,6 @@ init_system_idle_counter(const char *name, int deviceid)
{
CARD64
resolution
;
XSyncValue
idle
;
IdleCounterPriv
*
priv
=
malloc
(
sizeof
(
IdleCounterPriv
));
SyncCounter
*
idle_time_counter
;
IdleTimeQueryValue
(
NULL
,
&
idle
);
...
...
@@ -2758,10 +2757,14 @@ init_system_idle_counter(const char *name, int deviceid)
IdleTimeQueryValue
,
IdleTimeBracketValues
);
priv
->
deviceid
=
deviceid
;
priv
->
value_less
=
priv
->
value_greater
=
NULL
;
if
(
idle_time_counter
!=
NULL
)
{
IdleCounterPriv
*
priv
=
malloc
(
sizeof
(
IdleCounterPriv
))
;
idle_time_counter
->
pSysCounterInfo
->
private
=
priv
;
priv
->
value_less
=
priv
->
value_greater
=
NULL
;
priv
->
deviceid
=
deviceid
;
idle_time_counter
->
pSysCounterInfo
->
private
=
priv
;
}
return
idle_time_counter
;
}
...
...
@@ -2786,6 +2789,6 @@ void SyncRemoveDeviceIdleTime(SyncCounter *counter)
/* FreeAllResources() frees all system counters before the devices are
shut down, check if there are any left before freeing the device's
counter */
if
(
!
xorg_list_is_empty
(
&
SysCounterList
))
if
(
counter
&&
!
xorg_list_is_empty
(
&
SysCounterList
))
xorg_list_del
(
&
counter
->
pSysCounterInfo
->
entry
);
}
Xext/xvdisp.c
View file @
116f0201
...
...
@@ -702,7 +702,7 @@ ProcXvUngrabPort(ClientPtr client)
static
int
ProcXvStopVideo
(
ClientPtr
client
)
{
int
status
,
r
c
;
int
status
,
r
et
;
DrawablePtr
pDraw
;
XvPortPtr
pPort
;
...
...
@@ -716,9 +716,9 @@ ProcXvStopVideo(ClientPtr client)
return
status
;
}
r
c
=
dixLookupDrawable
(
&
pDraw
,
stuff
->
drawable
,
client
,
0
,
DixWriteAccess
);
if
(
r
c
!=
Success
)
return
r
c
;
r
et
=
dixLookupDrawable
(
&
pDraw
,
stuff
->
drawable
,
client
,
0
,
DixWriteAccess
);
if
(
r
et
!=
Success
)
return
r
et
;
return
XvdiStopVideo
(
client
,
pPort
,
pDraw
);
}
...
...
composite/compext.c
View file @
116f0201
...
...
@@ -803,6 +803,7 @@ PanoramiXCompositeGetOverlayWindow(ClientPtr client)
RT_WINDOW
,
client
,
DixGetAttrAccess
);
if
(
rc
!=
Success
)
{
client
->
errorValue
=
stuff
->
window
;
free
(
overlayWin
);
return
rc
;
}
pScreen
=
pWin
->
drawable
.
pScreen
;
...
...
@@ -812,8 +813,10 @@ PanoramiXCompositeGetOverlayWindow(ClientPtr client)
* interest in the overlay window
*/
pOc
=
compCreateOverlayClient
(
pScreen
,
client
);
if
(
pOc
==
NULL
)
if
(
pOc
==
NULL
)
{
free
(
overlayWin
);
return
BadAlloc
;
}
/*
* Make sure the overlay window exists
...
...
@@ -822,6 +825,7 @@ PanoramiXCompositeGetOverlayWindow(ClientPtr client)
if
(
cs
->
pOverlayWin
==
NULL
)
if
(
!
compCreateOverlayWindow
(
pScreen
))
{
FreeResource
(
pOc
->
resource
,
RT_NONE
);
free
(
overlayWin
);
return
BadAlloc
;
}
...
...
@@ -831,6 +835,7 @@ PanoramiXCompositeGetOverlayWindow(ClientPtr client)
DixGetAttrAccess
);
if
(
rc
!=
Success
)
{
FreeResource
(
pOc
->
resource
,
RT_NONE
);
free
(
overlayWin
);
return
rc
;
}
}
...
...
configure.ac
View file @
116f0201
...
...
@@ -308,6 +308,13 @@ AC_CHECK_HEADER([execinfo.h],[
])]
)
PKG_CHECK_MODULES(LIBUNWIND, libunwind, [HAVE_LIBUNWIND=yes], [HAVE_LIBUNWIND=no])
if test "x$HAVE_LIBUNWIND" = xyes; then
AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support])
fi
AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$HAVE_LIBUNWIND" = xyes])
dnl ---------------------------------------------------------------------------
dnl Bus options and CPU capabilities. Replaces logic in
dnl hw/xfree86/os-support/bus/Makefile.am, among others.
...
...
@@ -1336,7 +1343,7 @@ AC_DEFINE(BIGREQS, 1, [Support BigRequests extension])
if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
DIX_LIB='$(top_builddir)/dix/dix.O'
OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS)'
OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS)
$(LIBUNWIND_LIBS)
'
else
DIX_LIB='$(top_builddir)/dix/libdix.la'
OS_LIB='$(top_builddir)/os/libos.la'
...
...
dix/main.c
View file @
116f0201
...
...
@@ -357,6 +357,8 @@ main(int argc, char *argv[], char *envp[])
FreeFonts
();
FreeAllAtoms
();
FreeAuditTimer
();
if
(
dispatchException
&
DE_TERMINATE
)
{
...
...
dix/window.c
View file @
116f0201
...
...
@@ -1431,6 +1431,8 @@ ChangeWindowAttributes(WindowPtr pWin, Mask vmask, XID *vlist, ClientPtr client)
}
}
CursorVisible
=
TRUE
;
if
(
pWin
->
realized
)
WindowHasNewCursor
(
pWin
);
...
...
@@ -3430,6 +3432,8 @@ ChangeWindowDeviceCursor(WindowPtr pWin, DeviceIntPtr pDev, CursorPtr pCursor)
}
out:
CursorVisible
=
TRUE
;
if
(
pWin
->
realized
)
WindowHasNewCursor
(
pWin
);
...
...
fb/fbpict.c
View file @
116f0201
...
...
@@ -185,19 +185,15 @@ fbGlyphs(CARD8 op,
if
(
maskFormat
)
{
pixman_format_code_t
format
;
pixman_box32_t
extents
;
int
x
,
y
;
format
=
maskFormat
->
format
|
(
maskFormat
->
depth
<<
24
);
pixman_glyph_get_extents
(
glyphCache
,
n_glyphs
,
pglyphs
,
&
extents
);
x
=
extents
.
x1
;
y
=
extents
.
y1
;
pixman_composite_glyphs
(
op
,
srcImage
,
dstImage
,
format
,
xSrc
+
srcXoff
+
xDst
,
ySrc
+
srcYoff
+
yDst
,
x
,
y
,
x
+
dstXoff
,
y
+
dstYoff
,
extents
.
x1
,
extents
.
y1
,
extents
.
x1
+
dstXoff
,
extents
.
y1
+
dstYoff
,
extents
.
x2
-
extents
.
x1
,
extents
.
y2
-
extents
.
y1
,
glyphCache
,
n_glyphs
,
pglyphs
);
...
...
hw/kdrive/ephyr/ephyr.c
View file @
116f0201
...
...
@@ -56,6 +56,7 @@ typedef struct _EphyrInputPrivate {
}
EphyrKbdPrivate
,
EphyrPointerPrivate
;
Bool
EphyrWantGrayScale
=
0
;
Bool
EphyrWantResize
=
0
;
Bool
ephyrInitialize
(
KdCardInfo
*
card
,
EphyrPriv
*
priv
)
...
...
@@ -237,13 +238,11 @@ ephyrMapFramebuffer(KdScreenInfo * screen)
KdComputePointerMatrix
(
&
m
,
ephyrRandr
,
screen
->
width
,
screen
->
height
);
KdSetPointerMatrix
(
&
m
);
priv
->
bytes_per_line
=
((
screen
->
width
*
screen
->
fb
.
bitsPerPixel
+
31
)
>>
5
)
<<
2
;
buffer_height
=
ephyrBufferHeight
(
screen
);
priv
->
base
=
hostx_screen_init
(
screen
,
screen
->
width
,
screen
->
height
,
buffer_height
);
hostx_screen_init
(
screen
,
screen
->
width
,
screen
->
height
,
buffer_height
,
&
priv
->
bytes_per_line
,
&
screen
->
fb
.
bitsPerPixel
);
if
((
scrpriv
->
randr
&
RR_Rotate_0
)
&&
!
(
scrpriv
->
randr
&
RR_Reflect_All
))
{
scrpriv
->
shadow
=
FALSE
;
...
...
hw/kdrive/ephyr/ephyrinit.c
View file @
116f0201
...
...
@@ -31,6 +31,7 @@
extern
Window
EphyrPreExistingHostWin
;
extern
Bool
EphyrWantGrayScale
;
extern
Bool
EphyrWantResize
;
extern
Bool
kdHasPointer
;
extern
Bool
kdHasKbd
;
...
...
@@ -116,6 +117,7 @@ ddxUseMsg(void)
ErrorF
(
"-host-cursor Re-use exisiting X host server cursor
\n
"
);
ErrorF
(
"-fullscreen Attempt to run Xephyr fullscreen
\n
"
);
ErrorF
(
"-grayscale Simulate 8bit grayscale
\n
"
);
ErrorF
(
"-resizeable Make Xephyr windows resizeable
\n
"
);
ErrorF
(
"-fakexa Simulate acceleration using software rendering
\n
"
);
ErrorF
(
"-verbosity <level> Set log verbosity level
\n
"
);
...
...
@@ -210,6 +212,10 @@ ddxProcessArgument(int argc, char **argv, int i)
EphyrWantGrayScale
=
1
;
return
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-resizeable"
))
{
EphyrWantResize
=
1
;
return
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-fakexa"
))
{
ephyrFuncs
.
initAccel
=
ephyrDrawInit
;
ephyrFuncs
.
enableAccel
=
ephyrDrawEnable
;
...
...
hw/kdrive/ephyr/ephyrvideo.c
View file @
116f0201
...
...
@@ -1006,7 +1006,6 @@ ephyrPutVideo(KdScreenInfo * a_info,
EphyrPortPriv
*
port_priv
=
a_port_priv
;
BoxRec
clipped_area
,
dst_box
;
int
result
=
BadImplementation
;
int
drw_x
=
0
,
drw_y
=
0
,
drw_w
=
0
,
drw_h
=
0
;
EPHYR_RETURN_VAL_IF_FAIL
(
a_info
->
pScreen
,
BadValue
);
EPHYR_RETURN_VAL_IF_FAIL
(
a_drawable
&&
port_priv
,
BadValue
);
...
...
@@ -1024,11 +1023,6 @@ ephyrPutVideo(KdScreenInfo * a_info,
goto
out
;
}
drw_x
=
clipped_area
.
x1
;
drw_y
=
clipped_area
.
y1
;
drw_w
=
clipped_area
.
x2
-
clipped_area
.
x1
;
drw_h
=
clipped_area
.
y2
-
clipped_area
.
y1
;
if
(
!
ephyrHostXVPutVideo
(
a_info
->
pScreen
->
myNum
,
port_priv
->
port_number
,
a_vid_x
,
a_vid_y
,
a_vid_w
,
a_vid_h
,
...
...
@@ -1055,7 +1049,6 @@ ephyrGetVideo(KdScreenInfo * a_info,
EphyrPortPriv
*
port_priv
=
a_port_priv
;
BoxRec
clipped_area
,
dst_box
;
int
result
=
BadImplementation
;
int
drw_x
=
0
,
drw_y
=
0
,
drw_w
=
0
,
drw_h
=
0
;
EPHYR_RETURN_VAL_IF_FAIL
(
a_info
&&
a_info
->
pScreen
,
BadValue
);
EPHYR_RETURN_VAL_IF_FAIL
(
a_drawable
&&
port_priv
,
BadValue
);
...
...
@@ -1073,11 +1066,6 @@ ephyrGetVideo(KdScreenInfo * a_info,
goto
out
;
}
drw_x
=
clipped_area
.
x1
;
drw_y
=
clipped_area
.
y1
;
drw_w
=
clipped_area
.
x2
-
clipped_area
.
x1
;
drw_h
=
clipped_area
.
y2
-
clipped_area
.
y1
;
if
(
!
ephyrHostXVGetVideo
(
a_info
->
pScreen
->
myNum
,
port_priv
->
port_number
,
a_vid_x
,
a_vid_y
,
a_vid_w
,
a_vid_h
,
...
...
@@ -1104,7 +1092,6 @@ ephyrPutStill(KdScreenInfo * a_info,
EphyrPortPriv
*
port_priv
=
a_port_priv
;
BoxRec
clipped_area
,
dst_box
;
int
result
=
BadImplementation
;
int
drw_x
=
0
,
drw_y
=
0
,
drw_w
=
0
,
drw_h
=
0
;
EPHYR_RETURN_VAL_IF_FAIL
(
a_info
&&
a_info
->
pScreen
,
BadValue
);
EPHYR_RETURN_VAL_IF_FAIL
(
a_drawable
&&
port_priv
,
BadValue
);
...
...
@@ -1122,11 +1109,6 @@ ephyrPutStill(KdScreenInfo * a_info,
goto
out
;
}
drw_x
=
clipped_area
.
x1
;
drw_y
=
clipped_area
.
y1
;
drw_w
=
clipped_area
.
x2
-
clipped_area
.
x1
;
drw_h
=
clipped_area
.
y2
-
clipped_area
.
y1
;
if
(
!
ephyrHostXVPutStill
(
a_info
->
pScreen
->
myNum
,
port_priv
->
port_number
,
a_vid_x
,
a_vid_y
,
a_vid_w
,
a_vid_h
,
...
...
@@ -1153,7 +1135,6 @@ ephyrGetStill(KdScreenInfo * a_info,
EphyrPortPriv
*
port_priv
=
a_port_priv
;
BoxRec
clipped_area
,
dst_box
;
int
result
=
BadImplementation
;
int
drw_x
=
0
,
drw_y
=
0
,
drw_w
=
0
,
drw_h
=
0
;
EPHYR_RETURN_VAL_IF_FAIL
(
a_info
&&
a_info
->
pScreen
,
BadValue
);
EPHYR_RETURN_VAL_IF_FAIL
(
a_drawable
&&
port_priv
,
BadValue
);
...
...
@@ -1171,11 +1152,6 @@ ephyrGetStill(KdScreenInfo * a_info,
goto
out
;
}
drw_x
=
clipped_area
.
x1
;
drw_y
=
clipped_area
.
y1
;
drw_w
=
clipped_area
.
x2
-
clipped_area
.
x1
;
drw_h
=
clipped_area
.
y2
-
clipped_area
.
y1
;
if
(
!
ephyrHostXVGetStill
(
a_info
->
pScreen
->
myNum
,
port_priv
->
port_number
,
a_vid_x
,
a_vid_y
,
a_vid_w
,
a_vid_h
,
...
...
hw/kdrive/ephyr/hostx.c
View file @
116f0201
...
...
@@ -117,6 +117,8 @@ extern EphyrKeySyms ephyrKeySyms;
extern
int
monitorResolution
;
extern
Bool
EphyrWantResize
;
char
*
ephyrResName
=
NULL
;
int
ephyrResNameFromCmd
=
0
;
char
*
ephyrTitle
=
NULL
;
...
...
@@ -617,7 +619,8 @@ hostx_set_cmap_entry(unsigned char idx,
*/
void
*
hostx_screen_init
(
EphyrScreenInfo
screen
,
int
width
,
int
height
,
int
buffer_height
)
int
width
,
int
height
,
int
buffer_height
,
int
*
bytes_per_line
,
int
*
bits_per_pixel
)
{
int
bitmap_pad
;
Bool
shm_success
=
False
;
...
...
@@ -694,10 +697,13 @@ hostx_screen_init(EphyrScreenInfo screen,
malloc
(
host_screen
->
ximg
->
bytes_per_line
*
buffer_height
);
}
*
bytes_per_line
=
host_screen
->
ximg
->
bytes_per_line
;
*
bits_per_pixel
=
host_screen
->
ximg
->
bits_per_pixel
;
XResizeWindow
(
HostX
.
dpy
,
host_screen
->
win
,
width
,
height
);
/* Ask the WM to keep our size static */
if
(
host_screen
->
win_pre_existing
==
None
)
{
if
(
host_screen
->
win_pre_existing
==
None
&&
!
EphyrWantResize
)
{
size_hints
=
XAllocSizeHints
();
size_hints
->
max_width
=
size_hints
->
min_width
=
width
;
size_hints
->
max_height
=
size_hints
->
min_height
=
height
;
...
...
@@ -858,7 +864,7 @@ hostx_load_keymap(void)
(
max_keycode
-
min_keycode
+
1
)
*
width
);
if
(
!
ephyrKeySyms
.
map
)
return
;
goto
out
;
for
(
i
=
0
;
i
<
(
max_keycode
-
min_keycode
+
1
);
i
++
)
for
(
j
=
0
;
j
<
width
;
j
++
)
...
...
@@ -871,6 +877,7 @@ hostx_load_keymap(void)
ephyrKeySyms
.
maxKeyCode
=
max_keycode
;
ephyrKeySyms
.
mapWidth
=
width
;
out:
XFree
(
keymap
);
}
...
...
@@ -1011,19 +1018,27 @@ hostx_get_event(EphyrHostXEvent * ev)
case
ConfigureNotify
:
{
struct
EphyrHostScreen
*
host_screen
=
host_screen_from_window
(
xev
.
xconfigure
.
window
);
if
(
host_screen
&&
host_screen
->
win_pre_existing
!=
None
)
{
ev
->
type
=
EPHYR_EV_CONFIGURE
;
ev
->
data
.
configure
.
width
=
xev
.
xconfigure
.
width
;
ev
->
data
.
configure
.
height
=
xev
.
xconfigure
.
height
;
ev
->
data
.
configure
.
window
=
xev
.
xconfigure
.
window
;
ev
->
data
.
configure
.
screen
=
host_screen
->
mynum
;
return
1
;
struct
EphyrHostScreen
*
host_screen
;
/* event compression as for Expose events, cause
* we don't want to resize the framebuffer for
* every single change */
while
(
XCheckTypedWindowEvent
(
HostX
.
dpy
,
xev
.
xconfigure
.
window
,
ConfigureNotify
,
&
xev
));
host_screen
=
host_screen_from_window
(
xev
.
xconfigure
.
window
);
if
(
!
host_screen
||
(
host_screen
->
win_pre_existing
==
None
&&
!
EphyrWantResize
))
{
return
0
;
}
return
0
;
ev
->
type
=
EPHYR_EV_CONFIGURE
;
ev
->
data
.
configure
.
width
=
xev
.
xconfigure
.
width
;
ev
->
data
.
configure
.
height
=
xev
.
xconfigure
.
height
;
ev
->
data
.
configure
.
window
=
xev
.
xconfigure
.
window
;
ev
->
data
.
configure
.
screen
=
host_screen
->
mynum
;
return
1
;
}
default:
break
;
...
...
hw/kdrive/ephyr/hostx.h
View file @
116f0201
...
...
@@ -193,7 +193,8 @@ hostx_set_cmap_entry(unsigned char idx,
unsigned
char
r
,
unsigned
char
g
,
unsigned
char
b
);
void
*
hostx_screen_init
(
EphyrScreenInfo
screen
,
int
width
,
int
height
,
int
buffer_height
);
int
width
,
int
height
,
int
buffer_height
,
int
*
bytes_per_line
,
int
*
bits_per_pixel
);
void
...
...
hw/kdrive/fbdev/fbdev.c
View file @
116f0201
...
...
@@ -465,16 +465,6 @@ fbdevRandRSetConfig(ScreenPtr pScreen,
int
oldheight
;
int
oldmmwidth
;
int
oldmmheight
;
int
newwidth
,
newheight
;
if
(
screen
->
randr
&
(
RR_Rotate_0
|
RR_Rotate_180
))
{
newwidth
=
pSize
->
width
;
newheight
=
pSize
->
height
;
}
else
{
newwidth
=
pSize
->
height
;
newheight
=
pSize
->
width
;
}
if
(
wasEnabled
)
KdDisableScreen
(
pScreen
);
...
...
hw/kdrive/linux/mouse.c
View file @
116f0201
...
...
@@ -441,10 +441,8 @@ ps2SkipInit(KdPointerInfo * pi, int ninit, Bool ret_next)
{
Kmouse
*
km
=
pi
->
driverPrivate
;
int
c
=
-
1
;
int
skipping
;
Bool
waiting
;
skipping
=
0
;
waiting
=
FALSE
;
while
(
ninit
||
ret_next
)
{
c
=
MouseReadByte
(
&
km
->
iob
,
MOUSE_TIMEOUT
);
...
...
@@ -469,8 +467,6 @@ static Bool
ps2Init
(
KdPointerInfo
*
pi
)
{
Kmouse
*
km
=
pi
->
driverPrivate
;
int
skipping
;
Bool
waiting
;
int
id
;
unsigned
char
*
init
;
int
ninit
;
...
...
@@ -483,8 +479,6 @@ ps2Init(KdPointerInfo * pi)
*/
if
(
!
MouseWriteByte
(
km
->
iob
.
fd
,
PSMC_SEND_DEV_ID
,
100
))
return
FALSE
;
skipping
=
0
;
waiting
=
FALSE
;
id
=
ps2SkipInit
(
pi
,
0
,
TRUE
);
switch
(
id
)
{
case
3
:
...
...
hw/kdrive/src/kinput.c
View file @
116f0201
...
...
@@ -1821,16 +1821,11 @@ KdEnqueueKeyboardEvent(KdKeyboardInfo * ki,
unsigned
char
scan_code
,
unsigned
char
is_up
)
{
unsigned
char
key_code
;
KeyClassPtr
keyc
=
NULL
;
KeybdCtrl
*
ctrl
=
NULL
;
int
type
;
if
(
!
ki
||
!
ki
->
dixdev
||
!
ki
->
dixdev
->
kbdfeed
||
!
ki
->
dixdev
->
key
)
return
;
keyc
=
ki
->
dixdev
->
key
;
ctrl
=
&
ki
->
dixdev
->
kbdfeed
->
ctrl
;
if
(
scan_code
>=
ki
->
minScanCode
&&
scan_code
<=
ki
->
maxScanCode
)
{
key_code
=
scan_code
+
KD_MIN_KEYCODE
-
ki
->
minScanCode
;
...
...
@@ -1864,7 +1859,6 @@ void
KdEnqueuePointerEvent
(
KdPointerInfo
*
pi
,
unsigned
long
flags
,
int
rx
,
int
ry
,
int
rz
)
{
CARD32
ms
;
unsigned
char
buttons
;
int
x
,
y
,
z
;
int
(
*
matrix
)[
3
]
=
kdPointerMatrix
.
matrix
;
...
...
@@ -1875,8 +1869,6 @@ KdEnqueuePointerEvent(KdPointerInfo * pi, unsigned long flags, int rx, int ry,
if
(
!
pi
)
return
;
ms
=
GetTimeInMillis
();
/* we don't need to transform z, so we don't. */
if
(
flags
&
KD_MOUSE_DELTA
)
{
if
(
pi
->
transformCoordinates
)
{
...
...
hw/kdrive/src/kxv.c
View file @
116f0201
...
...
@@ -1174,7 +1174,6 @@ void
KdXVDisable
(
ScreenPtr
pScreen
)
{
XvScreenPtr
pxvs
;
KdXVScreenPtr
ScreenPriv
;
XvAdaptorPtr
pAdaptor
;
XvPortPtr
pPort
;
XvPortRecPrivatePtr
pPriv
;
...
...
@@ -1184,7 +1183,6 @@ KdXVDisable(ScreenPtr pScreen)
return
;
pxvs
=
GET_XV_SCREEN
(
pScreen
);
ScreenPriv
=
GET_KDXV_SCREEN
(
pScreen
);
for
(
i
=
0
;
i
<
pxvs
->
nAdaptors
;
i
++
)
{
pAdaptor
=
&
pxvs
->
pAdaptors
[
i
];
...
...
hw/xfree86/common/xf86Events.c
View file @
116f0201
...
...
@@ -413,7 +413,6 @@ static void
xf86VTSwitch
(
void
)
{
int
i
;
static
int
prevSIGIO
;
InputInfoPtr
pInfo
;
IHPtr
ih
;
...
...
hw/xfree86/common/xf86Mode.c
View file @
116f0201
...
...
@@ -1370,7 +1370,6 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
int
saveType
;
PixmapFormatRec
*
BankFormat
;
ClockRangePtr
cp
;
ClockRangePtr
storeClockRanges
;
int
numTimings
=
0
;
range
hsync
[
MAX_HSYNC
];
range
vrefresh
[
MAX_VREFRESH
];
...
...
@@ -1492,16 +1491,14 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
/*
* Store the clockRanges for later use by the VidMode extension.
*/
storeClockRanges
=
scrp
->
clockRanges
;
while
(
storeClockRanges
!=
NULL
)
{
storeClockRanges
=
storeClockRanges
->
next
;
}
for
(
cp
=
clockRanges
;
cp
!=
NULL
;
cp
=
cp
->
next
,
storeClockRanges
=
storeClockRanges
->
next
)
{
storeClockRanges
=
xnfalloc
(
sizeof
(
ClockRange
));
nt_list_for_each_entry
(
cp
,
clockRanges
,
next
)
{
ClockRangePtr
newCR
=
xnfalloc
(
sizeof
(
ClockRange
));
memcpy
(
newCR
,
cp
,
sizeof
(
ClockRange
));
newCR
->
next
=
NULL
;
if
(
scrp
->
clockRanges
==
NULL
)
scrp
->
clockRanges
=
storeClockRanges
;
memcpy
(
storeClockRanges
,
cp
,
sizeof
(
ClockRange
));
scrp
->
clockRanges
=
newCR
;
else
nt_list_append
(
newCR
,
scrp
->
clockRanges
,
ClockRange
,
next
);
}
/* Determine which pixmap format to pass to scanLineWidth() */
...
...
hw/xfree86/common/xf86Option.c
View file @
116f0201
...
...
@@ -743,7 +743,7 @@ xf86TokenToOptName(const OptionInfoRec * table, int token)
const
OptionInfoRec
*
p
;
p
=
xf86TokenToOptinfo
(
table
,
token
);
return
p
->
name
;
return
p
?
p
->
name
:
NULL
;
}
Bool
...
...
hw/xfree86/common/xf86fbman.c
View file @
116f0201
...
...
@@ -320,15 +320,17 @@ localRegisterFreeBoxCallback(ScreenPtr pScreen,
newCallbacks
=
realloc
(
offman
->
FreeBoxesUpdateCallback
,
sizeof
(
FreeBoxCallbackProcPtr
)
*
(
offman
->
NumCallbacks
+
1
));
if
(
!
newCallbacks
)
return
FALSE
;
else
offman
->
FreeBoxesUpdateCallback
=
newCallbacks
;
newPrivates
=
realloc
(
offman
->
devPrivates
,
sizeof
(
DevUnion
)
*
(
offman
->
NumCallbacks
+
1
));
if
(
!
newCallbacks
||
!
newPrivates
)
if
(
!
newPrivates
)
return
FALSE
;
offman
->
FreeBoxesUpdateCallback
=
newCallbacks
;
offman
->
devPrivates
=
newPrivates
;
else
offman
->
devPrivates
=
newPrivates
;
offman
->
FreeBoxesUpdateCallback
[
offman
->
NumCallbacks
]
=
FreeBoxCallback
;
offman
->
devPrivates
[
offman
->
NumCallbacks
].
ptr
=
devPriv
;
...
...
hw/xfree86/common/xf86xvmc.c
View file @
116f0201
...
...
@@ -158,8 +158,10 @@ xf86XvMCScreenInit(ScreenPtr pScreen,
if
(
!
(
pAdapt
=
malloc
(
sizeof
(
XvMCAdaptorRec
)
*
num_adaptors
)))
return
FALSE
;
if
(
!
dixRegisterPrivateKey
(
&
XF86XvMCScreenKeyRec
,
PRIVATE_SCREEN
,
0
))