aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2014-02-01 19:28:46 +0000
committerokan2014-02-01 19:28:46 +0000
commit028326e24d7bb15a9c17b4c7e63a84b8b3af8c9c (patch)
tree7895ec8e832d4c40af685b046a06bbf8fc7be147 /menu.c
parent040a853128dd2340395d0f3c92ad911aa8dfc4fc (diff)
downloadcwm-028326e24d7bb15a9c17b4c7e63a84b8b3af8c9c.tar.gz
Take menu's bwidth into account for position/size; reported by Thomas Adam.
Diffstat (limited to '')
-rw-r--r--menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index 9f9d5aa..1e8c1fb 100644
--- a/menu.c
+++ b/menu.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: menu.c,v 1.74 2014/01/21 15:42:45 okan Exp $
+ * $OpenBSD: menu.c,v 1.75 2014/02/01 19:28:46 okan Exp $
*/
#include <sys/param.h>
@@ -382,8 +382,8 @@ menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq)
}
xine = screen_find_xinerama(sc, mc->x, mc->y, CWM_GAP);
- xine.w += xine.x;
- xine.h += xine.y;
+ xine.w += xine.x - Conf.bwidth * 2;
+ xine.h += xine.y - Conf.bwidth * 2;
xsave = mc->x;
ysave = mc->y;