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
b517b66e
Unverified
Commit
b517b66e
authored
Aug 22, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/fix_wm_props' into 3.6.x
Attributes GH PR #721:
https://github.com/ArcticaProject/nx-libs/pull/721
parents
f9e4a54c
f9c2d560
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+19
-12
No files found.
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
b517b66e
...
...
@@ -853,8 +853,6 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
unsigned
long
valuemask
;
XSetWindowAttributes
attributes
;
XWindowAttributes
gattributes
;
XSizeHints
*
sizeHints
;
XWMHints
*
wmHints
;
Mask
mask
;
Bool
resetAgentPosition
=
False
;
...
...
@@ -1870,6 +1868,9 @@ N/A
XSelectInput
(
nxagentDisplay
,
nxagentFullscreenWindow
,
mask
);
}
XSizeHints
*
sizeHints
;
XWMHints
*
wmHints
;
if
((
sizeHints
=
XAllocSizeHints
()))
{
sizeHints
->
flags
=
PPosition
|
PMinSize
|
PMaxSize
;
...
...
@@ -1898,15 +1899,6 @@ N/A
sizeHints
->
flags
|=
USSize
;
}
Xutf8SetWMProperties
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
nxagentWindowName
,
nxagentWindowName
,
argv
,
argc
,
&
sizeHints
,
&
wmHints
,
NULL
);
if
(
sizeHints
)
XFree
(
sizeHints
);
if
((
wmHints
=
XAllocWMHints
()))
{
wmHints
->
icon_pixmap
=
nxagentIconPixmap
;
...
...
@@ -1920,9 +1912,24 @@ N/A
{
wmHints
->
flags
=
IconPixmapHint
;
}
}
XSetWMHints
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
wmHints
);
Xutf8SetWMProperties
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
nxagentWindowName
,
nxagentWindowName
,
argv
,
argc
,
sizeHints
,
wmHints
,
NULL
);
if
(
sizeHints
)
{
XFree
(
sizeHints
);
sizeHints
=
NULL
;
}
if
(
wmHints
)
{
XFree
(
wmHints
);
wmHints
=
NULL
;
}
/*
...
...
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