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.
This commit is contained in:
Richard Grenville
2012-09-14 11:51:46 +08:00
parent 0d4c6fc5cc
commit 4293a4626a
2 changed files with 41 additions and 17 deletions

View File

@ -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);