mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
make the amount of movement needed for mousenewcol symmetrical (50% of the frame off screen, instead of 33% right and 66% left), prevent some flicker
This commit is contained in:
parent
72cc53d2b9
commit
ddae8f8e25
@ -303,11 +303,13 @@ drop_moving(Frame *f, XRectangle *new, XPoint *pt)
|
|||||||
for(i = 1; (i < v->area.size) &&
|
for(i = 1; (i < v->area.size) &&
|
||||||
!blitz_ispointinrect(pt->x, pt->y, &v->area.data[i]->rect); i++);
|
!blitz_ispointinrect(pt->x, pt->y, &v->area.data[i]->rect); i++);
|
||||||
if((tgt = ((i < v->area.size) ? v->area.data[i] : nil))) {
|
if((tgt = ((i < v->area.size) ? v->area.data[i] : nil))) {
|
||||||
int x = new->x + (2 * new->width / 3);
|
if(src->frame.size > 1) {
|
||||||
if(x < 0)
|
int x = new->x + (new->width / 2);
|
||||||
tgt = new_left_column(v);
|
if(x < 0)
|
||||||
else if(x > rect.width)
|
tgt = new_left_column(v);
|
||||||
tgt = new_right_column(v);
|
else if(x > rect.width)
|
||||||
|
tgt = new_right_column(v);
|
||||||
|
}
|
||||||
if(tgt != src)
|
if(tgt != src)
|
||||||
send_to_area(tgt, src, f->client);
|
send_to_area(tgt, src, f->client);
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user