summaryrefslogtreecommitdiffstats
path: root/twin/manage.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-20 13:57:39 -0600
committerTimothy Pearson <[email protected]>2012-02-20 13:57:39 -0600
commit98ead41b56d43b01c980a017949d351581769d29 (patch)
treee3b0326666fb1d434fa315cb16aa19a6771daaf3 /twin/manage.cpp
parentd160a6fc0101dd094195f8d0782e8aefcf94d376 (diff)
downloadtdebase-98ead41b56d43b01c980a017949d351581769d29.tar.gz
tdebase-98ead41b56d43b01c980a017949d351581769d29.zip
Add suspend/resume support for twin managed applications
Diffstat (limited to 'twin/manage.cpp')
-rw-r--r--twin/manage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/twin/manage.cpp b/twin/manage.cpp
index 2c6777153..acf1ce598 100644
--- a/twin/manage.cpp
+++ b/twin/manage.cpp
@@ -538,6 +538,12 @@ bool Client::manage( Window w, bool isMapped )
workspace()->discardUsedWindowRules( this, false ); // remove ApplyNow rules
updateWindowRules(); // was blocked while !isManaged()
+// Handle suspended processes
+ if (isResumeable())
+ {
+ suspendWindow(); // It won't hurt to stop the process again, and this will update the displayed captions
+ }
+
// TODO there's a small problem here - isManaged() depends on the mapping state,
// but this client is not yet in Workspace's client list at this point, will
// be only done in addClient()