diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2014-02-01 19:28:47 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2014-02-01 19:28:47 +0000 |
commit | ef69f36251088de1a4aad05f5dda61c4930acd81 (patch) | |
tree | d0932dbdab44296a3838d4bf8b149a1c74421d72 | |
parent | 1e4af4a0a3c5e28e3b3c20cffabd130eb470a43b (diff) |
Take menu's bwidth into account for position/size; reported by Thomas Adam.
-rw-r--r-- | app/cwm/menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/menu.c b/app/cwm/menu.c index 9f9d5aaa2..1e8c1fbee 100644 --- a/app/cwm/menu.c +++ b/app/cwm/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; |