intel-virtual-overlay: Keep bumblebeed awake
bumbledeed will shutdown its Xserver when the last connection to it closes. For the moment, leak the control socket so that the display stays alive. However, we will want to attach to any Xservers created by bumblebee as opposed to creating them. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
c8dc27e00e
commit
7c5d269f25
|
|
@ -1686,7 +1686,6 @@ static int bumblebee_open(struct context *ctx)
|
|||
goto err;
|
||||
}
|
||||
buf[len] = '\0';
|
||||
close(fd);
|
||||
|
||||
DBG(("%s query result '%s'\n", __func__, buf));
|
||||
|
||||
|
|
@ -1698,6 +1697,13 @@ static int bumblebee_open(struct context *ctx)
|
|||
len++;
|
||||
buf[len] = '\0';
|
||||
|
||||
/* XXX We must keep the control socket open whilst we want to keep
|
||||
* the display around.
|
||||
*
|
||||
* So what we need to do is listen for new bumblee Xservers and
|
||||
* bind only for their duration.
|
||||
*/
|
||||
|
||||
return display_open(ctx, buf+7);
|
||||
|
||||
err:
|
||||
|
|
|
|||
Loading…
Reference in New Issue