잃어버린 X 윈도우를 복구하는 방법

잃어버린 X 윈도우를 복구하는 방법

어떻게든 내 창 관리자를 충돌시킬 수 있었습니다 dwm. dwm을 다시 시작한 후(동일한 X 세션에서) 열려 있던 90개 정도의 창 중 절반 이상이 사라졌습니다. lswdwm이 표시하는 내용을 반영하므로(즉, 90개 이상의 창 중 절반이 누락됨) dwm에 의해 숨겨지는 것은 없습니다. 그러나 이러한 과정은관리하다창문은 여전히 ​​존재하는 것으로 알려졌습니다 ps. ps는 중지된 프로세스가 0개임을 표시하고 누락된 창에는 좀비 상태가 표시되지 않습니다(S 및 S+가 표시됨).

Windows를 복원할 수 있도록 이러한 프로세스를 X 서버에 "다시 연결"하는 방법이 있습니까? 일반적으로 여기에는 내가 시도한 내용이 표시되지만 실제로는 이와 같은 작업을 수행하는 방법을 알지 못하며 Google은 OS X에서 창을 화면 밖으로 옮기는 것 외에는 아무것도 제시하지 않았습니다.

다시 한번 말씀드리지만, 제가 하고 싶은 일은 아직 실행 중인 GUI 프로세스를 가져와 X 서버(display)에 반환하여 :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.

그들 중 자녀가 있는 사람은 거의 없습니다. 실제로는 하나만 있습니다.

$ ... | 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이 아닌 크기의 창은 내가 누락한 창일 가능성이 높으며 루트 창의 직계 자식일 가능성이 높습니다.

창문을 다시 돌려받을 수 있나요?

관련 정보