summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2012-10-02 21:46:37 +0800
committerRichard Grenville <pyxlcy@gmail.com>2012-10-02 21:46:37 +0800
commit11e27d354bbf248226e22e31f2c69a9bb8f5666c (patch)
tree3c0929003d194a15cb36b39246219e62168ea187 /compton.h
parent44d9428452207c8d3464a3367bfb6ef52da8571e (diff)
downloadtdebase-11e27d354bbf248226e22e31f2c69a9bb8f5666c.tar.gz
tdebase-11e27d354bbf248226e22e31f2c69a9bb8f5666c.zip
Improvement: Change in client window lookup & wintype detection
- Revert to WM_STATE for client window lookup, as WM_CLASS is unreliable, either, but set the client window of an override-redirect window to itself. - Conform to EWMH to make assumptions about window types when _NET_WM_WINDOW_TYPE is not available. - Remove determine_wintype() and completely rely on client window for window type detection.
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/compton.h b/compton.h
index 83b78769e..7a71fa808 100644
--- a/compton.h
+++ b/compton.h
@@ -631,8 +631,7 @@ solid_picture(Display *dpy, Bool argb, double a,
static inline bool is_normal_win(const win *w) {
return (WINTYPE_NORMAL == w->window_type
- || WINTYPE_UTILITY == w->window_type
- || WINTYPE_UNKNOWN == w->window_type);
+ || WINTYPE_UTILITY == w->window_type);
}
/**
@@ -761,9 +760,6 @@ repair_win(Display *dpy, win *w);
static wintype
get_wintype_prop(Display * dpy, Window w);
-static wintype
-determine_wintype(Display *dpy, Window w);
-
static void
map_win(Display *dpy, Window id,
unsigned long sequence, Bool fade,