From 501bf5e16f8287e0d2d193d2bdd4e44a0dadbd86 Mon Sep 17 00:00:00 2001 From: kloczek Date: Tue, 18 Sep 2001 22:24:11 +0000 Subject: [PATCH] - fixes for compile some files on new WindowMaker resources. Changed files: FSViewer-debian.patch -> 1.1 --- FSViewer-debian.patch | 89 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 FSViewer-debian.patch diff --git a/FSViewer-debian.patch b/FSViewer-debian.patch new file mode 100644 index 0000000..42ba586 --- /dev/null +++ b/FSViewer-debian.patch @@ -0,0 +1,89 @@ +--- fsviewer-0.2.3.orig/src/FSFileView.c ++++ fsviewer-0.2.3/src/FSFileView.c +@@ -397,10 +397,10 @@ + if ((fView->primary)) + { + memset((void *) &attributes, 0, sizeof(GNUstepWMAttributes)); +- attributes.window_style = (NSTitledWindowMask | +- NSMiniaturizableWindowMask | +- NSResizableWindowMask); +- attributes.window_level = NSNormalWindowLevel; ++ attributes.window_style = (WMTitledWindowMask | ++ WMMiniaturizableWindowMask | ++ WMResizableWindowMask); ++ attributes.window_level = WMNormalWindowLevel; + attributes.extra_flags = GSFullKeyboardEventsFlag; + attributes.flags = (GSWindowStyleAttr | GSWindowLevelAttr | + GSExtraFlagsAttr); +--- fsviewer-0.2.3.orig/src/FSFinder.c ++++ fsviewer-0.2.3/src/FSFinder.c +@@ -138,11 +138,11 @@ + } + + memset((void *) &attributes, 0, sizeof(GNUstepWMAttributes)); +- attributes.window_style = (NSTitledWindowMask | +- NSMiniaturizableWindowMask | +- NSClosableWindowMask | +- NSResizableWindowMask); +- attributes.window_level = NSNormalWindowLevel; ++ attributes.window_style = (WMTitledWindowMask | ++ WMMiniaturizableWindowMask | ++ WMClosableWindowMask | ++ WMResizableWindowMask); ++ attributes.window_level = WMNormalWindowLevel; + attributes.extra_flags = GSFullKeyboardEventsFlag; + attributes.flags = (GSWindowStyleAttr | GSWindowLevelAttr | + GSExtraFlagsAttr); +--- fsviewer-0.2.3.orig/src/FSPanel.c ++++ fsviewer-0.2.3/src/FSPanel.c +@@ -1564,10 +1564,10 @@ + WMCloseWindow(selIcon->win); + WMUnmapWidget(selIcon->win); + WMDestroyWidget(selIcon->win); +- free((void *) selIcon); + if(selIcon->iconName) + imgStr = wstrdup(selIcon->iconName); + ++ free((void *) selIcon); + selIcon = NULL; + + return imgStr; +--- fsviewer-0.2.3.orig/src/FSViewer.c ++++ fsviewer-0.2.3/src/FSViewer.c +@@ -127,8 +127,8 @@ + } + + memset((void *) &attributes, 0, sizeof(GNUstepWMAttributes)); +- attributes.window_style = (NSTitledWindowMask | NSClosableWindowMask); +- attributes.window_level = NSFloatingWindowLevel; ++ attributes.window_style = (WMTitledWindowMask | WMClosableWindowMask); ++ attributes.window_level = WMFloatingWindowLevel; + attributes.extra_flags = GSFullKeyboardEventsFlag; + attributes.flags = + (GSWindowStyleAttr | GSWindowLevelAttr | GSExtraFlagsAttr); +@@ -153,10 +153,10 @@ + } + + memset((void *) &attributes, 0, sizeof(GNUstepWMAttributes)); +- attributes.window_style = (NSTitledWindowMask | +- NSClosableWindowMask | +- NSMiniaturizableWindowMask); +- attributes.window_level = NSNormalWindowLevel; ++ attributes.window_style = (WMTitledWindowMask | ++ WMClosableWindowMask | ++ WMMiniaturizableWindowMask); ++ attributes.window_level = WMNormalWindowLevel; + attributes.extra_flags = GSFullKeyboardEventsFlag; + attributes.flags = + (GSWindowStyleAttr | GSWindowLevelAttr | GSExtraFlagsAttr); +@@ -182,8 +182,8 @@ + // This is horrible: there must be a better way? + XStoreName(fsViewer->dpy, window, " "); + memset((void *) &attributes, 0, sizeof(GNUstepWMAttributes)); +- attributes.window_style = (NSTitledWindowMask); +- attributes.window_level = NSFloatingWindowLevel; ++ attributes.window_style = (WMTitledWindowMask); ++ attributes.window_level = WMFloatingWindowLevel; + attributes.extra_flags = GSFullKeyboardEventsFlag; + attributes.flags = + (GSWindowStyleAttr | GSWindowLevelAttr | GSExtraFlagsAttr); -- 2.44.0