make the position dislpayed in the moving popup offset by the top/left struts so that 0,0 is inside teh struts not neccessarily at the screen edge
This commit is contained in:
parent
a5f083c199
commit
20aca7fb7a
1 changed files with 6 additions and 2 deletions
|
@ -147,6 +147,8 @@ void moveresize_end(gboolean cancel)
|
||||||
|
|
||||||
static void do_move()
|
static void do_move()
|
||||||
{
|
{
|
||||||
|
Rect *a;
|
||||||
|
|
||||||
dispatch_move(moveresize_client, &cur_x, &cur_y);
|
dispatch_move(moveresize_client, &cur_x, &cur_y);
|
||||||
|
|
||||||
/* get where the client should be */
|
/* get where the client should be */
|
||||||
|
@ -156,8 +158,10 @@ static void do_move()
|
||||||
|
|
||||||
/* this would be better with a fixed width font ... XXX can do it better
|
/* this would be better with a fixed width font ... XXX can do it better
|
||||||
if there are 2 text boxes */
|
if there are 2 text boxes */
|
||||||
popup_coords("X: %4d Y: %4d", moveresize_client->frame->area.x,
|
a = screen_area(screen_desktop);
|
||||||
moveresize_client->frame->area.y);
|
popup_coords("X: %4d Y: %4d",
|
||||||
|
moveresize_client->frame->area.x - a->x,
|
||||||
|
moveresize_client->frame->area.y - a->y);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_resize()
|
static void do_resize()
|
||||||
|
|
Loading…
Reference in a new issue