diff options
author | okan | 2013-06-17 17:11:10 +0000 |
---|---|---|
committer | okan | 2013-06-17 17:11:10 +0000 |
commit | 44880fc9e1b308e5fdd1070fbd2d7fd012b1dc75 (patch) | |
tree | 8c660ca028101e2dd039988fef2c9d08764e5f6b /menu.c | |
parent | 99bf11e128ef433ba54ef1899d937d2f99f9069b (diff) | |
download | cwm-44880fc9e1b308e5fdd1070fbd2d7fd012b1dc75.tar.gz |
move Cursors into conf.
Diffstat (limited to '')
-rw-r--r-- | menu.c | 9 |
1 files changed, 5 insertions, 4 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.65 2013/05/20 21:32:00 okan Exp $ + * $OpenBSD: menu.c,v 1.66 2013/06/17 17:11:10 okan Exp $ */ #include <sys/param.h> @@ -122,7 +122,8 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt, XSelectInput(X_Dpy, sc->menuwin, evmask); XMapRaised(X_Dpy, sc->menuwin); - if (xu_ptr_grab(sc->menuwin, MENUGRABMASK, Cursor_question) < 0) { + if (xu_ptr_grab(sc->menuwin, MENUGRABMASK, + Conf.cursor[CF_QUESTION]) < 0) { XUnmapWindow(X_Dpy, sc->menuwin); return (NULL); } @@ -472,10 +473,10 @@ menu_handle_move(XEvent *e, struct menu_ctx *mc, struct menu_q *resultq) if (mc->prev != -1) menu_draw_entry(mc, resultq, mc->prev, 0); if (mc->entry != -1) { - (void)xu_ptr_regrab(MENUGRABMASK, Cursor_normal); + (void)xu_ptr_regrab(MENUGRABMASK, Conf.cursor[CF_NORMAL]); menu_draw_entry(mc, resultq, mc->entry, 1); } else - (void)xu_ptr_regrab(MENUGRABMASK, Cursor_default); + (void)xu_ptr_regrab(MENUGRABMASK, Conf.cursor[CF_DEFAULT]); if (mc->hasprompt) menu_draw_entry(mc, resultq, 1, 1); |