失われたXウィンドウを修復する方法

失われたXウィンドウを修復する方法

どういうわけか私のウィンドウマネージャをクラッシュさせることができましたdwm。 dwmを再起動した後(同じXセッションで)、開いていた90個ほどのウィンドウの半分以上が消えました。lswdwm が表示する内容を反映するので (つまり、90 個以上のウィンドウのうち半分が欠けている)、dwm によって隠されることはありません。しかし、これらのプロセスは管理する窓は依然として存在することが知られていますps。 psは停止したプロセスがゼロであることを示し、欠落しているウィンドウにはゾンビの状態は表示されません(SとS +が表示されます)。

Windowsを復元できるように、これらのプロセスをXサーバーに「再接続」する方法はありますか?一般的には、私が試したことを示していますが、実際にはこのようなことをする方法を知りません。

もう一度申し上げますが、私がやりたいことは、まだ実行中のGUIプロセスをインポートしてXサーバーに返して:1作業内容を保存することです。可能ですか?

アップデート1

lswxlsclients以下は、およびの出力ですxwininfo -tree -root

$ lsw
0x0600001 braden@braden-Leopard-WS: ~
0xa800041 Edit - Unix & Linux Stack Exchange - Chromium
0x2200001 [No Name] + - VIM
0xa80142c New Tab - Chromium
0xa800078 New Tab - Chromium
0xa80144e New Tab - Chromium
0x7000001 [No Name] + - VIM
0xa80138b New Tab - Chromium

$ xlsclients
braden-Leopard-WS  gnome-screensaver
braden-Leopard-WS  kded4
braden-Leopard-WS  kded4
braden-Leopard-WS  /usr/bin/kglobalaccel
braden-Leopard-WS  /usr/bin/kglobalaccel
braden-Leopard-WS  /usr/bin/knotify4
braden-Leopard-WS  /usr/bin/knotify4
braden-Leopard-WS  chromium-browser
braden-Leopard-WS  notify-osd

$ xwininfo -tree -root
xwininfo: Window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.04 | T 14:31:16"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.04 | T 14:31:16"
  Parent window id: 0x0 (none)
     38 children:
     0x600001 "braden@braden-Leopard-WS: ~": ("xterm-256color" "xterm-256color")  1138x1040+1071+248  +1071+248
     0xa800048 (has no name): ()  60x26+470+153  +470+153
     0xa80142e (has no name): ()  147x26+1056+66  +1056+66
     0xa80007a (has no name): ()  156x26+1275+356  +1275+356
     0x40000e (has no name): ()  1920x22+0+-22  +0+-22
     0x40000d (has no name): ()  1920x22+0+0  +0+0
     0xa800041 "Edit - Unix & Linux Stack Exchange - Chromium": ("chromium-browser" "Chromium-browser")  1912x1050+0+22  +0+22
     0x2200001 "[No Name] + - VIM": ("xterm-256color" "xterm-256color")  1912x1050+-3840+22  +-3840+22
     0xa80142c "New Tab - Chromium": ("chromium-browser" "Chromium-browser")  1144x1050+-2304+22  +-2304+22
     0xa800078 "New Tab - Chromium": ("chromium-browser" "Chromium-browser")  760x256+-1536+286  +-1536+286
     0xa80144e "New Tab - Chromium": ("chromium-browser" "Chromium-browser")  760x257+-1536+550  +-1536+550
     0x7000001 "[No Name] + - VIM": ("xterm-256color" "xterm-256color")  760x257+-1536+815  +-1536+815
     0xa80138b "New Tab - Chromium": ("chromium-browser" "Chromium-browser")  760x256+-1536+22  +-1536+22
     0x2600001 "VIM": ("VIM" "Vim_xterm")  1x1+0+0  +0+0
     0x1800008 (has no name): ()  1x1+-1+-1  +-1+-1
     0x1800001 "notify-osd": ("notify-osd" "Notify-osd")  10x10+10+10  +10+10
     0xa801454 (has no name): ()  409x215+1006+773  +1006+773
     0x9a00001 "VIM": ("VIM" "Vim_xterm")  1x1+0+0  +0+0
     0x980000f (has no name): ()  1x1+-1+-1  +-1+-1
     0xa80138d (has no name): ()  140x26+707+837  +707+837
     0x9800002 "chromium-browser": ()  10x10+-100+-100  +-100+-100
     0xa800015 "Chromium clipboard": ()  10x10+-100+-100  +-100+-100
     0xb000001 (has no name): ()  1x1+0+0  +0+0
     0xa800005 (has no name): ()  1x1+0+0  +0+0
     0x9800001 "chromium-browser": ("chromium-browser" "Chromium-browser")  10x10+10+10  +10+10
     0x920000a "knotify4": ("knotify4" "Knotify4")  960x432+0+0  +0+0
     0x9200004 (has no name): ()  1x1+0+0  +0+0
     0x9200002 "knotify4": ("knotify4" "Knotify4")  960x432+0+0  +0+0
     0x8e00001 (has no name): ()  1x1+0+0  +0+0
     0x900000a "kglobalaccel": ("kglobalaccel" "Kglobalaccel")  960x432+0+0  +0+0
     0x9000004 (has no name): ()  1x1+0+0  +0+0
     0x9000002 "kglobalaccel": ("kglobalaccel" "Kglobalaccel")  960x432+0+0  +0+0
     0x840000a "kded4": ("kded4" "Kded4")  960x432+0+0  +0+0
     0x8400004 (has no name): ()  1x1+0+0  +0+0
     0x8400002 "kded4": ("kded4" "Kded4")  960x432+0+0  +0+0
     0x1000002 "gnome-screensaver": ()  10x10+-100+-100  +-100+-100
     0x1000001 "gnome-screensaver": ("gnome-screensaver" "Gnome-screensaver")  10x10+10+10  +10+10
     0x800001 (has no name): ()  10x10+-20+-20  +-20+-20

