Fix build with gcc-3.4.2

PR:		ports/70121
Submitted by:	Ports Fury
This commit is contained in:
Kirill Ponomarev 2004-08-07 19:18:03 +00:00
parent a8abed35ca
commit 53779e6de6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115575

View File

@ -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);
}
}