+ /* set the strut */
+ switch (config_dock_pos) {
+ case DockPos_Floating:
+ STRUT_SET(dock_strut, 0, 0, 0, 0);
+ break;
+ case DockPos_TopLeft:
+ if (config_dock_horz)
+ STRUT_SET(dock_strut, 0, dock->h, 0, 0);
+ else
+ STRUT_SET(dock_strut, dock->w, 0, 0, 0);
+ break;
+ case DockPos_Top:
+ STRUT_SET(dock_strut, 0, dock->h, 0, 0);
+ break;
+ case DockPos_TopRight:
+ if (config_dock_horz)
+ STRUT_SET(dock_strut, 0, dock->h, 0, 0);
+ else
+ STRUT_SET(dock_strut, 0, 0, dock->w, 0);
+ break;
+ case DockPos_Left:
+ STRUT_SET(dock_strut, dock->w, 0, 0, 0);
+ break;
+ case DockPos_Right:
+ STRUT_SET(dock_strut, 0, 0, dock->w, 0);
+ break;
+ case DockPos_BottomLeft:
+ if (config_dock_horz)
+ STRUT_SET(dock_strut, 0, 0, 0, dock->h);
+ else
+ STRUT_SET(dock_strut, dock->w, 0, 0, 0);
+ break;
+ case DockPos_Bottom:
+ STRUT_SET(dock_strut, 0, 0, 0, dock->h);
+ break;
+ case DockPos_BottomRight:
+ if (config_dock_horz)
+ STRUT_SET(dock_strut, 0, 0, 0, dock->h);
+ else
+ STRUT_SET(dock_strut, 0, 0, dock->w, 0);
+ break;
+ }
+