aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-08-08 03:18:03 +0800
committerkrion <krion@FreeBSD.org>2004-08-08 03:18:03 +0800
commit6244fdd43d13c11c4d277bd7d49dbe8e3a72e9cb (patch)
tree49904a0344372711cd8ec1be18d798b9e308d8ef /x11-wm
parent94d7ad8714fe41048b4cab10b4fe27b7f45575d3 (diff)
downloadfreebsd-ports-gnome-6244fdd43d13c11c4d277bd7d49dbe8e3a72e9cb.tar.gz
freebsd-ports-gnome-6244fdd43d13c11c4d277bd7d49dbe8e3a72e9cb.tar.zst
freebsd-ports-gnome-6244fdd43d13c11c4d277bd7d49dbe8e3a72e9cb.zip
Fix build with gcc-3.4.2
PR: ports/70121 Submitted by: Ports Fury
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/aewm++/files/patch-windowmanager.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-wm/aewm++/files/patch-windowmanager.cc b/x11-wm/aewm++/files/patch-windowmanager.cc
new file mode 100644
index 000000000000..039a996c140d
--- /dev/null
+++ b/x11-wm/aewm++/files/patch-windowmanager.cc
@@ -0,0 +1,15 @@
+--- windowmanager.cc.orig Thu May 15 10:44:12 2003
++++ windowmanager.cc Thu Aug 5 20:07:05 2004
+@@ -623,9 +623,10 @@
+ }
+ if (ks >= XK_1 && ks <= XK_1+(unsigned)max_desktops && ks - XK_1 <= (unsigned)9) /* no two digit keys */
+ {
+- if( (unsigned)current_desktop != ks - XK_1 )
++ unsigned my_current_desktop = (unsigned)current_desktop;
++ if( my_current_desktop != ks - XK_1 )
+ {
+- (unsigned)current_desktop = ks - XK_1;
++ my_current_desktop = ks - XK_1;
+ goToDesktop(current_desktop);
+ }
+ }