2017-10-04 14:47:42 +02:00
|
|
|
diff -Nru spectrwm-3.1.0.orig/linux/Makefile spectrwm-3.1.0/linux/Makefile
|
|
|
|
--- spectrwm-3.1.0.orig/linux/Makefile 2017-10-04 14:09:54.457071082 +0200
|
|
|
|
+++ spectrwm-3.1.0/linux/Makefile 2017-10-04 14:14:40.116766035 +0200
|
|
|
|
@@ -11,7 +11,7 @@
|
2014-08-25 17:31:44 +02:00
|
|
|
|
|
|
|
MAINT_CFLAGS = -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
|
2017-10-04 14:47:42 +02:00
|
|
|
MAINT_LDFLAGS = -Wl,--as-needed
|
|
|
|
-MAINT_CPPFLAGS = -I. -D_GNU_SOURCE -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LIBVERSION)\"
|
|
|
|
+MAINT_CPPFLAGS = -I. -D_GNU_SOURCE
|
2014-08-25 17:31:44 +02:00
|
|
|
|
|
|
|
ifneq ("${BUILDVERSION}", "")
|
2016-05-27 14:52:29 +02:00
|
|
|
MAINT_CPPFLAGS += -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
|
2017-10-04 14:47:42 +02:00
|
|
|
@@ -26,7 +26,7 @@
|
|
|
|
LIB_CPPFLAGS = $(shell pkg-config --cflags x11)
|
|
|
|
LIB_LDLIBS = $(shell pkg-config --libs x11) -ldl
|
2016-05-27 14:52:29 +02:00
|
|
|
|
|
|
|
-all: spectrwm libswmhack.so.$(LIBVERSION)
|
|
|
|
+all: spectrwm
|
|
|
|
|
|
|
|
spectrwm: spectrwm.o linux.o
|
2017-10-04 14:47:42 +02:00
|
|
|
$(CC) $(MAINT_LDFLAGS) $(BIN_LDFLAGS) $(LDFLAGS) -o $@ $+ $(BIN_LDLIBS) $(LDLIBS)
|
|
|
|
diff -Nru spectrwm-3.1.0.orig/spectrwm.c spectrwm-3.1.0/spectrwm.c
|
|
|
|
--- spectrwm-3.1.0.orig/spectrwm.c 2017-10-04 14:09:54.457071082 +0200
|
|
|
|
+++ spectrwm-3.1.0/spectrwm.c 2017-10-04 14:13:46.335374611 +0200
|
|
|
|
@@ -274,9 +274,9 @@
|
2013-11-27 14:20:07 +01:00
|
|
|
#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;
|
2017-10-04 14:47:42 +02:00
|
|
|
@@ -3761,6 +3761,7 @@
|
2013-11-27 14:20:07 +01:00
|
|
|
|
|
|
|
close(xcb_get_file_descriptor(conn));
|
|
|
|
|
2016-05-16 15:56:49 +02:00
|
|
|
+ /*
|
|
|
|
if ((ret = getenv("LD_PRELOAD"))) {
|
|
|
|
if (asprintf(&ret, "%s:%s", SWM_LIB, ret) == -1) {
|
|
|
|
warn("spawn: asprintf LD_PRELOAD");
|
2017-10-04 14:47:42 +02:00
|
|
|
@@ -3771,6 +3772,7 @@
|
2016-05-16 15:56:49 +02:00
|
|
|
} else {
|
|
|
|
setenv("LD_PRELOAD", SWM_LIB, 1);
|
|
|
|
}
|
|
|
|
+ */
|
2013-11-27 14:20:07 +01:00
|
|
|
|
|
|
|
if (asprintf(&ret, "%d", ws_idx) == -1) {
|
|
|
|
warn("spawn: asprintf SWM_WS");
|