#78 Failed to switch windows from within application itself

v1.0_(example)
closed-fixed
nobody
None
5
2018-10-07
2018-07-09
whatacold
No

Hi,

I like to use VcXsrv "multiwindow" mode as X Server for Emacs as X client,
it works just like I run Emacs natively, it's awesome.

But I noticed that I can't switch windows(frame in Emacs term) from within Emacs by typing C-x 5 o
if there are at least 2 windows. Below is how to reproduce it, for example(hopefully if you use Emacs too):

  1. emacs -Q to start up, and the only frame(say, frame A) contains *scratch* buffer
  2. C-x 5 2 to make another frame(frame B) and let it switch to *Message* buffer, and drap it to be on top of frame A
  3. C-x 5 o to switch to frame A, now I can see the point blinks on frame A, but frame B is still on top of frame A

Actually I think there are 3 possibilities that cause this:
1. X protocol doesn't support this
2. VcXsrv hasn't implemented this feature yet
3. I didn't properly setup VcXsrv, or it has a bug to properly handle it

I installed VcXsrv 1.20.0.0 on Windows 7, would you have some time to shed me some light that which one is most possible?
What infomation should I need to provide?

Thanks.

Discussion

  • whatacold

    whatacold - 2018-07-09

    P.S. I've posted this issue to Emacs community on reddit, but unfortunately it seems nobody knows how to fix it:(

     
  • whatacold

    whatacold - 2018-07-17

    Hi,

    I can reproduce this with a X11 program, which is attached.

    The output of it is like this:

    raise win 1.
    Expose event
    raise win 2.
    KeyPress event
    raise win 1.
    KeyPress event
    raise win 2.
    ...
    

    Below is the log file, with -logverbose 3:

    Welcome to the VcXsrv X Server
    Vendor: The VcXsrv Project
    Release: 1.20.0.0
    
    OS: Windows NT 6.1 build 7601 (64-bit)
    Contact: marha@users.sourceforge.net
    
    LoadPreferences: D:\tools\home\.XWinrc not found
    LoadPreferences: Loading F:\Program Files\VcXsrv\system.XWinrc
    Warning: Locale not supported by X, falling back to 'C' locale.
    (II) AIGLX: Testing pixelFormatIndex 2
    wglwrap: Can't resolve "wglGetExtensionsStringARB"
    (EE) AIGLX: Won't use generic native renderer as it is not accelerated
    (II) IGLX: Loaded and initialized swrast
    (II) GLX: Initialized DRISWRAST GL provider for screen 0
    winClipboardThreadProc - DISPLAY=127.0.0.1:0.0
    Using Composite redirection
    OS maintains clipboard viewer chain: yes
    GetWindowName - xcb_icccm_get_wm_name_reply failed.  No name.
    GetWindowName - xcb_icccm_get_wm_name_reply failed.  No name.
    winMultiWindowWMProc - Error code: 3 (Window), ID: 0x00200001, Major opcode: 18 (ChangeProperty), Minor opcode: 0 ((null))
    winMultiWindowXMsgProc - Fatal error 1 on xcb connection
    winClipboardIOErrorHandler!
    winClipboardProc - setjmp returned for IO Error Handler.
    (II) Server terminated successfully (0). Closing log file.
    
     
  • marha

    marha - 2018-08-18

    Fixed in 1.20.0.1

     
  • marha

    marha - 2018-08-18
    • status: open --> closed-fixed
     
  • whatacold

    whatacold - 2018-10-07

    Sorry for being so late, just confirm that it has been fixed with lastest version.

    Thanks a lot.

     

Log in to post a comment.