e_process: added code checking the ec->visible while handling uniconify event. 45/97345/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 14 Nov 2016 02:29:51 +0000 (11:29 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 14 Nov 2016 02:29:51 +0000 (11:29 +0900)
there was a bug that the status of the process was changed to foreground
when the iconified window is destoryed.

Change-Id: I54939093374a1718a9eb8497ff537908ca27dd38

src/bin/e_process.c

index 88886c852527c913bd44cfe298c4e0e2ccd52e46..0348712a87e704df6b22f8556104915c7e176b39 100644 (file)
@@ -244,7 +244,8 @@ _e_process_cb_client_uniconify(void *data EINA_UNUSED, int type EINA_UNUSED, voi
    if (!ec) return ECORE_CALLBACK_PASS_ON;
 
    pid = ec->netwm.pid;
-   _e_process_thaw(pid);
+   if (ec->visible)
+     _e_process_thaw(pid);
 
    return ECORE_CALLBACK_PASS_ON;
 }