summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorChristopher Jeffrey <[email protected]>2012-09-13 10:12:54 -0500
committerChristopher Jeffrey <[email protected]>2012-09-13 10:24:14 -0500
commit212582469a1f7ac8a6fd81bc8619ca401e247b77 (patch)
treef25e903fbdeb81bcfc718d7568cd180ff3523b5f /compton.h
parentf092885f476fb740adc9a539baac48df11bace8e (diff)
downloadtdebase-212582469a1f7ac8a6fd81bc8619ca401e247b77.tar.gz
tdebase-212582469a1f7ac8a6fd81bc8619ca401e247b77.zip
more style changes
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/compton.h b/compton.h
index 83671a682..e89728a6a 100644
--- a/compton.h
+++ b/compton.h
@@ -257,7 +257,8 @@ print_timestamp(void) {
* @param atom atom of attribute to check
* @return 1 if it has the attribute, 0 otherwise
*/
-static inline Bool win_has_attr(Display *dpy, Window w, Atom atom) {
+static inline Bool
+win_has_attr(Display *dpy, Window w, Atom atom) {
Atom type = None;
int format;
unsigned long nitems, after;
@@ -266,8 +267,7 @@ static inline Bool win_has_attr(Display *dpy, Window w, Atom atom) {
if (Success == XGetWindowProperty(dpy, w, atom, 0, 0, False,
AnyPropertyType, &type, &format, &nitems, &after, &data)) {
XFree(data);
- if (type)
- return True;
+ if (type) return True;
}
return False;
@@ -282,7 +282,8 @@ static inline Bool win_has_attr(Display *dpy, Window w, Atom atom) {
* @param nchildren [out] number of children
* @return 1 if successful, 0 otherwise
*/
-static inline Bool win_get_children(Display *dpy, Window w,
+static inline Bool
+win_get_children(Display *dpy, Window w,
Window **children, unsigned *nchildren) {
Window troot, tparent;
@@ -361,6 +362,12 @@ find_win(Display *dpy, Window id);
static win *
find_toplevel(Display *dpy, Window id);
+static win *
+find_toplevel2(Display *dpy, Window wid);
+
+static win *
+recheck_focus(Display *dpy);
+
static Picture
root_tile_f(Display *dpy);
@@ -373,9 +380,11 @@ win_extents(Display *dpy, win *w);
static XserverRegion
border_size(Display *dpy, win *w);
-Window find_client_win(Display *dpy, Window w);
+static Window
+find_client_win(Display *dpy, Window w);
-Window find_client_win2(Display *dpy, Window w);
+static Window
+find_client_win2(Display *dpy, Window w);
static void
get_frame_extents(Display *dpy, Window w,