Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
fec46290
Commit
fec46290
authored
Dec 30, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagent: treat all Traps as Booleans everywhere
parent
42f76dde
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
67 additions
and
67 deletions
+67
-67
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+3
-3
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+1
-1
Drawable.c
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+4
-4
GC.c
nx-X11/programs/Xserver/hw/nxagent/GC.c
+12
-12
GCOps.c
nx-X11/programs/Xserver/hw/nxagent/GCOps.c
+14
-14
Image.c
nx-X11/programs/Xserver/hw/nxagent/Image.c
+15
-15
NXwindow.c
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
+1
-1
Pixels.h
nx-X11/programs/Xserver/hw/nxagent/Pixels.h
+1
-1
Pixmap.c
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+1
-1
Render.c
nx-X11/programs/Xserver/hw/nxagent/Render.c
+1
-1
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+8
-8
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+6
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
fec46290
...
...
@@ -1075,7 +1075,7 @@ static void nxagentParseSingleOption(char *name, char *value)
}
else
if
(
!
strcmp
(
name
,
"render"
))
{
if
(
nxagentReconnectTrap
==
True
)
if
(
nxagentReconnectTrap
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentParseSingleOption: Ignoring option 'render' at reconnection.
\n
"
);
...
...
@@ -1106,7 +1106,7 @@ static void nxagentParseSingleOption(char *name, char *value)
}
else
if
(
!
strcmp
(
name
,
"fullscreen"
))
{
if
(
nxagentReconnectTrap
==
True
)
if
(
nxagentReconnectTrap
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentParseSingleOption: Ignoring option 'fullscreen' at reconnection.
\n
"
);
...
...
@@ -1268,7 +1268,7 @@ static void nxagentParseSingleOption(char *name, char *value)
}
else
if
(
!
strcmp
(
name
,
"autodpi"
))
{
if
(
nxagentReconnectTrap
==
True
)
if
(
nxagentReconnectTrap
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentParseSingleOption: Ignoring option 'autodpi' at reconnection.
\n
"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
fec46290
...
...
@@ -1571,7 +1571,7 @@ void nxagentSetSelectionCallback(CallbackListPtr *callbacks, void *data,
* way to identify that situation during callback processing we
* could get rid of the Trap...
*/
if
(
nxagentExternalClipboardEventTrap
!=
0
)
if
(
nxagentExternalClipboardEventTrap
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Trap is set, doing nothing
\n
"
,
__func__
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
View file @
fec46290
...
...
@@ -144,7 +144,7 @@ int nxagentSynchronizeDrawable(DrawablePtr pDrawable, int wait, unsigned int bre
{
pDrawable
=
nxagentSplitDrawable
(
pDrawable
);
if
(
nxagentLosslessTrap
==
0
)
if
(
!
nxagentLosslessTrap
)
{
if
(
nxagentDrawableStatus
(
pDrawable
)
==
Synchronized
)
{
...
...
@@ -257,7 +257,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
* copy with lossless compression turned off.
*/
if
(
nxagentLosslessTrap
==
1
)
if
(
nxagentLosslessTrap
)
{
#ifdef TEST
fprintf
(
stderr
,
"%s: Forcing synchronization of pixmap at [%p] with lossless compression.
\n
"
,
...
...
@@ -266,7 +266,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
return
reallySynchronizeDrawableData
(
pDrawable
);
}
else
if
(
nxagentReconnectTrap
==
1
)
else
if
(
nxagentReconnectTrap
)
{
/*
* The pixmap data is not synchronized unless we need it. We
...
...
@@ -277,7 +277,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
if
(
pDrawable
->
depth
==
1
)
{
#ifdef TEST
if
(
nxagentReconnectTrap
==
1
)
if
(
nxagentReconnectTrap
)
{
static
int
totalLength
;
static
int
totalReconnectedPixmaps
;
...
...
nx-X11/programs/Xserver/hw/nxagent/GC.c
View file @
fec46290
...
...
@@ -317,7 +317,7 @@ void nxagentChangeGC(GCPtr pGC, unsigned long mask)
else
{
if
(
nxagentDrawableStatus
((
DrawablePtr
)
pGC
->
tile
.
pixmap
)
==
NotSynchronized
&&
nxagentGCTrap
==
0
)
!
nxagentGCTrap
)
{
/*
* If the tile is corrupted and is not too large, it can be
...
...
@@ -367,7 +367,7 @@ void nxagentChangeGC(GCPtr pGC, unsigned long mask)
if
(
mask
&
GCStipple
)
{
if
(
nxagentDrawableStatus
((
DrawablePtr
)
pGC
->
stipple
)
==
NotSynchronized
&&
nxagentGCTrap
==
0
)
!
nxagentGCTrap
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentChangeGC: WARNING! Synchronizing GC at [%p] due the stipple at [%p].
\n
"
,
...
...
@@ -425,7 +425,7 @@ void nxagentChangeGC(GCPtr pGC, unsigned long mask)
{
mask
&=
~
GCDashList
;
if
(
nxagentGCTrap
==
0
)
if
(
!
nxagentGCTrap
)
{
XSetDashes
(
nxagentDisplay
,
nxagentGC
(
pGC
),
pGC
->
dashOffset
,
(
char
*
)
pGC
->
dash
,
pGC
->
numInDashList
);
...
...
@@ -434,7 +434,7 @@ void nxagentChangeGC(GCPtr pGC, unsigned long mask)
CHECKGCVAL
(
GCArcMode
,
arc_mode
,
pGC
->
arcMode
);
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentChangeGC: Skipping change of GC at [%p] on the real X server.
\n
"
,
...
...
@@ -544,7 +544,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
{
case
CT_NONE
:
{
if
(
clipsMatch
==
0
&&
nxagentGCTrap
==
0
)
if
(
clipsMatch
==
0
&&
!
nxagentGCTrap
)
{
XSetClipMask
(
nxagentDisplay
,
nxagentGC
(
pGC
),
None
);
}
...
...
@@ -552,7 +552,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
}
case
CT_REGION
:
{
if
(
clipsMatch
==
0
&&
nxagentGCTrap
==
0
)
if
(
clipsMatch
==
0
&&
!
nxagentGCTrap
)
{
XRectangle
*
pRects
;
nRects
=
RegionNumRects
((
RegionPtr
)
pValue
);
...
...
@@ -576,7 +576,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
}
case
CT_PIXMAP
:
{
if
(
nxagentGCTrap
==
0
)
if
(
!
nxagentGCTrap
)
{
XSetClipMask
(
nxagentDisplay
,
nxagentGC
(
pGC
),
nxagentPixmap
((
PixmapPtr
)
pValue
));
...
...
@@ -594,7 +594,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
}
case
CT_UNSORTED
:
{
if
(
clipsMatch
==
0
&&
nxagentGCTrap
==
0
)
if
(
clipsMatch
==
0
&&
!
nxagentGCTrap
)
{
XSetClipRectangles
(
nxagentDisplay
,
nxagentGC
(
pGC
),
pGC
->
clipOrg
.
x
,
pGC
->
clipOrg
.
y
,
...
...
@@ -604,7 +604,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
}
case
CT_YSORTED
:
{
if
(
clipsMatch
==
0
&&
nxagentGCTrap
==
0
)
if
(
clipsMatch
==
0
&&
!
nxagentGCTrap
)
{
XSetClipRectangles
(
nxagentDisplay
,
nxagentGC
(
pGC
),
pGC
->
clipOrg
.
x
,
pGC
->
clipOrg
.
y
,
...
...
@@ -614,7 +614,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
}
case
CT_YXSORTED
:
{
if
(
clipsMatch
==
0
&&
nxagentGCTrap
==
0
)
if
(
clipsMatch
==
0
&&
!
nxagentGCTrap
)
{
XSetClipRectangles
(
nxagentDisplay
,
nxagentGC
(
pGC
),
pGC
->
clipOrg
.
x
,
pGC
->
clipOrg
.
y
,
...
...
@@ -624,7 +624,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
}
case
CT_YXBANDED
:
{
if
(
clipsMatch
==
0
&&
nxagentGCTrap
==
0
)
if
(
clipsMatch
==
0
&&
!
nxagentGCTrap
)
{
XSetClipRectangles
(
nxagentDisplay
,
nxagentGC
(
pGC
),
pGC
->
clipOrg
.
x
,
pGC
->
clipOrg
.
y
,
...
...
@@ -679,7 +679,7 @@ void nxagentDestroyClip(GCPtr pGC)
nxagentDestroyClipHelper
(
pGC
);
if
(
nxagentGCTrap
==
0
)
if
(
!
nxagentGCTrap
)
{
XSetClipMask
(
nxagentDisplay
,
nxagentGC
(
pGC
),
None
);
}
...
...
nx-X11/programs/Xserver/hw/nxagent/GCOps.c
View file @
fec46290
...
...
@@ -664,7 +664,7 @@ RegionPtr nxagentCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
}
if
(
nxagentGCTrap
==
1
||
nxagentShmTrap
==
1
)
if
(
nxagentGCTrap
||
nxagentShmTrap
)
{
if
(
pSrcDrawable
->
type
==
DRAWABLE_PIXMAP
&&
pDstDrawable
->
type
==
DRAWABLE_PIXMAP
)
...
...
@@ -890,7 +890,7 @@ RegionPtr nxagentCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
(
void
*
)
pDstDrawable
,
srcx
,
srcy
,
dstx
,
dsty
,
width
,
height
);
#endif
if
(
nxagentGCTrap
==
1
||
nxagentShmTrap
==
1
)
if
(
nxagentGCTrap
||
nxagentShmTrap
)
{
if
(
pSrcDrawable
->
type
==
DRAWABLE_PIXMAP
&&
pDstDrawable
->
type
==
DRAWABLE_PIXMAP
)
...
...
@@ -1073,7 +1073,7 @@ void nxagentPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode,
(
void
*
)
pDrawable
,
(
void
*
)
pGC
,
nPoints
);
#endif
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1130,7 +1130,7 @@ void nxagentPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode,
void
nxagentPolyLines
(
DrawablePtr
pDrawable
,
GCPtr
pGC
,
int
mode
,
int
nPoints
,
xPoint
*
pPoints
)
{
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1203,7 +1203,7 @@ void nxagentPolySegment(DrawablePtr pDrawable, GCPtr pGC,
#endif
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1280,7 +1280,7 @@ void nxagentPolyRectangle(DrawablePtr pDrawable, GCPtr pGC,
#endif
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1345,7 +1345,7 @@ void nxagentPolyRectangle(DrawablePtr pDrawable, GCPtr pGC,
void
nxagentPolyArc
(
DrawablePtr
pDrawable
,
GCPtr
pGC
,
int
nArcs
,
xArc
*
pArcs
)
{
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1404,7 +1404,7 @@ void nxagentFillPolygon(DrawablePtr pDrawable, GCPtr pGC, int shape,
{
xPoint
*
newPoints
=
NULL
;
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1518,7 +1518,7 @@ void nxagentPolyFillRect(DrawablePtr pDrawable, GCPtr pGC,
#endif
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1663,7 +1663,7 @@ void nxagentPolyFillRect(DrawablePtr pDrawable, GCPtr pGC,
void
nxagentPolyFillArc
(
DrawablePtr
pDrawable
,
GCPtr
pGC
,
int
nArcs
,
xArc
*
pArcs
)
{
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1739,7 +1739,7 @@ int nxagentPolyText8(DrawablePtr pDrawable, GCPtr pGC, int x,
int
width
=
XTextWidth
(
nxagentFontStruct
(
pGC
->
font
),
string
,
count
);
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1809,7 +1809,7 @@ int nxagentPolyText16(DrawablePtr pDrawable, GCPtr pGC, int x,
int
width
=
XTextWidth16
(
nxagentFontStruct
(
pGC
->
font
),
(
XChar2b
*
)
string
,
count
);
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1868,7 +1868,7 @@ int nxagentPolyText16(DrawablePtr pDrawable, GCPtr pGC, int x,
void
nxagentImageText8
(
DrawablePtr
pDrawable
,
GCPtr
pGC
,
int
x
,
int
y
,
int
count
,
char
*
string
)
{
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -1925,7 +1925,7 @@ void nxagentImageText8(DrawablePtr pDrawable, GCPtr pGC, int x,
void
nxagentImageText16
(
DrawablePtr
pDrawable
,
GCPtr
pGC
,
int
x
,
int
y
,
int
count
,
unsigned
short
*
string
)
{
if
(
nxagentGCTrap
==
1
)
if
(
nxagentGCTrap
)
{
if
((
pDrawable
)
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
nx-X11/programs/Xserver/hw/nxagent/Image.c
View file @
fec46290
...
...
@@ -403,7 +403,7 @@ FIXME: Here the split trap is always set and so the caching of the
resource
,
nxagentSplitTrap
);
#endif
if
(
nxagentSplitTrap
==
1
||
nxagentUnpackAlpha
[
resource
]
==
NULL
||
if
(
nxagentSplitTrap
||
nxagentUnpackAlpha
[
resource
]
==
NULL
||
nxagentUnpackAlpha
[
resource
]
->
size
!=
size
||
memcmp
(
nxagentUnpackAlpha
[
resource
]
->
data
,
data
,
size
)
!=
0
)
{
...
...
@@ -562,8 +562,8 @@ FIXME: Should use these.
int framebuffer = 1;
int realize = 1;
*/
if
(
nxagentGCTrap
==
1
&&
nxagentReconnectTrap
==
0
&&
nxagentFBTrap
==
0
&&
nxagentShmTrap
==
0
)
if
(
nxagentGCTrap
&&
!
nxagentReconnectTrap
&&
!
nxagentFBTrap
&&
!
nxagentShmTrap
)
{
if
(
pDrawable
->
type
==
DRAWABLE_PIXMAP
)
{
...
...
@@ -579,11 +579,11 @@ FIXME: Should use these.
goto
nxagentPutImageEnd
;
}
if
(
nxagentReconnectTrap
==
0
&&
nxagentSplitTrap
==
0
)
if
(
!
nxagentReconnectTrap
&&
!
nxagentSplitTrap
)
{
if
(
pDrawable
->
type
==
DRAWABLE_PIXMAP
&&
nxagentFBTrap
==
0
&&
nxagentShmTrap
==
0
)
!
nxagentFBTrap
&&
!
nxagentShmTrap
)
{
fbPutImage
(
nxagentVirtualDrawable
(
pDrawable
),
pGC
,
depth
,
dstX
,
dstY
,
dstWidth
,
dstHeight
,
leftPad
,
format
,
data
);
...
...
@@ -683,8 +683,8 @@ FIXME: Do we stream the images from GLX or Xv? If we do that, we
/*
FIXME: Temporarily stream the GLX data.
&&
nxagentGlxTrap == 0
&&
nxagentXvTrap == 0
&&
!nxagentGlxTrap
&&
!nxagentXvTrap
*/
);
...
...
@@ -692,11 +692,11 @@ FIXME: Temporarily stream the GLX data.
* Never split images whose depth is less than 15.
*/
if
(
split
==
1
&&
(
nxagentSplitTrap
==
1
||
depth
<
15
))
if
(
split
==
1
&&
(
nxagentSplitTrap
||
depth
<
15
))
{
#ifdef TEST
if
(
nxagentSplitTrap
==
1
||
nxagentReconnectTrap
==
1
)
if
(
nxagentSplitTrap
||
nxagentReconnectTrap
)
{
fprintf
(
stderr
,
"nxagentPutImage: Not splitting with reconnection [%d] trap [%d] "
"depth [%d].
\n
"
,
nxagentSplitTrap
,
nxagentReconnectTrap
,
depth
);
...
...
@@ -734,7 +734,7 @@ FIXME: Temporarily stream the GLX data.
*/
if
(
nxagentOption
(
LinkType
)
!=
LINK_TYPE_NONE
&&
(
nxagentGlxTrap
==
1
||
nxagentXvTrap
==
1
))
(
nxagentGlxTrap
||
nxagentXvTrap
))
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentPutImage: Disabling the use of the cache with GLX or Xvideo.
\n
"
);
...
...
@@ -1145,7 +1145,7 @@ FIXME: Should use an unpack resource here.
if
(
w
<=
IMAGE_PACK_WIDTH
||
h
<=
IMAGE_PACK_HEIGHT
||
nxagentImageLength
(
w
,
h
,
format
,
leftPad
,
depth
)
<=
IMAGE_PACK_LENGTH
||
nxagentLosslessTrap
==
1
)
IMAGE_PACK_LENGTH
||
nxagentLosslessTrap
)
{
if
(
nxagentPackLossless
==
PACK_NONE
)
{
...
...
@@ -1219,8 +1219,8 @@ FIXME: Should try to locate the image anyway, if the lossless trap is
method.
*/
if
(
nxagentNeedCache
(
plainImage
,
packMethod
)
&&
nxagentGlxTrap
==
0
&&
nxagentXvTrap
==
0
&&
nxagentLosslessTrap
==
0
&&
NXImageCacheSize
>
0
)
!
nxagentGlxTrap
&&
!
nxagentXvTrap
&&
!
nxagentLosslessTrap
&&
NXImageCacheSize
>
0
)
{
/*
* Be sure that the padding bits are cleaned before calculating
...
...
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
View file @
fec46290
...
...
@@ -392,7 +392,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
if
(
nxagentOption
(
Rootless
)
&&
nxagentWindowTopLevel
(
pWin
)
&&
pWin
->
overrideRedirect
==
0
&&
nxagentScreenTrap
==
0
)
!
nxagentScreenTrap
)
{
nxagentConfigureRootlessWindow
(
pWin
,
x
,
y
,
w
,
h
,
bw
,
pSib
,
smode
,
mask
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixels.h
View file @
fec46290
...
...
@@ -145,7 +145,7 @@ FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
#define NXAGENT_SHOULD_DEFER_PUTIMAGE(pDrawable) \
(
nxagentSplitTrap == 0
&& \
(
!nxagentSplitTrap
&& \
nxagentOption(DeferLevel) > 0)
/*
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
View file @
fec46290
...
...
@@ -200,7 +200,7 @@ PixmapPtr nxagentCreatePixmap(ScreenPtr pScreen, int width, int height,
* checksum.
*/
if
(
width
!=
0
&&
height
!=
0
&&
nxagentGCTrap
==
0
)
if
(
width
!=
0
&&
height
!=
0
&&
!
nxagentGCTrap
)
{
pPixmapPriv
->
id
=
XCreatePixmap
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
...
...
nx-X11/programs/Xserver/hw/nxagent/Render.c
View file @
fec46290
...
...
@@ -2252,7 +2252,7 @@ void nxagentReconnectGlyphSet(void* p0, XID x1, void *p2)
{
GlyphSetPtr
pGly
=
(
GlyphSetPtr
)
p0
;
if
(
nxagentReconnectTrap
==
0
)
if
(
!
nxagentReconnectTrap
)
{
int
i
;
XRenderPictFormat
*
pForm
=
NULL
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
fec46290
...
...
@@ -849,7 +849,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
pScreen
->
myNum
);
#endif
if
(
nxagentRenderEnable
&&
nxagentReconnectTrap
==
False
)
if
(
nxagentRenderEnable
&&
!
nxagentReconnectTrap
)
{
PictureScreenPrivateIndex
=
-
1
;
}
...
...
@@ -904,7 +904,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
* user geometry then.
*/
if
(
nxagentReconnectTrap
==
False
&&
!
nxagentOption
(
Rootless
))
if
(
!
nxagentReconnectTrap
&&
!
nxagentOption
(
Rootless
))
{
if
(
nxagentUserGeometry
.
flag
&
XValue
)
{
...
...
@@ -957,7 +957,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
nxagentChangeOption
(
Fullscreen
,
True
);
if
(
nxagentOption
(
ClientOs
)
==
ClientOsWinnt
&&
(
nxagentReconnectTrap
==
False
||
nxagentResizeDesktopAtStartup
))
(
!
nxagentReconnectTrap
||
nxagentResizeDesktopAtStartup
))
{
NXSetExposeParameters
(
nxagentDisplay
,
0
,
0
,
0
);
}
...
...
@@ -996,7 +996,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
nxagentChangeOption
(
Height
,
h
);
/* first time screen initialization or resize during reconnect */
if
(
nxagentReconnectTrap
==
False
||
nxagentResizeDesktopAtStartup
)
if
(
!
nxagentReconnectTrap
||
nxagentResizeDesktopAtStartup
)
{
if
(
nxagentOption
(
RootWidth
)
>=
w
)
{
...
...
@@ -1049,7 +1049,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
* screen is initialized for the first time.
*/
if
(
nxagentReconnectTrap
==
False
)
if
(
!
nxagentReconnectTrap
)
{
nxagentChangeOption
(
RootX
,
0
);
nxagentChangeOption
(
RootY
,
0
);
...
...
@@ -1088,7 +1088,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
* the root window isn't bigger than the X server root window..
*/
if
(
nxagentReconnectTrap
==
False
)
if
(
!
nxagentReconnectTrap
)
{
if
((
nxagentOption
(
RootWidth
)
<
w
)
&&
!
(
nxagentUserGeometry
.
flag
&
WidthValue
))
...
...
@@ -1120,7 +1120,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
nxagentChangeOption
(
ViewportXSpan
,
nxagentOption
(
Width
)
-
nxagentOption
(
RootWidth
));
nxagentChangeOption
(
ViewportYSpan
,
nxagentOption
(
Height
)
-
nxagentOption
(
RootHeight
));
if
(
nxagentReconnectTrap
==
0
)
if
(
!
nxagentReconnectTrap
)
{
if
(
nxagentOption
(
Persistent
))
{
...
...
@@ -1658,7 +1658,7 @@ N/A
#endif
if
(
nxagentDoFullGeneration
==
1
||
nxagentReconnectTrap
==
1
)
nxagentReconnectTrap
)
{
unsigned
long
valuemask
=
CWBackPixel
|
CWEventMask
|
CWColormap
;
XSetWindowAttributes
attributes
=
{
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
fec46290
...
...
@@ -548,7 +548,7 @@ Bool nxagentDestroyWindow(WindowPtr pWin)
{
nxagentPrivWindowPtr
pWindowPriv
;
if
(
nxagentScreenTrap
==
1
)
if
(
nxagentScreenTrap
)
{
return
1
;
}
...
...
@@ -672,7 +672,7 @@ Bool nxagentDestroyWindow(WindowPtr pWin)
*/
Bool
nxagentPositionWindow
(
WindowPtr
pWin
,
int
x
,
int
y
)
{
if
(
nxagentScreenTrap
==
1
)
if
(
nxagentScreenTrap
)
{
return
True
;
}
...
...
@@ -690,7 +690,7 @@ Bool nxagentPositionWindow(WindowPtr pWin, int x, int y)
void
nxagentRestackWindow
(
WindowPtr
pWin
,
WindowPtr
pOldNextSib
)
{
if
(
nxagentScreenTrap
==
1
)
if
(
nxagentScreenTrap
)
{
return
;
}
...
...
@@ -1250,7 +1250,7 @@ void nxagentConfigureWindow(WindowPtr pWin, unsigned int mask)
int
offX
=
nxagentWindowPriv
(
pWin
)
->
x
-
pWin
->
origin
.
x
;
int
offY
=
nxagentWindowPriv
(
pWin
)
->
y
-
pWin
->
origin
.
y
;
if
(
nxagentScreenTrap
==
1
)
if
(
nxagentScreenTrap
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentConfigureWindow: WARNING: Called with the screen trap set.
\n
"
);
...
...
@@ -1877,7 +1877,7 @@ void nxagentSetWMState(WindowPtr pWin, CARD32 desired)
-+ */
Bool
nxagentRealizeWindow
(
WindowPtr
pWin
)
{
if
(
nxagentScreenTrap
==
1
)
if
(
nxagentScreenTrap
)
{
return
True
;
}
...
...
@@ -2573,7 +2573,7 @@ void nxagentMapDefaultWindows(void)
* nxagentReconnectAllWindows, after the Root Window is mapped.
*/
if
(
nxagentReconnectTrap
==
0
)
if
(
!
nxagentReconnectTrap
)
{
XRaiseWindow
(
nxagentDisplay
,
nxagentInputWindows
[
pScreen
->
myNum
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment