]> Dogcows Code - chaz/openbox/blobdiff - openbox/action.c
xinerama support like crazy for struts and everything else too. this probably crashes...
[chaz/openbox] / openbox / action.c
index 9d0f9c739b76ed6d049cc8638632ee620e81ab41..6ba52c8959f13d140fbea9a3f5f0e1a7ae3adb08 100644 (file)
@@ -1430,7 +1430,7 @@ void action_move_to_center(union ActionData *data)
 {
     ObClient *c = data->client.any.c;
     Rect *area;
-    area = screen_area_monitor(c->desktop, 0, NULL);
+    area = screen_area(c->desktop, client_monitor(c), NULL);
     client_action_start(data);
     client_move(c, area->width / 2 - c->area.width / 2,
                 area->height / 2 - c->area.height / 2);
@@ -1898,7 +1898,7 @@ void action_growtoedge(union ActionData *data)
     ObClient *c = data->diraction.any.c;
     Rect *a;
 
-    a = screen_area(c->desktop, NULL);
+    a = screen_area(c->desktop, SCREEN_AREA_ALL_MONITORS, &c->frame->area);
     x = c->frame->area.x;
     y = c->frame->area.y;
     /* get the unshaded frame's dimensions..if it is shaded */
This page took 0.022938 seconds and 4 git commands to generate.