diff options
author | okan | 2014-02-01 19:28:46 +0000 |
---|---|---|
committer | okan | 2014-02-01 19:28:46 +0000 |
commit | 028326e24d7bb15a9c17b4c7e63a84b8b3af8c9c (patch) | |
tree | 7895ec8e832d4c40af685b046a06bbf8fc7be147 /menu.c | |
parent | 040a853128dd2340395d0f3c92ad911aa8dfc4fc (diff) | |
download | cwm-028326e24d7bb15a9c17b4c7e63a84b8b3af8c9c.tar.gz |
Take menu's bwidth into account for position/size; reported by Thomas Adam.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |