From: Mikael Magnusson Date: Sat, 14 Jul 2007 13:15:16 +0000 (+0200) Subject: 80 cols in dock.c X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=95c58160c16e6d68ede77defebda75ed056623e4;p=chaz%2Fopenbox 80 cols in dock.c --- diff --git a/openbox/dock.c b/openbox/dock.c index 8cb40fb6..e8c6e630 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -431,75 +431,75 @@ void dock_configure() switch (config_dock_orient) { case OB_ORIENTATION_HORZ: STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, - 0, 0, dock->area.x, dock->area.x + dock->area.width - 1, - 0, 0, 0, 0); + 0, 0, dock->area.x, dock->area.x + + dock->area.width - 1, 0, 0, 0, 0); break; case OB_ORIENTATION_VERT: STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, - dock->area.y, dock->area.y + dock->area.height - 1, - 0, 0, 0, 0, 0, 0); + dock->area.y, dock->area.y + + dock->area.height - 1, 0, 0, 0, 0, 0, 0); break; } break; case OB_DIRECTION_NORTH: STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, - 0, 0, dock->area.x, dock->area.x + dock->area.width - 1, - 0, 0, 0, 0); + 0, 0, dock->area.x, dock->area.x + + dock->area.width - 1, 0, 0, 0, 0); break; case OB_DIRECTION_NORTHEAST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, - 0, 0, dock->area.x, dock->area.x + dock->area.width -1, - 0, 0, 0, 0); + 0, 0, dock->area.x, dock->area.x + + dock->area.width -1, 0, 0, 0, 0); break; case OB_ORIENTATION_VERT: STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, - 0, 0, 0, 0, - dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); + 0, 0, 0, 0, dock->area.y, dock->area.y + + dock->area.height - 1, 0, 0); break; } break; case OB_DIRECTION_WEST: STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, - dock->area.y, dock->area.y + dock->area.height - 1, - 0, 0, 0, 0, 0, 0); + dock->area.y, dock->area.y + + dock->area.height - 1, 0, 0, 0, 0, 0, 0); break; case OB_DIRECTION_EAST: STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, - 0, 0, 0, 0, - dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); + 0, 0, 0, 0, dock->area.y, dock->area.y + + dock->area.height - 1, 0, 0); break; case OB_DIRECTION_SOUTHWEST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, - 0, 0, 0, 0, 0, 0, - dock->area.x, dock->area.x + dock->area.width - 1); + 0, 0, 0, 0, 0, 0, dock->area.x, dock->area.x + + dock->area.width - 1); break; case OB_ORIENTATION_VERT: STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, - dock->area.y, dock->area.y + dock->area.height - 1, - 0, 0, 0, 0, 0, 0); + dock->area.y, dock->area.y + + dock->area.height - 1, 0, 0, 0, 0, 0, 0); break; } break; case OB_DIRECTION_SOUTH: STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, - 0, 0, 0, 0, 0, 0, - dock->area.x, dock->area.x + dock->area.width - 1); + 0, 0, 0, 0, 0, 0, dock->area.x, dock->area.x + + dock->area.width - 1); break; case OB_DIRECTION_SOUTHEAST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, - 0, 0, 0, 0, 0, 0, - dock->area.x, dock->area.x + dock->area.width - 1); + 0, 0, 0, 0, 0, 0, dock->area.x, + dock->area.x + dock->area.width - 1); break; case OB_ORIENTATION_VERT: STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, - 0, 0, 0, 0, - dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); + 0, 0, 0, 0, dock->area.y, dock->area.y + + dock->area.height - 1, 0, 0); break; } break; @@ -514,10 +514,11 @@ void dock_configure() g_assert(dock->area.width > 0); g_assert(dock->area.height > 0); - XMoveResizeWindow(ob_display, dock->frame, - dock->area.x, dock->area.y, dock->area.width, dock->area.height); + XMoveResizeWindow(ob_display, dock->frame, dock->area.x, dock->area.y, + dock->area.width, dock->area.height); - RrPaint(dock->a_frame, dock->frame, dock->area.width, dock->area.height); + RrPaint(dock->a_frame, dock->frame, dock->area.width, + dock->area.height); XMapWindow(ob_display, dock->frame); } else XUnmapWindow(ob_display, dock->frame); @@ -640,5 +641,6 @@ void dock_hide(gboolean hide) void dock_get_area(Rect *a) { - RECT_SET(*a, dock->area.x, dock->area.y, dock->area.width, dock->area.height); + RECT_SET(*a, dock->area.x, dock->area.y, + dock->area.width, dock->area.height); }