mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
Fix some managed grabbox move bugs.
This commit is contained in:
parent
3abbddaebc
commit
0364acb2ab
@ -620,7 +620,7 @@ frame_focus(Frame *f) {
|
||||
if(old_a != v->oldsel && f != old_f)
|
||||
v->oldsel = nil;
|
||||
|
||||
if(v != selview || a != v->sel)
|
||||
if(v != selview || a != v->sel || resizing)
|
||||
return;
|
||||
|
||||
move_focus(old_f, f);
|
||||
|
@ -377,10 +377,13 @@ column_openstack(Area *a, Frame *f, int h) {
|
||||
static void
|
||||
column_drop(Area *a, Frame *f, int y) {
|
||||
Frame *ff;
|
||||
int dy;
|
||||
int dy, extra_y;
|
||||
|
||||
for(ff=a->frame; ff; ff=ff->anext)
|
||||
extra_y = Dy(a->r);
|
||||
for(ff=a->frame; ff; ff=ff->anext) {
|
||||
assert(ff != f);
|
||||
extra_y -= Dy(ff->colr);
|
||||
}
|
||||
|
||||
if(a->frame == nil || y <= a->frame->r.min.y) {
|
||||
f->collapsed = true;
|
||||
@ -403,7 +406,7 @@ column_drop(Area *a, Frame *f, int y) {
|
||||
column_openstack(a, ff, labelh(def.font) - dy);
|
||||
}else {
|
||||
f->colr.min.y = y;
|
||||
f->colr.max.y = ff->colr.max.y;
|
||||
f->colr.max.y = ff->colr.max.y + extra_y;
|
||||
ff->colr.max.y = y;
|
||||
}
|
||||
column_insert(a, f, ff);
|
||||
|
Loading…
Reference in New Issue
Block a user