The display pane will soon not be available as creation a display will
transparently stack various things on top of it.
So use "Display:close" instead of .close() and just hold the top level.
.term and .disp are often the same now. I wonder if we need both.
Signed-off-by: NeilBrown <neil@brown.name>
### lib-server
- [ ] ctrl-z in elc doesn't ask edlib to release the terminal
+- [ ] do we need both .term and .disp? When are they different?
### lib-x11selection-xcb
if not msg :
if self.disp:
- self.disp.close()
+ self.disp.call("Display:close")
if self.sock:
self.sock.close()
self.sock = None
arg, env['XAUTHORITY'], ret='pane')
if p:
for v in env:
- p[v] = env[v]
+ p.call("window:set:", env[v], v)
p.call("Window:bury")
self.term = p
self.term = p.call("editor:activate-display", ret='pane')
for v in env:
self.term.call("window:set:", env[v], v)
- self.disp = p
+ self.disp = self.term
self.add_notify(self.disp, "Notify:Close")
self.sock.send(b"OK")
return 1
self.sock.close()
self.sock = None
if self.disp:
- self.disp.close()
+ self.disp.call("Display:close")
self.disp = None
is_client = False