Mouse: Remove buggy border when resize with transparent_resize.

This commit is contained in:
Martin Duquesnoy 2009-04-23 15:06:27 +02:00
parent e760c2bc7a
commit 70e8238a52
3 changed files with 2 additions and 15 deletions

View File

@ -95,12 +95,6 @@ init_gc(void)
gcv.stipple = XCreateBitmapFromData(dpy, ROOT, pix_bits, 10, 4);
gc_stipple = XCreateGC(dpy, ROOT, GCFunction | GCFillStyle | GCStipple, &gcv);
/* Reverse GC */
gcv.function = GXinvert;
gcv.line_width = BORDH;
gcv.subwindow_mode = IncludeInferiors;
gc_reverse = XCreateGC(dpy, ROOT, GCFunction | GCLineWidth | GCSubwindowMode, &gcv);
return;
}

View File

@ -138,7 +138,7 @@ mouse_resize(Client *c)
return;
do
{
XMaskEvent(dpy, MouseMask | ExposureMask | SubstructureRedirectMask, &ev);
XMaskEvent(dpy, MouseMask | SubstructureRedirectMask, &ev);
if(ev.type == MotionNotify)
{
@ -170,13 +170,6 @@ mouse_resize(Client *c)
if(!conf.resize_transparent)
client_moveresize(c, geo, True);
else
{
XClearWindow(dpy, c->win);
XClearWindow(dpy, ROOT);
frame_update(c);
XDrawRectangles(dpy, ROOT, gc_reverse, &geo, 1);
}
XSync(dpy, False);
}

View File

@ -308,7 +308,7 @@ void uicb_reload(uicb_t);
/* Principal */
Display *dpy;
GC gc, gc_stipple, gc_reverse;
GC gc, gc_stipple;
int selscreen;
Conf conf;
Key *keys;