80 cols in dock.c

This commit is contained in:
Mikael Magnusson 2007-07-14 15:15:16 +02:00
parent bc2c2bc3f0
commit 95c58160c1

View file

@ -431,75 +431,75 @@ void dock_configure()
switch (config_dock_orient) { switch (config_dock_orient) {
case OB_ORIENTATION_HORZ: case OB_ORIENTATION_HORZ:
STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0,
0, 0, dock->area.x, dock->area.x + dock->area.width - 1, 0, 0, dock->area.x, dock->area.x
0, 0, 0, 0); + dock->area.width - 1, 0, 0, 0, 0);
break; break;
case OB_ORIENTATION_VERT: case OB_ORIENTATION_VERT:
STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0,
dock->area.y, dock->area.y + dock->area.height - 1, dock->area.y, dock->area.y
0, 0, 0, 0, 0, 0); + dock->area.height - 1, 0, 0, 0, 0, 0, 0);
break; break;
} }
break; break;
case OB_DIRECTION_NORTH: case OB_DIRECTION_NORTH:
STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0,
0, 0, dock->area.x, dock->area.x + dock->area.width - 1, 0, 0, dock->area.x, dock->area.x
0, 0, 0, 0); + dock->area.width - 1, 0, 0, 0, 0);
break; break;
case OB_DIRECTION_NORTHEAST: case OB_DIRECTION_NORTHEAST:
switch (config_dock_orient) { switch (config_dock_orient) {
case OB_ORIENTATION_HORZ: case OB_ORIENTATION_HORZ:
STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0,
0, 0, dock->area.x, dock->area.x + dock->area.width -1, 0, 0, dock->area.x, dock->area.x
0, 0, 0, 0); + dock->area.width -1, 0, 0, 0, 0);
break; break;
case OB_ORIENTATION_VERT: case OB_ORIENTATION_VERT:
STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0,
0, 0, 0, 0, 0, 0, 0, 0, dock->area.y, dock->area.y
dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); + dock->area.height - 1, 0, 0);
break; break;
} }
break; break;
case OB_DIRECTION_WEST: case OB_DIRECTION_WEST:
STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0,
dock->area.y, dock->area.y + dock->area.height - 1, dock->area.y, dock->area.y
0, 0, 0, 0, 0, 0); + dock->area.height - 1, 0, 0, 0, 0, 0, 0);
break; break;
case OB_DIRECTION_EAST: case OB_DIRECTION_EAST:
STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0,
0, 0, 0, 0, 0, 0, 0, 0, dock->area.y, dock->area.y
dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); + dock->area.height - 1, 0, 0);
break; break;
case OB_DIRECTION_SOUTHWEST: case OB_DIRECTION_SOUTHWEST:
switch (config_dock_orient) { switch (config_dock_orient) {
case OB_ORIENTATION_HORZ: case OB_ORIENTATION_HORZ:
STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, dock->area.x, dock->area.x
dock->area.x, dock->area.x + dock->area.width - 1); + dock->area.width - 1);
break; break;
case OB_ORIENTATION_VERT: case OB_ORIENTATION_VERT:
STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0,
dock->area.y, dock->area.y + dock->area.height - 1, dock->area.y, dock->area.y
0, 0, 0, 0, 0, 0); + dock->area.height - 1, 0, 0, 0, 0, 0, 0);
break; break;
} }
break; break;
case OB_DIRECTION_SOUTH: case OB_DIRECTION_SOUTH:
STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, dock->area.x, dock->area.x
dock->area.x, dock->area.x + dock->area.width - 1); + dock->area.width - 1);
break; break;
case OB_DIRECTION_SOUTHEAST: case OB_DIRECTION_SOUTHEAST:
switch (config_dock_orient) { switch (config_dock_orient) {
case OB_ORIENTATION_HORZ: case OB_ORIENTATION_HORZ:
STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, dock->area.x,
dock->area.x, dock->area.x + dock->area.width - 1); dock->area.x + dock->area.width - 1);
break; break;
case OB_ORIENTATION_VERT: case OB_ORIENTATION_VERT:
STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0,
0, 0, 0, 0, 0, 0, 0, 0, dock->area.y, dock->area.y
dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); + dock->area.height - 1, 0, 0);
break; break;
} }
break; break;
@ -514,10 +514,11 @@ void dock_configure()
g_assert(dock->area.width > 0); g_assert(dock->area.width > 0);
g_assert(dock->area.height > 0); g_assert(dock->area.height > 0);
XMoveResizeWindow(ob_display, dock->frame, XMoveResizeWindow(ob_display, dock->frame, dock->area.x, dock->area.y,
dock->area.x, dock->area.y, dock->area.width, dock->area.height); 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); XMapWindow(ob_display, dock->frame);
} else } else
XUnmapWindow(ob_display, dock->frame); XUnmapWindow(ob_display, dock->frame);
@ -640,5 +641,6 @@ void dock_hide(gboolean hide)
void dock_get_area(Rect *a) 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);
} }