aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2012-02-24 16:14:00 +0800
committerdougb <dougb@FreeBSD.org>2012-02-24 16:14:00 +0800
commit07db3dc0f77071835f7b2c2cc0654a16823c8fe1 (patch)
tree3969e8b383847a6cca7e60c738bc6aeb6cf8aa25
parent8028e4b720bd066321c8d642c45ddb10f82d27f8 (diff)
downloadfreebsd-ports-gnome-07db3dc0f77071835f7b2c2cc0654a16823c8fe1.tar.gz
freebsd-ports-gnome-07db3dc0f77071835f7b2c2cc0654a16823c8fe1.tar.zst
freebsd-ports-gnome-07db3dc0f77071835f7b2c2cc0654a16823c8fe1.zip
Use logical negation instead of comparison to 0 for a value that can
be numeric, but is null by default. Currently in discussion upstream, but this change is confirmed to at least fix the symptom of not properly restoring the session on restart.
-rw-r--r--x11-wm/windowmaker/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/x11-wm/windowmaker/Makefile b/x11-wm/windowmaker/Makefile
index 8a9a5555bf8e..e742e8609323 100644
--- a/x11-wm/windowmaker/Makefile
+++ b/x11-wm/windowmaker/Makefile
@@ -73,6 +73,8 @@ pre-patch:
${WRKSRC}/WPrefs.app/Paths.c
@${REINPLACE_CMD} -e "s#WPrefs#${PREFIX}/GNUstep/Applications/WPrefs.app/WPrefs#" \
${WRKSRC}/util/wmgenmenu.c
+ @${REINPLACE_CMD} -e "764s#wPreferences.flags.restarting == 0#!wPreferences.flags.restarting#" \
+ ${WRKSRC}/src/startup.c
post-install:
@${MKDIR} ${PREFIX}/GNUstep/Applications/WPrefs.app/xpm