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
9937fbdf
Commit
9937fbdf
authored
Apr 10, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen.c: replace XSetWMNormalHints code block by already existing function
nxagentSetWMNormalHints was slightly adapted therefore
parent
985bed95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
38 deletions
+7
-38
Extensions.c
nx-X11/programs/Xserver/hw/nxagent/Extensions.c
+1
-1
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+5
-36
Screen.h
nx-X11/programs/Xserver/hw/nxagent/Screen.h
+1
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Extensions.c
View file @
9937fbdf
...
...
@@ -470,7 +470,7 @@ int nxagentRandRScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height,
nxagentOption
(
Fullscreen
)
==
0
&&
nxagentOption
(
AllScreens
)
==
0
)
{
nxagentRandRSetWindowsSize
(
width
,
height
);
nxagentSetWMNormalHints
(
pScreen
->
myNum
);
nxagentSetWMNormalHints
(
pScreen
->
myNum
,
nxagentOption
(
Width
),
nxagentOption
(
Height
)
);
}
nxagentMoveViewport
(
pScreen
,
0
,
0
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
9937fbdf
...
...
@@ -2281,7 +2281,6 @@ Bool nxagentResizeScreen(ScreenPtr pScreen, int width, int height,
int
mmWidth
,
int
mmHeight
)
{
BoxRec
box
;
XSizeHints
sizeHints
;
PixmapPtr
pPixmap
;
char
*
fbBits
;
...
...
@@ -2407,37 +2406,7 @@ FIXME: We should try to restore the previously
if
((
nxagentOption
(
Fullscreen
)
==
0
&&
nxagentOption
(
AllScreens
)
==
0
))
{
sizeHints
.
flags
=
PPosition
|
PMinSize
|
PMaxSize
;
sizeHints
.
x
=
nxagentOption
(
X
);
sizeHints
.
y
=
nxagentOption
(
Y
);
sizeHints
.
min_width
=
MIN_NXAGENT_WIDTH
;
sizeHints
.
min_height
=
MIN_NXAGENT_HEIGHT
;
sizeHints
.
width
=
width
;
sizeHints
.
height
=
height
;
if
(
nxagentOption
(
DesktopResize
)
==
1
)
{
sizeHints
.
max_width
=
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
));
sizeHints
.
max_height
=
HeightOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
));
}
else
{
sizeHints
.
max_width
=
nxagentOption
(
RootWidth
);
sizeHints
.
max_height
=
nxagentOption
(
RootHeight
);
}
if
(
nxagentUserGeometry
.
flag
&
XValue
||
nxagentUserGeometry
.
flag
&
YValue
)
{
sizeHints
.
flags
|=
USPosition
;
}
if
(
nxagentUserGeometry
.
flag
&
WidthValue
||
nxagentUserGeometry
.
flag
&
HeightValue
)
{
sizeHints
.
flags
|=
USSize
;
}
XSetWMNormalHints
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
&
sizeHints
);
nxagentSetWMNormalHints
(
pScreen
->
myNum
,
width
,
height
);
XResizeWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
width
,
height
);
...
...
@@ -2838,7 +2807,7 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
{
nxagentShadowSetWindowsSize
();
nxagentSetWMNormalHints
(
0
);
nxagentSetWMNormalHints
(
0
,
nxagentOption
(
Width
),
nxagentOption
(
Height
)
);
}
XMapWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
0
]);
...
...
@@ -4557,7 +4526,7 @@ void nxagentRestoreAreas(PixmapPtr pPixmap, RegionPtr prgnRestore, int xorg,
return
;
}
void
nxagentSetWMNormalHints
(
int
screen
)
void
nxagentSetWMNormalHints
(
int
screen
,
int
width
,
int
height
)
{
XSizeHints
sizeHints
;
...
...
@@ -4572,8 +4541,8 @@ void nxagentSetWMNormalHints(int screen)
sizeHints
.
min_width
=
MIN_NXAGENT_WIDTH
;
sizeHints
.
min_height
=
MIN_NXAGENT_HEIGHT
;
sizeHints
.
width
=
nxagentOption
(
Width
)
;
sizeHints
.
height
=
nxagentOption
(
Height
)
;
sizeHints
.
width
=
width
;
sizeHints
.
height
=
height
;
if
(
nxagentOption
(
DesktopResize
)
==
1
)
{
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.h
View file @
9937fbdf
...
...
@@ -130,7 +130,7 @@ int nxagentShadowPoll(PixmapPtr, GCPtr, unsigned char, int, int, char *, int *,
void
nxagentShadowSetWindowsSize
(
void
);
void
nxagentSetWMNormalHints
(
int
);
void
nxagentSetWMNormalHints
(
int
,
int
,
int
);
void
nxagentShadowSetRatio
(
float
,
float
);
...
...
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