From 98ead41b56d43b01c980a017949d351581769d29 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 20 Feb 2012 13:57:39 -0600 Subject: Add suspend/resume support for twin managed applications --- twin/manage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'twin/manage.cpp') 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() -- cgit v1.2.1