+ DNPRINTF(SWM_D_MISC, "horizontal_init: workspace: %d\n", current_ws);
+
+ horizontal_msize[ws_idx] = ws[ws_idx].g.h / 2;
+}
+
+void
+horizontal_resize(int id)
+{
+ DNPRINTF(SWM_D_MISC, "horizontal_resize: workspace: %d\n", current_ws);
+
+ switch (id) {
+ case SWM_ARG_ID_MASTERSHRINK:
+ horizontal_msize[current_ws] -= ws[current_ws].g.h / 32;
+ if ( horizontal_msize[current_ws] < ws[current_ws].g.h / 16)
+ horizontal_msize[current_ws] = ws[current_ws].g.h / 16;
+ break;
+ case SWM_ARG_ID_MASTERGROW:
+ horizontal_msize[current_ws] += ws[current_ws].g.h / 32;
+ if ( horizontal_msize[current_ws] >
+ (ws[current_ws].g.h - (ws[current_ws].g.h / 16)))
+ horizontal_msize[current_ws] =
+ ws[current_ws].g.h - ws[current_ws].g.h / 16;
+ break;
+ default:
+ return;
+ }
+ stack();