summaryrefslogtreecommitdiff
path: root/app/cwm/conf.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2016-09-29 00:21:56 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2016-09-29 00:21:56 +0000
commite68278c461a59ab4b5e3832cf0930ba559fcc82f (patch)
treec73edf9a28a5b5d30a6a9007fdc490238fab997b /app/cwm/conf.c
parentaedc6746103419b3c5b626bdaa5898754c4d2d98 (diff)
Mechanical change: move screen menu bits to their own struct.
Diffstat (limited to 'app/cwm/conf.c')
-rw-r--r--app/cwm/conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index f414bb50d..5791db461 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.206 2016/09/22 14:36:03 okan Exp $
+ * $OpenBSD: conf.c,v 1.207 2016/09/29 00:21:55 okan Exp $
*/
#include <sys/types.h>
@@ -162,13 +162,13 @@ conf_screen(struct screen_ctx *sc)
}
}
- sc->menuwin = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1,
+ sc->menu.win = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1,
Conf.bwidth,
sc->xftcolor[CWM_COLOR_MENU_FG].pixel,
sc->xftcolor[CWM_COLOR_MENU_BG].pixel);
- sc->xftdraw = XftDrawCreate(X_Dpy, sc->menuwin, visual, colormap);
- if (sc->xftdraw == NULL)
+ sc->menu.xftdraw = XftDrawCreate(X_Dpy, sc->menu.win, visual, colormap);
+ if (sc->menu.xftdraw == NULL)
errx(1, "XftDrawCreate");
conf_grab_kbd(sc->rootwin);