diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2006-04-07 18:59:07 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2006-04-07 18:59:07 +0000 |
commit | b1c0b50cc83a51140c7f5f564f829029d6974f17 (patch) | |
tree | 070bca60e86b80838a5ba85f5c25ef348312a292 /x11/kdebase4/files | |
parent | 87052fc3c4336b3004e21f0772efc17c7fad72ca (diff) |
Fix KDE bug 124826.
Obtained from: KDE SVN, Aron Stansvik <elvstone@gmail.com>
Notes
Notes:
svn path=/head/; revision=159072
Diffstat (limited to 'x11/kdebase4/files')
-rw-r--r-- | x11/kdebase4/files/patch-kwin-tabbox.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/kdebase4/files/patch-kwin-tabbox.cpp b/x11/kdebase4/files/patch-kwin-tabbox.cpp new file mode 100644 index 000000000000..1254fc501ed8 --- /dev/null +++ b/x11/kdebase4/files/patch-kwin-tabbox.cpp @@ -0,0 +1,20 @@ +--- kwin/tabbox.cpp 2006/03/17 21:38:24 519807 ++++ kwin/tabbox.cpp 2006/04/03 13:05:18 525954 +@@ -1152,7 +1152,7 @@ + */ + Client* Workspace::nextFocusChainClient( Client* c ) const + { +- int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop(); ++ int desktop = !c || c->isOnAllDesktops() ? currentDesktop() : c->desktop(); + if ( focus_chain[desktop].isEmpty() ) + return 0; + ClientList::ConstIterator it = focus_chain[desktop].find( c ); +@@ -1170,7 +1170,7 @@ + */ + Client* Workspace::previousFocusChainClient( Client* c ) const + { +- int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop(); ++ int desktop = !c || c->isOnAllDesktops() ? currentDesktop() : c->desktop(); + if ( focus_chain[desktop].isEmpty() ) + return 0; + ClientList::ConstIterator it = focus_chain[desktop].find( c ); |