*
* Copyright (c) Tuomo Valkonen 1999-2007.
*
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
*/
#include <string.h>
g.y=0;
}
- if(rectangle_contains(&g, ev->x, ev->y)){
+ if(frame->barmode!=FRAME_BAR_NONE &&
+ rectangle_contains(&g, ev->x, ev->y)){
p_tabnum=frame_tab_at_x(frame, ev->x);
region_rootpos((WRegion*)frame, &p_tab_x, &p_tab_y);
/*EXTL_DOC
* Start dragging the tab that the user pressed on with the pointing device.
* This function should only be used by binding it to \emph{mpress} or
- * \emph{mdrag} action with area ''tab''.
+ * \emph{mdrag} action with area \codestr{tab}.
*/
EXTL_EXPORT_MEMBER
void frame_p_tabdrag(WFrame *frame)