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
6d62b2c0
Commit
6d62b2c0
authored
Oct 28, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rootless.c: reformat comments
parent
0f7c5e2a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
34 deletions
+26
-34
Rootless.c
nx-X11/programs/Xserver/hw/nxagent/Rootless.c
+26
-34
No files found.
nx-X11/programs/Xserver/hw/nxagent/Rootless.c
View file @
6d62b2c0
...
...
@@ -52,8 +52,7 @@
#undef DEBUG
/*
* Assigned at the time the root window is
* initialized.
* Assigned at the time the root window is initialized.
*/
typedef
struct
...
...
@@ -71,10 +70,9 @@ typedef struct
nxagentWMHints
;
/*
* This structure is compatible with 32
* and 64 bit library interface. It has
* been copied from Xatomtype.h and it's
* a parameter of XChangeProperty().
* This structure is compatible with 32 and 64 bit library
* interface. It has been copied from Xatomtype.h and it's a parameter
* of XChangeProperty().
*/
typedef
struct
...
...
@@ -632,13 +630,13 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
for
(
int
i
=
0
;
i
<
nUnits
;
i
++
)
{
/*
* Exporting the _NET_WM_PING property could
*
result in rootless windows being grayed out
*
when the compiz window manager is
running.
* Exporting the _NET_WM_PING property could
result in rootless
*
windows being grayed out when the compiz window manager is
* running.
*
* Better solution would probably be to handle
*
the communication with the window manager
*
instead of just getting rid of the
property.
* Better solution would probably be to handle
the communication
*
with the window manager instead of just getting rid of the
* property.
*/
if
((
atomName
=
NameForAtom
(
input
[
i
]))
!=
NULL
&&
...
...
@@ -702,13 +700,10 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
#endif
/*
* It seems that clients specifie
* strange windows, perhaps are
* not real windows so we can try
* to let them pass anyway.
* It seems that clients specify strange windows, perhaps are
* not real windows so we can try to let them pass anyway.
*
* wind[i] = None;
*
*/
}
}
...
...
@@ -851,8 +846,8 @@ void nxagentImportProperty(Window window,
#endif
/*
* We settle a property size limit of
*
256K beyond which we simply
ignore them.
* We settle a property size limit of
256K beyond which we simply
* ignore them.
*/
Atom
typeL
=
nxagentRemoteToLocalAtom
(
type
);
...
...
@@ -897,10 +892,9 @@ void nxagentImportProperty(Window window,
else
if
(
strcmp
(
typeS
,
"WM_STATE"
)
==
0
)
{
/*
* Contents of property of type WM_STATE
* are {CARD32 state, WINDOW icon}. Only
* the icon field has to be modified before
* importing the property.
* Contents of property of type WM_STATE are {CARD32 state, WINDOW
* icon}. Only the icon field has to be modified before importing
* the property.
*/
wmState
=
*
(
WMState
*
)
buffer
;
...
...
@@ -1107,13 +1101,13 @@ void nxagentImportProperty(Window window,
/*
* We want to import all properties changed by external clients to
* reflect properties of our internal windows but we must ignore
*
all the property notify events generated by our own requests.
*
For this purpose we implement a FIFO to record every change pro-
*
perty request that we dispatch. In this way, when processing a
*
property notify, we can distinguish between the notifications
*
generated by our requests from those generated by other clients
*
connected to the
real X server.
* reflect properties of our internal windows but we must ignore
all
*
the property notify events generated by our own requests. For this
*
purpose we implement a FIFO to record every change property request
*
that we dispatch. In this way, when processing a property notify,
*
we can distinguish between the notifications generated by our
*
requests from those generated by other clients connected to the
* real X server.
*/
struct
nxagentPropertyRec
{
...
...
@@ -1204,9 +1198,8 @@ void nxagentFreePropertyList(void)
}
/*
* We are trying to distinguish notify generated by
* an external client from those genarated by our
* own requests.
* We are trying to distinguish notifications generated by an external
* client from those genarated by our own requests.
*/
Bool
nxagentNotifyMatchChangeProperty
(
void
*
p
)
...
...
@@ -1240,4 +1233,3 @@ Bool nxagentNotifyMatchChangeProperty(void *p)
return
True
;
}
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