2020-06-20 18:05:25 +02:00
|
|
|
diff -Nru spectrwm-SPECTRWM_3_4_0.orig/linux/Makefile spectrwm-SPECTRWM_3_4_0/linux/Makefile
|
|
|
|
--- spectrwm-SPECTRWM_3_4_0.orig/linux/Makefile 2020-06-18 19:13:58.945671800 +0200
|
|
|
|
+++ spectrwm-SPECTRWM_3_4_0/linux/Makefile 2020-06-18 19:14:28.289107455 +0200
|
|
|
|
@@ -14,7 +14,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)\"
|
2020-06-20 18:05:25 +02:00
|
|
|
@@ -29,7 +29,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)
|
2020-06-20 18:05:25 +02:00
|
|
|
diff -Nru spectrwm-SPECTRWM_3_4_0.orig/spectrwm.c spectrwm-SPECTRWM_3_4_0/spectrwm.c
|
|
|
|
--- spectrwm-SPECTRWM_3_4_0.orig/spectrwm.c 2020-06-18 19:13:58.949005145 +0200
|
|
|
|
+++ spectrwm-SPECTRWM_3_4_0/spectrwm.c 2020-06-18 19:14:28.292440799 +0200
|
|
|
|
@@ -309,9 +309,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;
|
2020-06-20 18:05:25 +02:00
|
|
|
@@ -4526,6 +4526,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");
|
2020-06-20 18:05:25 +02:00
|
|
|
@@ -4536,6 +4537,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");
|