+ context = frame_context(e->data.x.client,
+ e->data.x.e->xmotion.window);
+
+ /* You can't drag on buttons */
+ if (context == Context_Maximize ||
+ context == Context_AllDesktops ||
+ context == Context_Shade ||
+ context == Context_Iconify ||
+ context == Context_Icon ||
+ context == Context_Close)
+ break;
+