Re: reset/terminate problems; preventing multiple XWin instances

2004-03-04 Thread gkorte
>I see that it's in 4.3.0-50 and working well, but I don't see how the
>current implementation addresses the common task I mentioned:
>"open an xterm; run XWin first if needed"
>If I use a batchfile that always runs XWin and then xterm, from the 2nd
>invocation onwards it will produce the error popup reporting a "Fatal
>error" and directing me a to log file... Not quite what's needed here.[1]
>
>Perhaps there should be a switch that says "if the display already
>exists, exit silently".

Hi Eran,

I had the same problem and have solved it with the following Batch file:
-
@echo off
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin
SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%

REM Find a running version of XWin
c:\progra~1\resour~1\pulist |c:\progra~1\resour~1\qgrep XWin >nul
REM if Xwin is running then start an Xterm
if errorlevel 1 goto NEXT 
run C:\cygwin\usr\X11R6\bin\xterm -cr red -sl 1000 -sb -rightbar -ms red 
-fg white -bg black -e /usr/bin/bash --login
goto END

:NEXT
REM Delete temp and lock file and start XWin and Xterm.
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0 >nul
del %CYGWIN_ROOT%\tmp\.X11-unix\X0 >nul
start C:\cygwin\usr\X11R6\bin\XWin.exe -multiplemonitors -multiwindow -dpi 
100 -clipboard
run C:\cygwin\usr\X11R6\bin\xterm -cr red -sl 1000 -sb -rightbar -ms red 
-fg white -bg black -e /usr/bin/bash --login
:END
---
You will need pulist and qgrep which is included in w2k resource kit. 
Should you not have this then please contact me offlist [EMAIL PROTECTED]

Basically this batch file start Xwin if pulist (like ps but for windows) 
does not return a XWin process.

Hope this helps

-- 
Kind regards
Geordy Korte



Re: Mouse cursor is dissapering.

2004-03-03 Thread gkorte
Hello all,

Just to inform you that build 4.0.3-50 has just solved 2 problems for me. 
The mouse cursors goign on holliday and the windows that appear white.

Thanx to the team that made this great app possible.  Keep going you guys 
are doing an excelent job.

Geordy Korte


Re: Mouse cursor is dissapering.

2004-03-02 Thread gkorte
On 03/02/2004 04:23:51 PM cygwin-xfree-owner wrote:

>> - Xfree86-Base 4.3.0-1
>> - Xfree86-Bin 4.3.0-9
>> - Mouse driver: logitech 9.78.0.0
>> - VGA cards: Nvidia Quatro4 200/400nvs Dual head & Nvidia GeForce FX 
5200
>
>We need to know the version of XFree86-xserv.
>
>> Xwinrl.log
>
>The log file was called "XWinrl.log" a long time ago for a short period
>of time... that name has since been changed back to "XWin.log".  If your
>X Server is only storing a log file called XWinrl.log, then I can tell
>you that you have a quite old version and you really need to run
>Cygwin's setup.exe again to let it upgrade all of your packages.

Hi Harold,

The Xwinrl.log file I sent you was an old version which was left over 
(oepsie). 
Here I include the new Xwin.log file.  I have also just updated my 
XFree86-xserv to the lastest version using the setup tool.

-- 
Kind regards
Geordy Korte
--

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
(EE) Unable to locate/open config file
InitOutput - Error reading config file
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winScreenInit - dwWidth: 1280 dwHeight: 1024
winSetEngine - Multi Window => ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per 
pixel
winCreateBoundingWindowWindowed - User w: 1280 h: 1024
winCreateBoundingWindowWindowed - Current w: 1280 h: 1024
winGetWorkArea - Original WorkArea: 0 0 971 1160
winGetWorkArea - Virtual screen is 3840 x 1024
winGetWorkArea - Virtual screen origin is -1280, 0
winGetWorkArea - Primary screen is 1280 x 1024
winGetWorkArea - Adjusted WorkArea for multiple monitors: 0 -1280 971 2440
winAdjustForAutoHide - Original WorkArea: 0 -1280 971 2440
winAdjustForAutoHide - Adjusted WorkArea: 0 -1280 971 2440
winCreateBoundingWindowWindowed - WindowClient w 3720 h 971 r 3720 l 0 b 
971 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowGDI - Creating DIB with width: 3840 height: 1024 depth: 
32
winAllocateFBShadowGDI - Dibsection width: 3840 height: 1024 depth: 32 
size image: 15728640
winAllocateFBShadowGDI - Created shadow stride: 3840
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 
bpp 32
winCreateDefColormap - Deferring to fbCreateDefColormap ()
null screen fn ReparentWindow
null screen fn RestackWindow
winFinishScreenInitFB - Calling winInitWM.
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitWM - Returning.
winFinishScreenInitFB - returning
winScreenInit - returning
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
InitOutput - Returning.
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) 
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" Options 
= "(null)"
winPointerWarpCursor - Discarding first warp: 1920 512
winBlockHandler - Releasing pmServerStarted
winInitMultiWindowWM - pthread_mutex_lock () returned.
winBlockHandler - pthread_mutex_unlock () returned
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the 
display.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened 
the display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened 
the display.


