Merge remote-tracking branch 'origin/KDE/4.8'

I did something wrong. The recent four fixes for klipper bugs were
cherry-picked from master into KDE/4.8. So they appear twice in the
merged history.

Conflicts:
	klipper/urlgrabber.cpp
This commit is contained in:
Jekyll Wu 2011-12-25 19:37:15 +08:00
commit ab936e40ab

View file

@ -324,10 +324,11 @@ bool Client::manage(Window w, bool isMapped)
bool dontKeepInArea = false;
if (!noBorder()) {
setClientGroup(NULL);
bool autogrouping = rules()->checkAutogrouping(options->autogroupSimilarWindows);
// Automatically add to previous groups on session restore
if (session && session->clientGroupClient && session->clientGroupClient != this && session->clientGroupClient->clientGroup())
session->clientGroupClient->clientGroup()->add(this, -1, true);
else if (isMapped)
else if (isMapped && autogrouping)
// If the window is already mapped (Restarted KWin) add any windows that already have the
// same geometry to the same client group. (May incorrectly handle maximized windows)
foreach (ClientGroup * group, workspace()->clientGroups)