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
209c8d8c
Commit
209c8d8c
authored
Jan 04, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen.c: harmonize size/wmhints code
parent
4b9466ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
21 deletions
+11
-21
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+11
-21
No files found.
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
209c8d8c
...
...
@@ -454,8 +454,6 @@ Window nxagentCreateIconWindow(void)
*/
XSizeHints
*
sizeHints
=
XAllocSizeHints
();
XWMHints
*
wmHints
=
XAllocWMHints
();;
if
(
sizeHints
)
{
sizeHints
->
flags
=
PMinSize
|
PMaxSize
;
...
...
@@ -463,27 +461,23 @@ Window nxagentCreateIconWindow(void)
sizeHints
->
min_height
=
sizeHints
->
max_height
=
1
;
}
XWMHints
*
wmHints
=
XAllocWMHints
();;
if
(
wmHints
)
{
wmHints
->
flags
=
IconPixmapHint
|
IconMask
Hint
;
wmHints
->
flags
=
StateHint
|
IconPixmap
Hint
;
wmHints
->
initial_state
=
IconicState
;
wmHints
->
icon_pixmap
=
nxagentIconPixmap
;
if
(
useXpmIcon
)
{
wmHints
->
flags
|=
IconMaskHint
;
wmHints
->
icon_mask
=
nxagentIconShape
;
wmHints
->
flags
=
IconPixmapHint
|
IconMaskHint
;
}
else
{
wmHints
->
flags
=
StateHint
|
IconPixmapHint
;
}
}
char
*
window_name
=
nxagentWindowName
;
Xutf8SetWMProperties
(
nxagentDisplay
,
w
,
window_name
,
window_n
ame
,
NULL
,
0
,
sizeHints
,
wmHints
,
NULL
);
nxagentWindowName
,
nxagentWindowN
ame
,
NULL
,
0
,
sizeHints
,
wmHints
,
NULL
);
SAFE_XFree
(
sizeHints
);
SAFE_XFree
(
wmHints
);
...
...
@@ -1901,10 +1895,8 @@ N/A
XSelectInput
(
nxagentDisplay
,
nxagentFullscreenWindow
,
mask
);
}
XSizeHints
*
sizeHints
;
XWMHints
*
wmHints
;
if
((
sizeHints
=
XAllocSizeHints
()))
XSizeHints
*
sizeHints
=
XAllocSizeHints
();
if
(
sizeHints
)
{
sizeHints
->
flags
=
PPosition
|
PMinSize
|
PMaxSize
;
sizeHints
->
x
=
nxagentOption
(
X
)
+
POSITION_OFFSET
;
...
...
@@ -1932,18 +1924,16 @@ N/A
sizeHints
->
flags
|=
USSize
;
}
if
((
wmHints
=
XAllocWMHints
()))
XWMHints
*
wmHints
=
XAllocWMHints
();
if
(
wmHints
)
{
wmHints
->
flags
=
IconPixmapHint
;
wmHints
->
icon_pixmap
=
nxagentIconPixmap
;
if
(
useXpmIcon
)
{
wmHints
->
flags
|=
IconMaskHint
;
wmHints
->
icon_mask
=
nxagentIconShape
;
wmHints
->
flags
=
IconPixmapHint
|
IconMaskHint
;
}
else
{
wmHints
->
flags
=
IconPixmapHint
;
}
}
...
...
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