Mouse cursor is dissapering.

2004-03-02 Thread gkorte
Hi ya all,

I have been using Cygwin for the last 2 years and I was happy.  A couple 
of weeks ago I upgrade my workstation to include 3 VGA outputs.  All cards 
have the same resolution and depth and I am able to move a X window from 1 
screen to the next.

The problem that I am having is the following.  As soon as an Xterm (or 
other X application) shows up then I have full mouse access to that term. 
I can see my mouse cursor, use it to select text, and copy and past it to 
the kazoeks?  As soon as I move the Term window to another part of the 
screen, I loose my mouse in the terminal.  The mouse cursors and all mouse 
button actions are gone.  I have to restart the Xserver to get my mouse 
back.  I can normally see the mouse but as soon as I move into the Term I 
loose the cursor.

The following data applies to my system:
- Windows 2000 5.0 Build 2195 SP4
- Xfree86-Base 4.3.0-1
- Xfree86-Bin 4.3.0-9
- Mouse driver: logitech 9.78.0.0
- VGA cards: Nvidia Quatro4 200/400nvs Dual head & Nvidia GeForce FX 5200


I have included the output from the Xwinrl.log file and my startup script. 
 I hope someone has a clue as to what is happening.

Xwinrl.log

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
(EE) Unable to locate/open config file
InitOutput - Error reading config file
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winSetEngine - Multi Window => ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 16 bits per 
pixel
winCreateBoundingWindowWindowed - User w: 1280 h: 1024
winCreateBoundingWindowWindowed - Current w: 1280 h: 1024
winAdjustForAutoHide - Original WorkArea: 0 0 971 1280
winAdjustForAutoHide - Adjusted WorkArea: 0 0 971 1280
winCreateBoundingWindowWindowed - WindowClient w 1280 h 971 r 1280 l 0 b 
971 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 971 depth: 
16
winAllocateFBShadowGDI - Dibsection width: 1280 height: 971 depth: 16 size 
image: 2485760
winAllocateFBShadowGDI - Created shadow stride: 1280
winFinishScreenInitFB - Masks: f800 07e0 001f
winInitVisualsShadowGDI - Masks f800 07e0 001f BPRGB 6 d 16 
bpp 16
winCreateDefColormap - Deferring to fbCreateDefColormap ()
null screen fn ReparentWindow
null screen fn RestackWindow
winFinishScreenInitFB - Calling winInitWM.
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitWM - Returning.
winFinishScreenInitFB - Calling winInitClipboard.
winInitClipboard ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winClipboardProc - Hello
winClipboardProc - Calling pthread_mutex_lock ()
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" Options 
= "(null)"
winBlockHandler - Releasing pmServerStarted
winInitMultiWindowWM - pthread_mutex_lock () returned.
DetectUnicodeSupport - Windows NT/2000/XP
winInitMultiWindowWM - Calling setlocale ()
winBlockHandler - pthread_mutex_unlock () returned
winInitMultiWindowWM - setlocale () returned
winClipboardProc - pthread_mutex_lock () returned.
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - pthread_mutex_unlock () returned.
winClipboardProc - XInitThreads () returned.
winClipboardProc - DISPLAY=:0.0
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - XInitThreads () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the 
display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened 
the display.


Startxwindows.bat
--
@echo off
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin
SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%

REM Check top see if Xwin is running if it is then just start and Xterm 
otherwise
REM Start a new Xwin session.
c:\progra~1\resour~1\pulist |c:\progra~1\resour~1\qgrep XWin >nul
if errorlevel 1 goto NEXT 
REM Start Xterm
run C:\cygwin\usr\X11R6\bin\xterm -cr red -sl 1000 -sb -rightbar -ms red 
-fg white -bg black -e /usr/bin/bash --login
goto END

:NEXT
REM Delete old files if Xwin has crashed.
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0 >nul
del %CYGWIN_ROOT%\tmp\.X11-unix\X0 >nul
start C:\cygwin\usr\X11R6\bin\XWin.exe -multiplemonitors -multiwindow -dpi 
100 ?clipboar