aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/fluxbox
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-01-30 16:48:59 +0000
committerPatrick Li <pat@FreeBSD.org>2002-01-30 16:48:59 +0000
commitbcd5e93d511ea3e8fe6c992be527818f48672d7b (patch)
tree1d84e0c34cdeea57e800d93926731843d419557d /x11-wm/fluxbox
parent4b8de42cd978a6ca40083bd82bab7c4400938a2d (diff)
downloadports-bcd5e93d511ea3e8fe6c992be527818f48672d7b.tar.gz
ports-bcd5e93d511ea3e8fe6c992be527818f48672d7b.zip
Notes
Diffstat (limited to 'x11-wm/fluxbox')
-rw-r--r--x11-wm/fluxbox/files/patch-src::StringUtil.cc11
-rw-r--r--x11-wm/fluxbox/files/patch-src::Window.cc33
2 files changed, 44 insertions, 0 deletions
diff --git a/x11-wm/fluxbox/files/patch-src::StringUtil.cc b/x11-wm/fluxbox/files/patch-src::StringUtil.cc
new file mode 100644
index 000000000000..f95273ad9cc9
--- /dev/null
+++ b/x11-wm/fluxbox/files/patch-src::StringUtil.cc
@@ -0,0 +1,11 @@
+--- src/StringUtil.cc.orig Wed Jan 9 15:11:20 2002
++++ src/StringUtil.cc Wed Jan 30 06:54:54 2002
+@@ -67,7 +67,7 @@ char *StringUtil::expandFilename(const c
+
+ auto_ptr<char> retval( new char[strlen(filename)+strlen(getenv("HOME"))+2]);
+ if (filename[0]=='~') {
+- strcat(retval.get(), getenv("HOME"));
++ strcpy(retval.get(), getenv("HOME"));
+ strcat(retval.get(), &filename[1]);
+ } else
+ return StringUtil::strdup(filename); //return unmodified value
diff --git a/x11-wm/fluxbox/files/patch-src::Window.cc b/x11-wm/fluxbox/files/patch-src::Window.cc
new file mode 100644
index 000000000000..10ca1f863d8f
--- /dev/null
+++ b/x11-wm/fluxbox/files/patch-src::Window.cc
@@ -0,0 +1,33 @@
+--- src/Window.cc.orig Fri Jan 11 13:21:59 2002
++++ src/Window.cc Wed Jan 30 06:54:54 2002
+@@ -22,7 +22,7 @@
+ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ // DEALINGS IN THE SOFTWARE.
+
+-// $Id: Window.cc,v 1.18 2002/01/11 10:04:32 fluxgen Exp $
++// $Id: Window.cc,v 1.19.2.1 2002/01/12 16:36:18 fluxgen Exp $
+
+ // stupid macros needed to access some functions in version 2 of the GNU C
+ // library
+@@ -441,7 +441,9 @@ FluxboxWindow::FluxboxWindow(Window w, B
+
+ FluxboxWindow::~FluxboxWindow(void) {
+ Fluxbox *fluxbox = Fluxbox::instance();
+-
++ //TODO: Move this to Workspace::removeWindow
++ if (client.transient_for)
++ fluxbox->setFocusedWindow(client.transient_for);
+
+ if (moving || resizing) {
+ screen->hideGeometry();
+@@ -556,9 +558,7 @@ FluxboxWindow::~FluxboxWindow(void) {
+ fluxbox->removeWindowSearch(client.window);
+ screen->removeNetizen(client.window);
+ }
+- //TODO: Move this to Workspace::removeWindow
+- if (client.transient_for)
+- fluxbox->setFocusedWindow(client.transient_for);
++
+ #ifdef DEBUG
+ fprintf(stderr, "%s(%d): ~FluxboxWindow(this=%p) done\n", __FILE__, __LINE__, this);
+ #endif