mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
Use a backing store, and more/resize uncollapsed clients first for flicker prevention.
This commit is contained in:
parent
162d53212e
commit
d1428fafd0
3
client.c
3
client.c
@ -47,6 +47,7 @@ create_client(Window w, XWindowAttributes *wa) {
|
||||
|
||||
fwa.override_redirect = 1;
|
||||
fwa.background_pixmap = ParentRelative;
|
||||
fwa.backing_store = Always;
|
||||
fwa.event_mask =
|
||||
SubstructureRedirectMask
|
||||
| SubstructureNotifyMask
|
||||
@ -67,7 +68,7 @@ create_client(Window w, XWindowAttributes *wa) {
|
||||
/* depth */ DefaultDepth(blz.dpy, blz.screen),
|
||||
/* class */ CopyFromParent,
|
||||
/* visual */ DefaultVisual(blz.dpy, blz.screen),
|
||||
/* valuemask */ CWOverrideRedirect | CWEventMask | CWBackPixmap,
|
||||
/* valuemask */ CWOverrideRedirect | CWEventMask | CWBackPixmap | CWBackingStore,
|
||||
/* attributes */&fwa
|
||||
);
|
||||
|
||||
|
7
column.c
7
column.c
@ -179,9 +179,14 @@ arrange_column(Area *a, Bool dirty) {
|
||||
}
|
||||
scale_column(a);
|
||||
resize:
|
||||
if(a->view == screen->sel)
|
||||
if(a->view == screen->sel) {
|
||||
for(f=a->frame; f; f=f->anext)
|
||||
if(!f->collapsed)
|
||||
resize_client(f->client, &f->rect);
|
||||
for(f=a->frame; f; f=f->anext)
|
||||
if(f->collapsed)
|
||||
resize_client(f->client, &f->rect);
|
||||
}
|
||||
flush_masked_events(EnterWindowMask);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user