summaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index fb721a2..a628594 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.148 2003/05/08 01:04:05 fluxgen Exp $ 25// $Id: Screen.cc,v 1.149 2003/05/08 01:51:18 rathnor Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -2447,7 +2447,9 @@ WinClient *BScreen::getLastFocusedWindow(int workspace) {
2447 for (; it != it_end; ++it) 2447 for (; it != it_end; ++it)
2448 if ((*it)->fbwindow() && 2448 if ((*it)->fbwindow() &&
2449 (((int)(*it)->fbwindow()->getWorkspaceNumber()) == workspace 2449 (((int)(*it)->fbwindow()->getWorkspaceNumber()) == workspace
2450 || (*it)->fbwindow()->isStuck())) 2450 && (!(*it)->fbwindow()->isStuck() || (*it)->fbwindow()->isFocused())))
2451 // only give focus to a stuck window if it is currently focused
2452 // otherwise they tend to override normal workspace focus
2451 return *it; 2453 return *it;
2452 return 0; 2454 return 0;
2453} 2455}