]> Dogcows Code - chaz/openbox/commitdiff
make the position dislpayed in the moving popup offset by the top/left struts so...
authorDana Jansens <danakj@orodu.net>
Tue, 5 Aug 2003 07:25:22 +0000 (07:25 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Aug 2003 07:25:22 +0000 (07:25 +0000)
openbox/moveresize.c

index 88c764311a0450cfc774e84365c12a0545d82f8c..564bf7117513cb71ed148192e278586ea248b2a9 100644 (file)
@@ -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()
This page took 0.02287 seconds and 4 git commands to generate.