Commit 6d62b2c0 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Rootless.c: reformat comments

parent 0f7c5e2a
...@@ -52,8 +52,7 @@ ...@@ -52,8 +52,7 @@
#undef DEBUG #undef DEBUG
/* /*
* Assigned at the time the root window is * Assigned at the time the root window is initialized.
* initialized.
*/ */
typedef struct typedef struct
...@@ -71,10 +70,9 @@ typedef struct ...@@ -71,10 +70,9 @@ typedef struct
nxagentWMHints; nxagentWMHints;
/* /*
* This structure is compatible with 32 * This structure is compatible with 32 and 64 bit library
* and 64 bit library interface. It has * interface. It has been copied from Xatomtype.h and it's a parameter
* been copied from Xatomtype.h and it's * of XChangeProperty().
* a parameter of XChangeProperty().
*/ */
typedef struct typedef struct
...@@ -632,13 +630,13 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value) ...@@ -632,13 +630,13 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
for (int i = 0; i < nUnits; i++) for (int i = 0; i < nUnits; i++)
{ {
/* /*
* Exporting the _NET_WM_PING property could * Exporting the _NET_WM_PING property could result in rootless
* result in rootless windows being grayed out * windows being grayed out when the compiz window manager is
* when the compiz window manager is running. * running.
* *
* Better solution would probably be to handle * Better solution would probably be to handle the communication
* the communication with the window manager * with the window manager instead of just getting rid of the
* instead of just getting rid of the property. * property.
*/ */
if ((atomName = NameForAtom(input[i])) != NULL && if ((atomName = NameForAtom(input[i])) != NULL &&
...@@ -702,13 +700,10 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value) ...@@ -702,13 +700,10 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
#endif #endif
/* /*
* It seems that clients specifie * It seems that clients specify strange windows, perhaps are
* strange windows, perhaps are * not real windows so we can try to let them pass anyway.
* not real windows so we can try
* to let them pass anyway.
* *
* wind[i] = None; * wind[i] = None;
*
*/ */
} }
} }
...@@ -851,8 +846,8 @@ void nxagentImportProperty(Window window, ...@@ -851,8 +846,8 @@ void nxagentImportProperty(Window window,
#endif #endif
/* /*
* We settle a property size limit of * We settle a property size limit of 256K beyond which we simply
* 256K beyond which we simply ignore them. * ignore them.
*/ */
Atom typeL = nxagentRemoteToLocalAtom(type); Atom typeL = nxagentRemoteToLocalAtom(type);
...@@ -897,10 +892,9 @@ void nxagentImportProperty(Window window, ...@@ -897,10 +892,9 @@ void nxagentImportProperty(Window window,
else if (strcmp(typeS, "WM_STATE") == 0) else if (strcmp(typeS, "WM_STATE") == 0)
{ {
/* /*
* Contents of property of type WM_STATE * Contents of property of type WM_STATE are {CARD32 state, WINDOW
* are {CARD32 state, WINDOW icon}. Only * icon}. Only the icon field has to be modified before importing
* the icon field has to be modified before * the property.
* importing the property.
*/ */
wmState = *(WMState*)buffer; wmState = *(WMState*)buffer;
...@@ -1107,13 +1101,13 @@ void nxagentImportProperty(Window window, ...@@ -1107,13 +1101,13 @@ void nxagentImportProperty(Window window,
/* /*
* We want to import all properties changed by external clients to * We want to import all properties changed by external clients to
* reflect properties of our internal windows but we must ignore * reflect properties of our internal windows but we must ignore all
* all the property notify events generated by our own requests. * the property notify events generated by our own requests. For this
* For this purpose we implement a FIFO to record every change pro- * purpose we implement a FIFO to record every change property request
* perty request that we dispatch. In this way, when processing a * that we dispatch. In this way, when processing a property notify,
* property notify, we can distinguish between the notifications * we can distinguish between the notifications generated by our
* generated by our requests from those generated by other clients * requests from those generated by other clients connected to the
* connected to the real X server. * real X server.
*/ */
struct nxagentPropertyRec{ struct nxagentPropertyRec{
...@@ -1204,9 +1198,8 @@ void nxagentFreePropertyList(void) ...@@ -1204,9 +1198,8 @@ void nxagentFreePropertyList(void)
} }
/* /*
* We are trying to distinguish notify generated by * We are trying to distinguish notifications generated by an external
* an external client from those genarated by our * client from those genarated by our own requests.
* own requests.
*/ */
Bool nxagentNotifyMatchChangeProperty(void *p) Bool nxagentNotifyMatchChangeProperty(void *p)
...@@ -1240,4 +1233,3 @@ Bool nxagentNotifyMatchChangeProperty(void *p) ...@@ -1240,4 +1233,3 @@ Bool nxagentNotifyMatchChangeProperty(void *p)
return True; return True;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment