From e370ec9b1ca1768ad9160703477d6ac5ec20fa80 Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Fri, 14 Sep 2012 11:51:46 +0800 Subject: Bug fix: Issue #43, better client window lookup More details on the issue report. - Look up the client window of a WM frame when it's mapped instead of when it's created, for better reliability. - Fix a warning when building. --- compton.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compton.h') diff --git a/compton.h b/compton.h index 2633a98ed..1cca657a5 100644 --- a/compton.h +++ b/compton.h @@ -392,9 +392,6 @@ border_size(Display *dpy, win *w); static Window find_client_win(Display *dpy, Window w); -static Window -find_client_win2(Display *dpy, Window w); - static void get_frame_extents(Display *dpy, Window w, unsigned int *left, @@ -451,6 +448,9 @@ calc_opacity(Display *dpy, win *w, Bool refetch_prop); static void calc_dim(Display *dpy, win *w); +static void +mark_client_win(Display *dpy, win *w, Window client); + static void add_win(Display *dpy, Window id, Window prev, Bool override_redirect); -- cgit v1.2.1