forked from enlightenment/enlightenment
parent
3517b05d8d
commit
4ef9ea4922
|
@ -1670,8 +1670,9 @@ e_border_act_close_begin(E_Border *bd)
|
||||||
void
|
void
|
||||||
e_border_act_kill_begin(E_Border *bd)
|
e_border_act_kill_begin(E_Border *bd)
|
||||||
{
|
{
|
||||||
if (bd->client.netwm.pid != 0)
|
if (bd->client.netwm.pid > 1)
|
||||||
{
|
{
|
||||||
|
printf("%i\n", bd->client.netwm.pid);
|
||||||
kill(bd->client.netwm.pid, SIGINT);
|
kill(bd->client.netwm.pid, SIGINT);
|
||||||
bd->kill_timer = ecore_timer_add(10.0, _e_border_cb_kill_timer, bd);
|
bd->kill_timer = ecore_timer_add(10.0, _e_border_cb_kill_timer, bd);
|
||||||
}
|
}
|
||||||
|
@ -5328,7 +5329,7 @@ _e_border_cb_kill_timer(void *data)
|
||||||
E_Border *bd;
|
E_Border *bd;
|
||||||
|
|
||||||
bd = data;
|
bd = data;
|
||||||
if (bd->client.netwm.pid != 0)
|
if (bd->client.netwm.pid > 1)
|
||||||
kill(bd->client.netwm.pid, SIGKILL);
|
kill(bd->client.netwm.pid, SIGKILL);
|
||||||
bd->kill_timer = NULL;
|
bd->kill_timer = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue