53 lines
1.7 KiB
Diff
53 lines
1.7 KiB
Diff
diff -Nru spectrwm-SPECTRWM_3_2_0.orig/linux/Makefile spectrwm-SPECTRWM_3_2_0/linux/Makefile
|
|
--- spectrwm-SPECTRWM_3_2_0.orig/linux/Makefile 2018-09-09 13:19:53.214649480 +0200
|
|
+++ spectrwm-SPECTRWM_3_2_0/linux/Makefile 2018-09-09 13:20:23.310647277 +0200
|
|
@@ -11,7 +11,7 @@
|
|
|
|
MAINT_CFLAGS = -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
|
|
MAINT_LDFLAGS = -Wl,--as-needed
|
|
-MAINT_CPPFLAGS = -I. -D_GNU_SOURCE -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LIBVERSION)\"
|
|
+MAINT_CPPFLAGS = -I. -D_GNU_SOURCE
|
|
|
|
ifneq ("${BUILDVERSION}", "")
|
|
MAINT_CPPFLAGS += -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
|
|
@@ -26,7 +26,7 @@
|
|
LIB_CPPFLAGS = $(shell pkg-config --cflags x11)
|
|
LIB_LDLIBS = $(shell pkg-config --libs x11) -ldl
|
|
|
|
-all: spectrwm libswmhack.so.$(LIBVERSION)
|
|
+all: spectrwm
|
|
|
|
spectrwm: spectrwm.o linux.o
|
|
$(CC) $(MAINT_LDFLAGS) $(BIN_LDFLAGS) $(LDFLAGS) -o $@ $+ $(BIN_LDLIBS) $(LDLIBS)
|
|
diff -Nru spectrwm-SPECTRWM_3_2_0.orig/spectrwm.c spectrwm-SPECTRWM_3_2_0/spectrwm.c
|
|
--- spectrwm-SPECTRWM_3_2_0.orig/spectrwm.c 2018-09-09 13:19:53.214649480 +0200
|
|
+++ spectrwm-SPECTRWM_3_2_0/spectrwm.c 2018-09-09 13:20:23.313980536 +0200
|
|
@@ -290,9 +290,9 @@
|
|
#define SWM_CONF_DEFAULT (0)
|
|
#define SWM_CONF_KEYMAPPING (1)
|
|
|
|
-#ifndef SWM_LIB
|
|
+/* #ifndef SWM_LIB
|
|
#define SWM_LIB "/usr/local/lib/libswmhack.so"
|
|
-#endif
|
|
+#endif */
|
|
|
|
char **start_argv;
|
|
xcb_atom_t a_state;
|
|
@@ -3884,6 +3884,7 @@
|
|
|
|
close(xcb_get_file_descriptor(conn));
|
|
|
|
+ /*
|
|
if ((ret = getenv("LD_PRELOAD"))) {
|
|
if (asprintf(&ret, "%s:%s", SWM_LIB, ret) == -1) {
|
|
warn("spawn: asprintf LD_PRELOAD");
|
|
@@ -3894,6 +3895,7 @@
|
|
} else {
|
|
setenv("LD_PRELOAD", SWM_LIB, 1);
|
|
}
|
|
+ */
|
|
|
|
if (asprintf(&ret, "%d", ws_idx) == -1) {
|
|
warn("spawn: asprintf SWM_WS");
|