Re: X / gtk-x11 / flicker and other problems [+PATCH]

2009-02-16 Thread John Emmas
- Original Message - 
From: John Emmas john...@tiscali.co.uk


One more thing Jon.  I'm probably being ludicrously simplistic
here - but to fix the resizing problem (not resizing until the user lets
go of the mouse button) could there be a simple fix for this just by
responding to the WM_MOUSEHOVER notification?


Or if you'd prefer not to do this in WM_SIZING,  WM_NCMOUSEHOVER
might be more successful and would at least make Cygwin's resizing work more
like Linux's.  I guess the main problem with WM_NCMOUSEHOVER though is that
it doesn't get issued by older versions of Windows.  However, that's Windows
fault, not Cygwin's.

John 



--
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/



starxwin.bat always misfires the xterm once

2009-02-16 Thread Franz di Coccio
Hi all,

 I have installed cygwin-x on windows XP and I'm pretty much happy about it.
There is only one little annoying thing that I am not able to fix.
I use cygwin-x to ssh into linux systems and occasionally launch
remote applications.
I do not use a x-desktop.

I've added an icon to the quick-launch windows toolbar pointing to
startxwin.bat.
Pressing that icon should launch cygwin-x and open a xterm.
It does so on my other window box, running win 2000.

However, on windows xp there seems to be some glitch. The first time I
launch the cygwin-x
icon after booting the OS, no xterm pops up. At least, not immediatly.
I've been waiting
a few minutes, but no trace of xterm all the same.
The xserver is running, though. I can launch an xterm from by right
clicking the small X icon
in the icon tray, but it opens in /usr/X11R6/bin, prompting bash-3.2$.

If I close the xserver and launch it a second time, all goes as I expect to.
The xserver is started again, and an xterm almost immediatly pops out
as required
in startxwin.bat. The xterm correctly starts from my home directory.

Therefore I always have to launch cygwin-x, shut down the server and
launch it again.
As I mention, this double launching is not necessary in win 2000.
The xterm pops up the first time I launch startxwin.bat.

Is this a known problem? I've tried to search the mailing list but
came up with nothing.
Perhaps I've used the wrong search terms.

Thanks a lot for any help

F

--
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/



R: starxwin.bat always misfires the xterm once

2009-02-16 Thread Marco Atzeri


--- Lun 16/2/09, Franz di Coccio  ha scritto:

 Da: Franz di Coccio 
 Oggetto: starxwin.bat always misfires the xterm once
 A: cygwin-xfree@cygwin.com
 Data: Lunedì 16 febbraio 2009, 11:08
 Hi all,
 
  I have installed cygwin-x on windows XP and I'm pretty
 much happy about it.
 There is only one little annoying thing that I am not able
 to fix.
 I use cygwin-x to ssh into linux systems and occasionally
 launch
 remote applications.
 I do not use a x-desktop.
 
 I've added an icon to the quick-launch windows toolbar
 pointing to
 startxwin.bat.
 Pressing that icon should launch cygwin-x and open a xterm.
 It does so on my other window box, running win 2000.
 
 However, on windows xp there seems to be some glitch. The
 first time I
 launch the cygwin-x
 icon after booting the OS, no xterm pops up. At least, not
 immediatly.

I have a similar issue.
It is probably due to Xwin not yet ready when xterm
tries to verify the existence of a X server

try to add 

%CYGWIN_ROOT%\bin\sleep 4

so a 4 second delay (or what ever value is fine for 
you system) before

%RUN% xterm -e /usr/bin/bash -l

this should allow xterm to find a ready Xwin.

 I've been waiting
 a few minutes, but no trace of xterm all the same.
 The xserver is running, though. I can launch an xterm from
 by right
 clicking the small X icon
 in the icon tray, but it opens in /usr/X11R6/bin, prompting
 bash-3.2$.
 
 If I close the xserver and launch it a second time, all
 goes as I expect to.
 The xserver is started again, and an xterm almost
 immediatly pops out
 as required
 in startxwin.bat. The xterm correctly starts from my home
 directory.
 
 Therefore I always have to launch cygwin-x, shut down the
 server and
 launch it again.
 As I mention, this double launching is not
 necessary in win 2000.
 The xterm pops up the first time I launch startxwin.bat.
 
 Is this a known problem? I've tried to search the
 mailing list but
 came up with nothing.
 Perhaps I've used the wrong search terms.
 
 Thanks a lot for any help
 
 F

Regards
Marco


  Passa a Yahoo! Mail.

La webmail che ti offre GRATIS spazio illimitato, 
antispam e messenger integrato.
http://it.mail.yahoo.com/  

--
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/



R: starxwin.bat always misfires the xterm once - it works!

2009-02-16 Thread Franz di Coccio
Marco,

 your suggestion to insert


%CYGWIN_ROOT%\bin\sleep 4

before the xterm launch instruction

%RUN% xterm -e /usr/bin/bash -l

in starxwin.bat did the trick!
Thanks a lot! Grazie!

F

PS That's a weird behaviour, anyway... I wonder why the pause is needed
only for the first execution after the system boot. Whatever... Now it works :)

--
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: RE: Intermittent X clipboard failure

2009-02-16 Thread Williams, Chris (Marlboro)
This is the same workaround I've been using. I'm also using Office 2003
and X11R7. I'm fine with this workaround. I need Office but I don't need
the Office clipboard.
We have other X servers here and I've experienced clipboard problems
with those and the Office clipboard also.

-Chris

-Original Message-
From: cygwin-xfree-ow...@cygwin.com
[mailto:cygwin-xfree-ow...@cygwin.com] On Behalf Of n05q4nn
Sent: Wednesday, January 21, 2009 11:43 AM
To: cygwin-xfree@cygwin.com
Subject: Re: RE: Intermittent X clipboard failure

I don't know if there is permanent fix for this but this is my
workaround.

I faced similar issue after I upgraded my X server recently. Copy/paste 
between X and windows apps works fine as long as no MS Office 2003 apps 
are open. If Office apps are open, they hang immediately if I copy 
anything from X, e.g. xterm. Killing the hung Office apps usually 
restore my copy/paste function.

My workaround: disable the Office clipboard. This forces Office apps to 
use the Windows clipboard but the apps don't hang when I copy/paste from
X.

To disable the Office clipboard:
   * On the Office Clipboard task pane, click Options.
   * Clear the Show Office Clipboard Automatically check box.
   * Clear the Show Office Clipboard When Ctrl+C Pressed Twice check
box.
   * Clear the Collect Without Showing Office Clipboard check box.

YMMV


Williams, Chris (Marlboro) wrote:
 Hi,
 This clipboard failure happened again. This time I notice I could
still
 copy from X apps to the Windows clipboard buffer. Also this time I
 copied some log information about the shutdown:
 
  Start log clip 
 winDeinitMultiWindowWM - Noting shutdown in progress
 winClipboardProc - winClipboardFlushWindowsMessageQueue trapped
WM_QUIT
 message,
  exiting main loop.
 winClipboardProc - XDestroyWindow succeeded.
 
 winClipboardIOErrorHandler!
 
  End log clip 
 
 Anyone have any specific hints about hunting down this clipboard
 problem?
 Possibly apropos, anyone have any issues running the Office
Clipboard
 that comes with MS Office 2003 with this new X server, X.Org 7.4?
 
 Thanks,
 Chris
 
 -Original Message-
 From: cygwin-xfree-ow...@cygwin.com
 [mailto:cygwin-xfree-ow...@cygwin.com] On Behalf Of Williams, Chris
 (Marlboro)
 Sent: Thursday, December 18, 2008 6:59 PM
 To: cygwin-xfree@cygwin.com
 Subject: Intermittent X clipboard failure
 
 Hi,
 
 I've been using the Xwin release 1.5.3.0 on XP SP2 and I'm
experiencing
 odd copy/paste behavior.
 When I first start the X server with the -clipboard command-line
 option everything works fine, copy/paste to/from X apps with no
