[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/kwin
From:       Chani Armitage <chanika () gmail ! com>
Date:       2010-11-11 23:37:50
Message-ID: 20101111233750.B8C0EAC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1195773 by chani:

let's try having new windows default to the current activity.

if it turns out to be really annoying, I'll revert it.. :)

 M  +6 -0      manage.cpp  


--- trunk/KDE/kdebase/workspace/kwin/manage.cpp #1195772:1195773
@@ -207,7 +207,13 @@
             desk = info->desktop(); // Window had the initial desktop property, force it
         if( desktop() == 0 && asn_valid && asn_data.desktop() != 0 )
             desk = asn_data.desktop();
+        if (!isMapped &&  isNormalWindow() && isOnAllActivities()) {
+            //a new, regular window, when we're not recovering from a crash,
+            //and it hasn't got an activity. let's try giving it the current one.
+            //TODO: decide whether to keep this before the 4.6 release
+            setOnActivity(Workspace::self()->currentActivity(), true);
         }
+        }
     if( desk == 0 ) // Assume window wants to be visible on the current desktop
         desk = workspace()->currentDesktop();
     desk = rules()->checkDesktop( desk, !isMapped );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic