From 11e27d354bbf248226e22e31f2c69a9bb8f5666c Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Tue, 2 Oct 2012 21:46:37 +0800 Subject: 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. --- compton.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'compton.h') 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, -- cgit v1.2.1