problem.
 After a while, and unfortunately I don't know what event triggers
this,
 Windows stops accepting clipboard data from the X apps and vice versa,
I
 can't paste into any X app.
 The log isn't that much help, probably because I don't understand what
 I'm looking at. I do see messages like:
 winProcessXEventsTimeout - Call to select () failed: 0.  Bailing.
 winClipboardFlushXEvents - SelectionRequest - OpenClipboard () failed:
 
 
 If I restart the X server this problem goes away immediately. Or if I
 wait long it enough I stop seeing those log messages and the problem
 goes away on it's own apparently. Anyone else have this type of
problem?
 I'm not even sure what the next step is as far as providing useful
data
 for debugging purposes. I'll also add that I'm only talking about text
 copy here.
 
 Thank you,
 Chris
 
 
 --
 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/
 
 
 
 
 --
 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/
 

--
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/




--
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: Intermittent X clipboard failure

2009-02-16 Thread Marc Girod

Hello,


Williams, Chris (Marlboro) wrote:
 
 After a while, and unfortunately I don't know what event triggers this,
 Windows stops accepting clipboard data from the X apps and vice versa, I
 can't paste into any X app.
 

I recognize your symptoms.
I have the same problem on Windows Vista.

The application I use most in GNU emacs.
It eventually dies with a message of memory exhaustion.
Most often, closing the Office application, if early enough, helps.
An other symptom is an Office Clipboard report of: 

6 of 24 - Clipboard
Item not collected.

and something like: Format non supported.

Marc
-- 
View this message in context: 
http://www.nabble.com/Intermittent-X-clipboard-failure-tp21083419p22046890.html
Sent from the cygwin-xfree mailing list archive at Nabble.com.


--
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/



/usr/bin/startx fails on new x.org install?

2009-02-16 Thread Lloyd Wood
I updated Cygwin and got the new x.org server. I have a couple of problems:

1. /usr/bin/startx can no longer be used to launch X in multiwindow mode. 
Instead, it creates the auth file, prints a dialog telling me to read 
/var/log/XWin.0.log, and that I'm running the Cygwin/X project version 1.5.3.0 
(20090205), i.e. I'm current, and exits. /var/log/XWin.0.log says:

[..]
XWin was started with the following command line:

/usr/bin/X :0 -auth /cygdrive/c/Documents and
 Settings/lwood/.serverauth.3000

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1400 h 1050
winInitializeDefaultScreens - returning
Unrecognized option: and
[..]

the 'and' suggesting that something, somewhere, is not quoting path names or 
escaping spaces to '\ 'to handle the spaces in 'Documents and Settings' 
correctly. Some messing around with the startx script didn't turn up anything 
obvious; putting quotes around /cygdrive/c/Documents and 
Settings/lwood/.serverauth.3000 did not change the error behaviour; still 
'Unrecognized option: and'. So, probably not startx's fault.

it would be nice if the unrecognised option line shows up in the dialog 
directly to speed up testing.

2. Trouble launching multiwindow mode. startx (which previously gave me 
multiwindow) no longer works (above).
xinit -multiwindow
fails
xinit -- -multiwindow
oddly, succeeds. No idea why.

3. No cut and paste between the X desktop and Windows. Completely separate. Is 
this by design? (I can't figure out any copy/paste in the cygwin dumb terminal 
window, either.) Hurrah for multiwindow mode, where it works, and which I 
happily scurried back to as soon as I figured out how.

4. Hogging and not freeing menu/window resources in X, as my Insight Tcl 
program failing with 'unable to register Tk TopLevel class' or failing to draw 
a window properly indicates:
http://coding.derkeiler.com/Archive/Tcl/comp.lang.tcl/2008-04/msg00769.html
yes, Insight Tcl programs can be run without X being launched. But I have to 
quit X (desktop or multiwindow mode) to pull down and draw a menu in e.g. the 
mail program where I'm writing this.

5. No OpenGL hardware acceleration (yet?) 

Any hints welcomed.

thanks,

L.


--
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/