$ xwininfo -tree -root | grep "has no name"
     0xa800048 (has no name): ()  60x26+470+153  +470+153
     0xa80142e (has no name): ()  147x26+1056+66  +1056+66
     0xa80007a (has no name): ()  156x26+1275+356  +1275+356
     0x40000e (has no name): ()  1920x22+0+-22  +0+-22
     0x40000d (has no name): ()  1920x22+0+0  +0+0
     0x1800008 (has no name): ()  1x1+-1+-1  +-1+-1
     0xa801454 (has no name): ()  409x215+1006+773  +1006+773
     0x980000f (has no name): ()  1x1+-1+-1  +-1+-1
     0xa80138d (has no name): ()  140x26+707+837  +707+837
     0xb000001 (has no name): ()  1x1+0+0  +0+0
     0xa800005 (has no name): ()  1x1+0+0  +0+0
     0x9200004 (has no name): ()  1x1+0+0  +0+0
     0x8e00001 (has no name): ()  1x1+0+0  +0+0
     0x9000004 (has no name): ()  1x1+0+0  +0+0
     0x8400004 (has no name): ()  1x1+0+0  +0+0
     0x800001 (has no name): ()  10x10+-20+-20  +-20+-20

「名前が指定されていない」ウィンドウの数は、私が失ったウィンドウの数とほぼ同じように見えるので、それが確実であると確信しています。これで、サーバーに再接続する方法です。これが本当の問題です。

アップデート2

xwininfo以下は、ルートの各子ノードの出力です。

$ xwininfo -tree -root | egrep "^ +0x" | while read line; do xwininfo -tree -id $(echo $line | awk '{print $1}'); done
xwininfo: Window id: 0xa800048 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xc0000c (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xc00002 "Terminal"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xc00001 "Terminal"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xa80142e (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xa80007a (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0x40000e (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0x40000d (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xa800041 "Edit - Unix & Linux Stack Exchange - Chromium"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0x600001 "braden@braden-Leopard-WS: ~"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xc00006 "Terminal"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     1 child:
     0xc00007 (has no name): ()  1x1+-1+-1  +-3837+25

xwininfo: Window id: 0xc00007 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0xc00006 "Terminal"
     0 children.

xwininfo: Window id: 0xa80144e "New Tab - Chromium"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xa800078 "New Tab - Chromium"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xa80138b "New Tab - Chromium"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0xa80142c "New Tab - Chromium"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0x7000001 "[No Name] + - VIM"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0x2200001 "[No Name] + - VIM"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0x2600001 "VIM"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0x1800008 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:06"
     0 children.

xwininfo: Window id: 0x1800001 "notify-osd"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0xa801454 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x9a00001 "VIM"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x980000f (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0xa80138d (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x9800002 "chromium-browser"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0xa800015 "Chromium clipboard"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0xb000001 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0xa800005 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x9800001 "chromium-browser"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x920000a "knotify4"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x9200004 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x9200002 "knotify4"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x8e00001 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x900000a "kglobalaccel"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x9000004 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x9000002 "kglobalaccel"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x840000a "kded4"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x8400004 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x8400002 "kded4"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x1000002 "gnome-screensaver"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x1000001 "gnome-screensaver"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

xwininfo: Window id: 0x800001 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 09:42:07"
     0 children.

彼らの中に子供がいる人はほとんどいません。実際には1つしかありません。

$ ... | grep child: -A 1 -B 4
xwininfo: Window id: 0xc00006 "Terminal"

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 10:02:55"
  Parent window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 10:02:55"
     1 child:
     0xc00007 (has no name): ()  1x1+-1+-1  +-3837+25

$ xwininfo -tree -id 0xc00007
xwininfo: Window id: 0xc00007 (has no name)

  Root window id: 0x1df (the root window) "/:94 . ~:53 . V:11 | D 2017.10.05 | T 10:04:07"
  Parent window id: 0xc00006 "Terminal"
     0 children.

これらのどれも役に立ちません。パラメータなしで使用し、周囲をクリックするとaがあることxwininfoを発見して開きました。0xc00006gnome-terminal -e ranger後ろにウィンドウ紛失イベント。

また、他の「名前なし」ウィンドウ、つまり1x1以外のサイズのウィンドウは、私が欠けているウィンドウである可能性が高く、ルートウィンドウの直系の子である可能性が高いです。

窓を戻すことはできますか?

関連情報