Skip to content

Commit

Permalink
Merge pull request #4 from yrmt/master
Browse files Browse the repository at this point in the history
Makefile and Compiler warnings.
  • Loading branch information
Cloudef committed Jan 15, 2014
2 parents 20297d4 + ce9a6df commit c9e3869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Makefile
Expand Up @@ -7,14 +7,14 @@ PREFIX ?= /usr/local
BINDIR ?= ${PREFIX}/bin
MANPREFIX = ${PREFIX}/share/man

INCS = -I.
INCS = -I. -I${PREFIX}/include
LIBS = -lc `pkg-config --libs xcb xcb-icccm xcb-keysyms`

CPPFLAGS += -DVERSION=\"${VERSION}\" -DWMNAME=\"${WMNAME}\"

DEBUG = 0
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Os ${INCS} ${CPPFLAGS} -DVERSION=\"${VERSION}\"
LDFLAGS += -s ${LIBS}
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Os ${INCS} ${CPPFLAGS} -DVERSION=\"${VERSION}\"
LDFLAGS += ${LIBS}

EXEC = ${WMNAME}

Expand All @@ -23,7 +23,6 @@ OBJ = ${SRC:.c=.o}

ifeq (${DEBUG},0)
CFLAGS += -Os
LDFLAGS += -s
else
CFLAGS += -g
LDFLAGS += -g
Expand Down
2 changes: 1 addition & 1 deletion monsterwm.c
Expand Up @@ -445,7 +445,7 @@ void configurerequest(xcb_generic_event_t *e) {
unsigned int v[7];
unsigned int i = 0;
if (ev->value_mask & XCB_CONFIG_WINDOW_X) v[i++] = ev->x;
if (ev->value_mask & XCB_CONFIG_WINDOW_Y) v[i++] = ev->y + (showpanel && TOP_PANEL) ? PANEL_HEIGHT : 0;
if (ev->value_mask & XCB_CONFIG_WINDOW_Y) v[i++] = (ev->y + (showpanel && TOP_PANEL)) ? PANEL_HEIGHT : 0;
if (ev->value_mask & XCB_CONFIG_WINDOW_WIDTH) v[i++] = (ev->width < ww - BORDER_WIDTH) ? ev->width : ww + BORDER_WIDTH;
if (ev->value_mask & XCB_CONFIG_WINDOW_HEIGHT) v[i++] = (ev->height < wh - BORDER_WIDTH) ? ev->height : wh + BORDER_WIDTH;
if (ev->value_mask & XCB_CONFIG_WINDOW_BORDER_WIDTH) v[i++] = ev->border_width;
Expand Down

0 comments on commit c9e3869

Please sign in to comment.