aboutsummaryrefslogtreecommitdiff
path: root/src/hint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hint.c')
-rw-r--r--src/hint.c88
1 files changed, 66 insertions, 22 deletions
diff --git a/src/hint.c b/src/hint.c
index 6ab096b..d743419 100644
--- a/src/hint.c
+++ b/src/hint.c
@@ -137,12 +137,16 @@ static void ReadMotifHints(Window win, ClientState *state);
/****************************************************************************
****************************************************************************/
-void InitializeHints() {
+void
+InitializeHints()
+{
}
/****************************************************************************
****************************************************************************/
-void StartupHints() {
+void
+StartupHints()
+{
unsigned long array[128];
Atom supported[ATOM_COUNT];
@@ -233,17 +237,23 @@ void StartupHints() {
/****************************************************************************
****************************************************************************/
-void ShutdownHints() {
+void
+ShutdownHints()
+{
}
/****************************************************************************
****************************************************************************/
-void DestroyHints() {
+void
+DestroyHints()
+{
}
/****************************************************************************
****************************************************************************/
-void ReadCurrentDesktop() {
+void
+ReadCurrentDesktop()
+{
unsigned long temp;
@@ -263,7 +273,9 @@ void ReadCurrentDesktop() {
* Read client protocls/hints.
* This is called while the client is being added to management.
****************************************************************************/
-void ReadClientProtocols(ClientNode *np) {
+void
+ReadClientProtocols(ClientNode *np)
+{
Status status;
ClientNode *pp;
@@ -297,7 +309,9 @@ void ReadClientProtocols(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void WriteState(ClientNode *np) {
+void
+WriteState(ClientNode *np)
+{
unsigned long data[2];
@@ -324,7 +338,9 @@ void WriteState(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void WriteNetState(ClientNode *np) {
+void
+WriteNetState(ClientNode *np)
+{
unsigned long values[5];
int north, south, east, west;
@@ -369,7 +385,9 @@ void WriteNetState(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void WriteNetAllowed(ClientNode *np) {
+void
+WriteNetAllowed(ClientNode *np)
+{
unsigned long values[10];
int index;
@@ -416,7 +434,9 @@ void WriteNetAllowed(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void WriteWinState(ClientNode *np) {
+void
+WriteWinState(ClientNode *np)
+{
unsigned long flags;
@@ -447,7 +467,9 @@ void WriteWinState(ClientNode *np) {
/****************************************************************************
* Read all hints needed to determine the current window state.
****************************************************************************/
-ClientState ReadWindowState(Window win) {
+ClientState
+ReadWindowState(Window win)
+{
ClientState result;
Status status;
@@ -572,7 +594,9 @@ ClientState ReadWindowState(Window win) {
/****************************************************************************
****************************************************************************/
-void ReadWMName(ClientNode *np) {
+void
+ReadWMName(ClientNode *np)
+{
unsigned long count;
int status;
@@ -617,7 +641,9 @@ void ReadWMName(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void ReadWMClass(ClientNode *np) {
+void
+ReadWMClass(ClientNode *np)
+{
XClassHint hint;
@@ -632,7 +658,9 @@ void ReadWMClass(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-ClientProtocolType ReadWMProtocols(Window w) {
+ClientProtocolType
+ReadWMProtocols(Window w)
+{
ClientProtocolType result;
unsigned long count, x;
@@ -670,7 +698,9 @@ ClientProtocolType ReadWMProtocols(Window w) {
/****************************************************************************
****************************************************************************/
-void ReadWMNormalHints(ClientNode *np) {
+void
+ReadWMNormalHints(ClientNode *np)
+{
XSizeHints hints;
long temp;
@@ -753,7 +783,9 @@ void ReadWMNormalHints(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void ReadWMColormaps(ClientNode *np) {
+void
+ReadWMColormaps(ClientNode *np)
+{
Window *windows;
ColormapNode *cp;
@@ -794,7 +826,9 @@ void ReadWMColormaps(ClientNode *np) {
/****************************************************************************
****************************************************************************/
-void ReadWMHints(Window win, ClientState *state) {
+void
+ReadWMHints(Window win, ClientState *state)
+{
XWMHints *wmhints;
@@ -823,7 +857,9 @@ void ReadWMHints(Window win, ClientState *state) {
/****************************************************************************
* Read _MOTIF_WM_HINTS
****************************************************************************/
-void ReadMotifHints(Window win, ClientState *state) {
+void
+ReadMotifHints(Window win, ClientState *state)
+{
PropMwmHints *mhints;
Atom type;
@@ -886,7 +922,9 @@ void ReadMotifHints(Window win, ClientState *state) {
/****************************************************************************
****************************************************************************/
-int GetCardinalAtom(Window window, AtomType atom, unsigned long *value) {
+int
+GetCardinalAtom(Window window, AtomType atom, unsigned long *value)
+{
unsigned long count;
int status;
@@ -917,7 +955,9 @@ int GetCardinalAtom(Window window, AtomType atom, unsigned long *value) {
/****************************************************************************
****************************************************************************/
-int GetWindowAtom(Window window, AtomType atom, Window *value) {
+int
+GetWindowAtom(Window window, AtomType atom, Window *value)
+{
unsigned long count;
int status;
unsigned long extra;
@@ -947,7 +987,9 @@ int GetWindowAtom(Window window, AtomType atom, Window *value) {
/****************************************************************************
****************************************************************************/
-void SetCardinalAtom(Window window, AtomType atom, unsigned long value) {
+void
+SetCardinalAtom(Window window, AtomType atom, unsigned long value)
+{
Assert(window != None);
@@ -958,7 +1000,9 @@ void SetCardinalAtom(Window window, AtomType atom, unsigned long value) {
/****************************************************************************
****************************************************************************/
-void SetWindowAtom(Window window, AtomType atom, unsigned long value) {
+void
+SetWindowAtom(Window window, AtomType atom, unsigned long value)
+{
Assert(window != None);