EnterNotify/SetInputFocus serialization problem
I'm suffering from a bug in which when I move the mouse across one window and into another under vtwm/twm, the focus goes to the final window but then back to the intermediate window. I can reproduce it as follows: Create a remote firefox window with two local xterm windows partly covering it. Run twm or vtwm locally as window manager. Don't set NoTitleFocus. Move mouse quickly from first xterm across firefox and into second xterm. First the second xterm gets focus as it should, but then the focus goes back to firefox. I've tried to track this down with xmsgtrace. It appears that cygwin/X is generating EnterNotify events for both the firefox window and the xterm window with the same timestamp. This seems wrong, because the windows have no way to tell which was entered last. Here are the relevant parts of the protocol trace. The whole trace up through the problem is attached. This is in Xorg 6.8.99.901-1. Ken Olum 139 (1689253250) Event(EnterNotify[7]): client=1, seq=80389, detail:NonlinearVirtual timestamp:1689253250 rootwin:0x3e eventwin:0xc10b37 childwin:0xc10b40 140 (1689253250) root-x:735 root-y:289 event-x:274 event-y:269 KeyButMask:0x0 mode:Normal -> Client 1 = twm. Window 0xc10b37 is one of the firefox windows. 237 (1689253250) Event(EnterNotify[7]): client=1, seq=80415, detail:NonlinearVirtual timestamp:1689253250 rootwin:0x3e eventwin:0x14d childwin:0x1400011 238 (1689253250) root-x:685 root-y:295 event-x:483 event-y:213 KeyButMask:0x0 mode:Normal -> Window 0x14d = xterm. Note same timestamp. 201 (1689253250) Request(SetInputFocus[42]):client=1 seq=80413 revert-to:PointerRoot window:0xc10b37 time:1689253250 -> Twm gives focus to Firefox. 318 (1689253265) Request(SetInputFocus[42]):client=1 seq=80446 revert-to:PointerRoot window:0x14d time:1689253250 -> Twm gives focus to xterm, with same timestamp. 425 (1689253312) Request(SetInputFocus[42]):client=6 seq=2130107 revert-to:Parent window:0xc10b38 time:1689253250 -> Firefox gives focus to a different subwindow, with same timestamp, causing focus to go back to Firefox from xterm. xmsgtrace.log Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
RE: FW: How to get scroll bars on initial xterm instance?
On Mon, 7 Apr 2008, Crider, Joseph A wrote: Or create a .Xresources file in your home directory that includes Xterm.*.saveLines: 3000 Xterm.*.scrollbar: true perhaps you meant XTerm*saveLines: 3000 XTerm*scrollbar: true (the class name is "XTerm", and the "." is redundant when adjacent to "*") -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
RE: FW: How to get scroll bars on initial xterm instance?
Or create a .Xresources file in your home directory that includes Xterm.*.saveLines: 3000 Xterm.*.scrollbar: true J. Allen Crider -Original Message- From: Reid Thompson [mailto:[EMAIL PROTECTED] Sent: Monday, April 07, 2008 2:27 PM To: cygwin-xfree@cygwin.com Subject: Re: FW: How to get scroll bars on initial xterm instance? On Mon, 2008-04-07 at 12:23 -0700, Siegfried Heintze (Aditi) wrote: > When I run startx it creates an xterm for me. But this xterm does not have a > scroll bar. I like to create xterms with "-sl 3000 -sb" so I get lots of > history. How can I make startx create an xterm with these options? > Thanks, > siegfried > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://x.cygwin.com/docs/ > FAQ: http://x.cygwin.com/docs/faq/ > edit startxwin.sh/startxwin.bat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: FW: How to get scroll bars on initial xterm instance?
On Mon, 2008-04-07 at 12:23 -0700, Siegfried Heintze (Aditi) wrote: > When I run startx it creates an xterm for me. But this xterm does not have a > scroll bar. I like to create xterms with "-sl 3000 -sb" so I get lots of > history. How can I make startx create an xterm with these options? > Thanks, > siegfried > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://x.cygwin.com/docs/ > FAQ: http://x.cygwin.com/docs/faq/ > edit startxwin.sh/startxwin.bat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
FW: How to get scroll bars on initial xterm instance?
When I run startx it creates an xterm for me. But this xterm does not have a scroll bar. I like to create xterms with "-sl 3000 -sb" so I get lots of history. How can I make startx create an xterm with these options? Thanks, siegfried -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X is not starting
I'm resending the XWin.log because it seems that your spam blocker doesn't like the compressed file. Hi, I had everything perfectly working with "startx :0" until I decided that I needed to emulate a 3-button mouse. Since I didn't find such option in the startx script, I set it up in the starxwin.bat which I never used before. So when I startxwin it will open whatever application I can invoke from the command line but it doesn't give me a separate layer such as the one I was getting with startx in which I could click with the mouse, etc. So I tried to go back to startx but now it closes off, so I don't know why I cannot go back to what I was doing before. I deleted /tmp/.X11-unix to no avail. I assume that there should be another persistent file that was modified when I invoked startxwin which is not letting startx work properly. Below you'll find the /tmp/XWin.log. Many thanks in advance, Daniel _ Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.1.0-1 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: X :0 -multiwindow -clipboard ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1600 h 1200 winInitializeDefaultScreens - Returning _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel winAllocateFBShadowGDI - Creating DIB with width: 1600 height: 1199 depth: 32 winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32 null screen fn ReparentWindow null screen fn RestackWindow InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitMultiWindowWM - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Hello winMultiWindowXMsgProc - Calling pthread_mutex_lock () MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: "0409" (0409) (--) Using preset keyboard for "English (USA)" (409), type "4" 2 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! winInitMultiWindowWM - pthread_mutex_lock () returned. winInitMultiWindowWM - pthread_mutex_unlock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - pthread_mutex_lock () returned. winProcEstablishConnection - Hello winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winInitClipboard () winClipboardProc - Hello DetectUnicodeSupport - Windows NT/2000/XP winProcEstablishConnection - winInitClipboard returned. winClipboardProc - DISPLAY=127.0.0.1:0.0 winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display. winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. winClipboardProc - XOpenDisplay () returned and successfully opened the display. winClipboardProc - Call to select () failed: -1. Bailing. winClipboardProc - XDestroyWindow succeeded. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
X is not starting
Hi, I had everything perfectly working with "startx :0" until I decided that I needed to emulate a 3-button mouse. Since I didn't find such option in the startx script, I set it up in the starxwin.bat which I never used before. So when I startxwin it will open whatever application I can invoke from the command line but it doesn't give me a separate layer such as the one I was getting with startx in which I could click with the mouse, etc. So I tried to go back to startx but now it closes off, so I don't know why I cannot go back to what I was doing before. I deleted /tmp/.X11-unix to no avail. I assume that there should be another persistent file that was modified when I invoked startxwin which is not letting startx work properly. Below you'll find the /tmp/XWin.log. Many thanks in advance, Daniel XWin.log.gz Description: GNU Zip compressed data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: I'm having a weird problem w/ cygwin not working on some machines...
FH wrote: Recently we've started running into an unusual problem in the sense that the X server seems to have stopped working, at least w/ some machines. What I mean is everything starts up ok on the windows machine and when you login to some unix machines it works fine; login, set up the display variables, type xterm and the window open. However on other machines you can go through the same process and the xterm (or any other app/window) never shows up on the windows machine. Could you elaborate on the "set up the display variables" part? You shouldn't have to do anything as you use ssh. As you said you were not an X person, here is how I would do it. On the windows side, DISPLAY is set by the shell script used to start Xwin (startxwin.sh or startxwin.bat). Then, you get an xterm where DISPLAY is :0.0 (or localhost:0.0 or 127.0.0.1:0.0). From there, ssh -Y [EMAIL PROTECTED] will get you to the remote prompt with a twist. Ssh sets up a tunnel *and* sets DISPLAY to something like :10.0 *and* sets up proper authorization. When an X client (an app) runs, it talks to the linux side of the tunnel and everything is sent to the windows X server through the tunnel. If ssh works, you do *not* have to worry about firewall problems. In particular, notice that you *never* set the DISPLAY variable by hand. You *never* use xhost. It just works (TM). And it is secure. My suggestions: - You can check the value of DISPLAY at different steps of the procedure (set | grep DISPLAY) ; - You can add -vv to the ssh command ; - You can use a network sniffer (wireshark/ethereal) ; - You should post your cygcheck results. Best regards Sylvain RICHARD -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/