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
01675919
Commit
01675919
authored
May 05, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen.c: simplify setting of window name/class
parent
f9bae755
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
+11
-16
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+11
-16
No files found.
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
01675919
...
...
@@ -1812,20 +1812,6 @@ N/A
* we need it to properly display all window parameters by some WMs
* (for example on Maemo)
*/
if
(
nxagentX2go
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentOpenScreen: Setting WM_CLASS and WM_NAME for window with id [%ld].
\n
"
,
(
long
int
)
nxagentDefaultWindows
[
pScreen
->
myNum
]);
#endif
XClassHint
hint
;
hint
.
res_name
=
strdup
(
"X2GoAgent"
);
hint
.
res_class
=
strdup
(
"X2GoAgent"
);
XSetClassHint
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
&
hint
);
free
(
hint
.
res_name
);
free
(
hint
.
res_class
);
}
else
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentOpenScreen: Setting WM_CLASS and WM_NAME for window with id [%ld].
\n
"
,
...
...
@@ -1833,8 +1819,17 @@ N/A
#endif
XClassHint
hint
;
hint
.
res_name
=
strdup
(
"NXAgent"
);
hint
.
res_class
=
strdup
(
"NXAgent"
);
if
(
nxagentX2go
)
{
hint
.
res_name
=
strdup
(
"X2GoAgent"
);
hint
.
res_class
=
strdup
(
"X2GoAgent"
);
}
else
{
hint
.
res_name
=
strdup
(
"NXAgent"
);
hint
.
res_class
=
strdup
(
"NXAgent"
);
}
XSetClassHint
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
&
hint
);
free
(
hint
.
res_name
);
free
(
hint
.
res_class
);
...
...
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