Mouse: Remove buggy border when resize with transparent_resize.
This commit is contained in:
parent
e760c2bc7a
commit
70e8238a52
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user