diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-05 07:25:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-05 07:25:22 +0000 |
| commit | 20aca7fb7a21e5b88eae0d749a3c4a34dde39ebb (patch) | |
| tree | c419c2dd17984a6537453d2f45a3a79024ae4b9f /openbox/moveresize.c | |
| parent | a5f083c199c5144935b27e94574ba2c78819260a (diff) | |
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
Diffstat (limited to 'openbox/moveresize.c')
| -rw-r--r-- | openbox/moveresize.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 88c76431..564bf711 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -147,6 +147,8 @@ void moveresize_end(gboolean cancel) static void do_move() { + Rect *a; + dispatch_move(moveresize_client, &cur_x, &cur_y); /* 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 if there are 2 text boxes */ - popup_coords("X: %4d Y: %4d", moveresize_client->frame->area.x, - moveresize_client->frame->area.y); + a = screen_area(screen_desktop); + popup_coords("X: %4d Y: %4d", + moveresize_client->frame->area.x - a->x, + moveresize_client->frame->area.y - a->y); } static void do_resize() |
