mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
re-order sweep draw so that we map into the client window after
re-parenting; from Sviatoslav Chagaev. ok oga@
This commit is contained in:
parent
c2a8363dd9
commit
c8ea76a965
@ -64,10 +64,9 @@ mousefunc_sweep_draw(struct client_ctx *cc)
|
|||||||
width_name = font_width(sc, cc->name, strlen(cc->name)) + 4;
|
width_name = font_width(sc, cc->name, strlen(cc->name)) + 4;
|
||||||
width = MAX(width_size, width_name);
|
width = MAX(width_size, width_name);
|
||||||
|
|
||||||
XMoveResizeWindow(X_Dpy, sc->menuwin, cc->geom.x, cc->geom.y,
|
|
||||||
width, font_height(sc) * 2);
|
|
||||||
XMapWindow(X_Dpy, sc->menuwin);
|
|
||||||
XReparentWindow(X_Dpy, sc->menuwin, cc->win, 0, 0);
|
XReparentWindow(X_Dpy, sc->menuwin, cc->win, 0, 0);
|
||||||
|
XMoveResizeWindow(X_Dpy, sc->menuwin, 0, 0, width, font_height(sc) * 2);
|
||||||
|
XMapWindow(X_Dpy, sc->menuwin);
|
||||||
XClearWindow(X_Dpy, sc->menuwin);
|
XClearWindow(X_Dpy, sc->menuwin);
|
||||||
font_draw(sc, cc->name, strlen(cc->name), sc->menuwin,
|
font_draw(sc, cc->name, strlen(cc->name), sc->menuwin,
|
||||||
2, font_ascent(sc) + 1);
|
2, font_ascent(sc) + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user