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
ce649c02
Commit
ce649c02
authored
May 25, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagent: add names to some windows in DEBUG mode
parent
210db316
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
6 deletions
+83
-6
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+12
-0
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+45
-6
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+26
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
ce649c02
...
...
@@ -1125,6 +1125,18 @@ void nxagentOpenConfineWindow(void)
nxagentConfineWindow
);
}
#ifdef DEBUG
{
char
*
winname
=
NULL
;
if
(
-
1
!=
asprintf
(
&
winname
,
"%s Confine"
,
nxagentWindowName
))
{
Xutf8SetWMProperties
(
nxagentDisplay
,
nxagentConfineWindow
,
winname
,
winname
,
NULL
,
0
,
NULL
,
NULL
,
NULL
);
SAFE_free
(
winname
);
}
}
#endif
#ifdef TEST
fprintf
(
stderr
,
"%s: Created agent's confine window with id [0x%x].
\n
"
,
__func__
,
nxagentConfineWindow
);
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
ce649c02
...
...
@@ -466,9 +466,23 @@ Window nxagentCreateIconWindow(void)
}
}
char
*
winname
=
NULL
;
#ifdef DEBUG
if
(
-
1
==
asprintf
(
&
winname
,
"%s Icon"
,
nxagentWindowName
))
{
/* If memory allocation wasn't possible, or some other error
occurs, these functions will return -1, and the contents of
winname are undefined. */
winname
=
NULL
;
}
#endif
Xutf8SetWMProperties
(
nxagentDisplay
,
w
,
nxagentWindowName
,
nxagentWindowName
,
NULL
,
0
,
sizeHints
,
wmHints
,
NULL
);
winname
?
winname
:
nxagentWindowName
,
winname
?
winname
:
nxagentWindowName
,
NULL
,
0
,
sizeHints
,
wmHints
,
NULL
);
SAFE_free
(
winname
);
SAFE_XFree
(
sizeHints
);
SAFE_XFree
(
wmHints
);
...
...
@@ -1768,6 +1782,18 @@ N/A
fprintf
(
stderr
,
"NXAGENT_WINDOW_ID: INPUT_WINDOW:[%d],WID:[0x%x]
\n
"
,
pScreen
->
myNum
,
nxagentInputWindows
[
pScreen
->
myNum
]);
}
#ifdef DEBUG
{
char
*
winname
=
NULL
;
if
(
-
1
!=
asprintf
(
&
winname
,
"%s Input"
,
nxagentWindowName
))
{
Xutf8SetWMProperties
(
nxagentDisplay
,
nxagentInputWindows
[
pScreen
->
myNum
],
winname
,
winname
,
NULL
,
0
,
NULL
,
NULL
,
NULL
);
SAFE_free
(
winname
);
}
}
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentOpenScreen: Created new input window for screen [%d] with id [0x%x].
\n
"
,
pScreen
->
myNum
,
nxagentInputWindows
[
pScreen
->
myNum
]);
...
...
@@ -1873,11 +1899,24 @@ N/A
}
}
char
*
winname
=
NULL
;
#ifdef DEBUG
if
(
-
1
==
asprintf
(
&
winname
,
"%s Default[%d]"
,
nxagentWindowName
,
pScreen
->
myNum
))
{
/* If memory allocation wasn't possible, or some other error
occurs, these functions will return -1, and the contents of
winname are undefined. */
winname
=
NULL
;
}
#endif
Xutf8SetWMProperties
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
nxagentWindowName
,
nxagentWindowName
,
argv
,
argc
,
sizeHints
,
wmHints
,
NULL
);
nxagentDefaultWindows
[
pScreen
->
myNum
],
winname
?
winname
:
nxagentWindowName
,
winname
?
winname
:
nxagentWindowName
,
argv
,
argc
,
sizeHints
,
wmHints
,
NULL
);
SAFE_free
(
winname
);
SAFE_XFree
(
sizeHints
);
SAFE_XFree
(
wmHints
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
ce649c02
...
...
@@ -403,6 +403,19 @@ Bool nxagentCreateWindow(WindowPtr pWin)
{
fprintf
(
stderr
,
"NXAGENT_WINDOW_ID: PRIVATE_WINDOW,WID:[0x%x],INT:[0x%x]
\n
"
,
nxagentWindowPriv
(
pWin
)
->
window
,
pWin
->
drawable
.
id
);
}
#ifdef DEBUG
{
char
*
winname
=
NULL
;
if
(
-
1
!=
asprintf
(
&
winname
,
"%s Private[0x%lx]"
,
nxagentWindowName
,
pWin
->
drawable
.
id
))
{
Xutf8SetWMProperties
(
nxagentDisplay
,
nxagentWindowPriv
(
pWin
)
->
window
,
winname
,
winname
,
NULL
,
0
,
NULL
,
NULL
,
NULL
);
SAFE_free
(
winname
);
}
}
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentCreateWindow: Created new window with id [0x%x].
\n
"
,
nxagentWindowPriv
(
pWin
)
->
window
);
...
...
@@ -2995,6 +3008,19 @@ static void nxagentReconnectWindow(void * param0, XID param1, void * data_buffer
{
fprintf
(
stderr
,
"NXAGENT_WINDOW_ID: PRIVATE_WINDOW,WID:[0x%x],INT:[0x%x]
\n
"
,
nxagentWindowPriv
(
pWin
)
->
window
,
pWin
->
drawable
.
id
);
}
#ifdef DEBUG
{
char
*
winname
=
NULL
;
if
(
-
1
!=
asprintf
(
&
winname
,
"%s Private[0x%lx]"
,
nxagentWindowName
,
pWin
->
drawable
.
id
))
{
Xutf8SetWMProperties
(
nxagentDisplay
,
nxagentWindowPriv
(
pWin
)
->
window
,
winname
,
winname
,
NULL
,
0
,
NULL
,
NULL
,
NULL
);
SAFE_free
(
winname
);
}
}
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnectWindow: Created new window with id [0x%x].
\n
"
,
nxagentWindowPriv
(
pWin
)
->
window
);
...
...
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