From matthews@greengenes.cit.cornell.edu Sat Jun 4 23:06:00 2011 From: matthews@greengenes.cit.cornell.edu (Dave Matthews) Date: Sat, 04 Jun 2011 23:06:00 -0000 Subject: startxwin not found; solution Message-ID: <201106042306.p54N6Ujh027180@greengenes.cit.cornell.edu> I've tried to install Cygwin/X several time over the last two months and always it only installed Cygwin, no X at all. "startxwin not found" and nothing relevant in /usr/bin. The problem was that the Default setting of the installer http://cygwin.com/setup.exe for the X11 package is "Skip". So when you've stepped through the intaller to the "Select Packages" screen, click X11 and set it to "Install". - Dave -- 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/ From n8tm@aol.com Sun Jun 5 01:44:00 2011 From: n8tm@aol.com (Tim Prince) Date: Sun, 05 Jun 2011 01:44:00 -0000 Subject: startxwin not found; solution In-Reply-To: <201106042306.p54N6Ujh027180@greengenes.cit.cornell.edu> References: <201106042306.p54N6Ujh027180@greengenes.cit.cornell.edu> Message-ID: <4DEADF52.5090209@aol.com> On 6/4/2011 7:06 PM, Dave Matthews wrote: > I've tried to install Cygwin/X several time over the last two months and > always it only installed Cygwin, no X at all. "startxwin not found" and > nothing relevant in /usr/bin. > > The problem was that the Default setting of the installer > http://cygwin.com/setup.exe for the X11 package is "Skip". > > So when you've stepped through the intaller to the "Select Packages" > screen, click X11 and set it to "Install". > As the documents tell you, xinit is required for startxwin, and that rquires setup to bring in the necessary X11 dependencies. How could you spend 2 months on this without looking it up? Answered earlier from Blackberry, but the spam filter here doesn't permit that. -- Tim Prince -- 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/ From wxie@purdue.edu Thu Jun 9 14:28:00 2011 From: wxie@purdue.edu (wxie) Date: Thu, 09 Jun 2011 14:28:00 -0000 Subject: how to project startx window to the extended terminal In-Reply-To: <4D2F339F.5030109@purdue.edu> References: <4D2F339F.5030109@purdue.edu> Message-ID: <4DF0D887.2080907@purdue.edu> I have two terminals connect to the laptop running win7. One is the main display and the other one is the extended display. When running startx, the xwindow always pop-up into the main display. Is it possible to configure it such that it directly goes into the extended display? I can certainly drag it there but my two displays have different resolution and the xwindow can not fit both terminal at the same time. Thanks --Wei -- 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/ From JOEL.MOOTS@L-3com.com Thu Jun 9 14:37:00 2011 From: JOEL.MOOTS@L-3com.com (JOEL.MOOTS@L-3com.com) Date: Thu, 09 Jun 2011 14:37:00 -0000 Subject: how to project startx window to the extended terminal In-Reply-To: <4DF0D887.2080907@purdue.edu> References: <4D2F339F.5030109@purdue.edu> <4DF0D887.2080907@purdue.edu> Message-ID: <615935CE76907149AFEC6599C969D4D5046EAC02@XCGTXH01.corp.eos.l-3com.com> > On Behalf Of wxie > Sent: Thursday, June 09, 2011 7:28 AM > the xwindow always pop-up into the main display. Is it possible to > configure it such that it directly goes into the extended display? I I asked an similar question a couple months ago and Jon gave this excellent response: > From: Jon TURNEY > Sent: Wednesday, April 13, 2011 9:47 AM > To place a screen window on the secondary monitor, I'd suggest you > use the > syntax '-nodecoration -screen 0 @2'. -joel -- 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/ From weixie@rcf.rhic.bnl.gov Thu Jun 9 14:52:00 2011 From: weixie@rcf.rhic.bnl.gov (Wei Xie) Date: Thu, 09 Jun 2011 14:52:00 -0000 Subject: how to project startx window to the extended terminal In-Reply-To: <615935CE76907149AFEC6599C969D4D5046EAC02@XCGTXH01.corp.eos.l-3com.com> References: <4D2F339F.5030109@purdue.edu> <4DF0D887.2080907@purdue.edu> <615935CE76907149AFEC6599C969D4D5046EAC02@XCGTXH01.corp.eos.l-3com.com> Message-ID: <4DF0DE25.60604@rcf.rhic.bnl.gov> Thanks for the help but this only works for XWin.exe. I just tried the startx which uses xinit and it doesn't work. Further help would be appreciated. --Wei On 6/9/2011 10:36 AM, JOEL.MOOTS@L-3com.com wrote: >> On Behalf Of wxie >> Sent: Thursday, June 09, 2011 7:28 AM >> the xwindow always pop-up into the main display. Is it possible to >> configure it such that it directly goes into the extended display? I > I asked an similar question a couple months ago and Jon gave this > excellent response: >> From: Jon TURNEY >> Sent: Wednesday, April 13, 2011 9:47 AM >> To place a screen window on the secondary monitor, I'd suggest you >> use the >> syntax '-nodecoration -screen 0 @2'. > -joel > > -- > 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/ From jlowry@edt.com Thu Jun 9 21:13:00 2011 From: jlowry@edt.com (Jerry Lowry) Date: Thu, 09 Jun 2011 21:13:00 -0000 Subject: problems running gcc after installation Message-ID: <4DF1388E.7000009@edt.com> Hi, I have upgraded from 1.5 to 1.7 cygwin/x and am not able to compile any C programs. I have check the mail list archives and did not get a hit on the error. Could someone point me in the correct direction. $ python setup.py install running install running build running build_py running build_ext building 'Cython.Plex.Scanners' extension creating build/temp.cygwin-1.7.9-i686-2.6/Cython creating build/temp.cygwin-1.7.9-i686-2.6/Cython/Plex gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/python2.6 -c Cython/Plex/Scanners.c -o build/temp.cygwin-1.7.9-i686-2.6/Cython/Plex/Scanners.o *gcc: error trying to exec 'as': execvp: No such file or directory* error: command 'gcc' failed with exit status 1 tried a plain gcc on a "hello world" program and it gives me the same error. I have tried installing and removing a number of times thinking that something is failing to install. thanks -- --------------------------------------------------------------------------- Jerold Lowry IT Manager / Software Engineer Engineering Design Team (EDT), Inc. a HEICO company 1400 NW Compton Drive, Suite 315 Beaverton, Oregon 97006 (U.S.A.) Phone: 503-690-1234 / 800-435-4320 Fax: 503-690-1243 Web: _www.edt.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/ From reply-to-list-only-lh@cygwin.com Fri Jun 10 01:26:00 2011 From: reply-to-list-only-lh@cygwin.com (Larry Hall (Cygwin)) Date: Fri, 10 Jun 2011 01:26:00 -0000 Subject: problems running gcc after installation In-Reply-To: <4DF1388E.7000009@edt.com> References: <4DF1388E.7000009@edt.com> Message-ID: <4DF172B6.9030606@cygwin.com> On 6/9/2011 5:18 PM, Jerry Lowry wrote: > Hi, > I have upgraded from 1.5 to 1.7 cygwin/x and am not able to compile > any C programs. I have check the mail list archives and did not get a > hit on the error. Could someone point me in the correct direction. You want the main Cygwin list for this kind of question. The Cygwin-X list is really just for things having to do with..., um, well... Cygwin-X. ;-) -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/ From dtrollope@informatica.com Fri Jun 10 03:30:00 2011 From: dtrollope@informatica.com (Trollope, David) Date: Fri, 10 Jun 2011 03:30:00 -0000 Subject: Refresh needed after Remote Desktop Connection Message-ID: Hi, I've been encountering a new behaviour recently which I'm hoping someone can shed some light on or suggest some tweak that will help. I regularly remote desktop to a machine running cygwin with an X server running - it is a Window 7 Enterprise box. The act of connecting through RDP resizes the screen. Normally the machine runs with two screens. After connecting with RDP (and while connected) the X windows do not refresh. I typically have open multiple xterm's but nothing refreshes. Until I move a window, it will not refresh. as soon as I move a window, it becomes usable again. I.E. xterm's do not display what is typed until the window is moved. This seems to affect all X windows. Any ideas? Cheers Dave -- Dave Trollope MBU Development Manager 29West-Informatica, Inc dtrollope@informatica.com Tel:630-393-7551 AIM:dstrollope -- 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/ From svn-user@web.de Fri Jun 10 09:33:00 2011 From: svn-user@web.de (Paul Maier) Date: Fri, 10 Jun 2011 09:33:00 -0000 Subject: I lose characters because keycode of Fn is same than DEL Message-ID: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> Hi, on a a IBM Lenovo Laptop T60 there is a "Fn" key to adjust the screen brightness and such. That "Fn" key has the same keycode than the DEL key. Therefore I can't change the Fn key with xmodmap (because I would change the DEL key the same way.) When I adjust the screen brightness, I lose characters in the editor. Unfortunately the Fn key REPEATS firing delete while the key is pressed. And several times I didn't notice the loss before saving and leaving the editor. Here is the output of xev when I press the Fn key: (Pressing the DEL key would yield the very same output.) KeyPress event, serial 20, synthetic NO, window 0xa00001, root 0x101, subw 0xa00002, time 42594031, (35,42), root:(259,282), state 0x0, keycode 107 (keysym 0xffff, Delete), same_screen YES, XLookupString gives 1 bytes: (7f) "<7f>" XFilterEvent returns: False What can we do? Thank you! Paul -- 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/ From wxie@purdue.edu Fri Jun 10 18:57:00 2011 From: wxie@purdue.edu (wxie) Date: Fri, 10 Jun 2011 18:57:00 -0000 Subject: how to project startx window to the extended terminal In-Reply-To: <4DF0DE25.60604@rcf.rhic.bnl.gov> References: <4D2F339F.5030109@purdue.edu> <4DF0D887.2080907@purdue.edu> <615935CE76907149AFEC6599C969D4D5046EAC02@XCGTXH01.corp.eos.l-3com.com> <4DF0DE25.60604@rcf.rhic.bnl.gov> Message-ID: <4DF26907.9030804@purdue.edu> FYI. I haven't receive any further feedback on the following. Thanks --Wei On 6/9/2011 10:52 AM, Wei Xie wrote: > Thanks for the help but this only works for XWin.exe. I just tried the > startx which uses xinit and it doesn't work. Further help would be > appreciated. > > --Wei > > On 6/9/2011 10:36 AM, JOEL.MOOTS@L-3com.com wrote: >>> On Behalf Of wxie >>> Sent: Thursday, June 09, 2011 7:28 AM >>> the xwindow always pop-up into the main display. Is it possible to >>> configure it such that it directly goes into the extended display? I >> I asked an similar question a couple months ago and Jon gave this >> excellent response: >>> From: Jon TURNEY >>> Sent: Wednesday, April 13, 2011 9:47 AM >>> To place a screen window on the secondary monitor, I'd suggest you >>> use the >>> syntax '-nodecoration -screen 0 @2'. >> -joel >> >> -- >> 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/ From marco.atzeri@gmail.com Fri Jun 10 19:09:00 2011 From: marco.atzeri@gmail.com (Marco atzeri) Date: Fri, 10 Jun 2011 19:09:00 -0000 Subject: how to project startx window to the extended terminal In-Reply-To: <4DF26907.9030804@purdue.edu> References: <4D2F339F.5030109@purdue.edu> <4DF0D887.2080907@purdue.edu> <615935CE76907149AFEC6599C969D4D5046EAC02@XCGTXH01.corp.eos.l-3com.com> <4DF0DE25.60604@rcf.rhic.bnl.gov> <4DF26907.9030804@purdue.edu> Message-ID: <4DF26BD2.5020707@gmail.com> On 6/10/2011 8:57 PM, wxie wrote: > FYI. I haven't receive any further feedback on the following. > man startxwin see the EXAMPLES > Thanks > --Wei -- 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/ From wxie@purdue.edu Fri Jun 10 19:25:00 2011 From: wxie@purdue.edu (wxie) Date: Fri, 10 Jun 2011 19:25:00 -0000 Subject: how to project startx window to the extended terminal In-Reply-To: <4DF26BD2.5020707@gmail.com> References: <4D2F339F.5030109@purdue.edu> <4DF0D887.2080907@purdue.edu> <615935CE76907149AFEC6599C969D4D5046EAC02@XCGTXH01.corp.eos.l-3com.com> <4DF0DE25.60604@rcf.rhic.bnl.gov> <4DF26907.9030804@purdue.edu> <4DF26BD2.5020707@gmail.com> Message-ID: <4DF26F81.6020402@purdue.edu> Thanks for the feedback but this is not what I'm referring to. I can run multiple servers but they all show up in the main display. I can make it using XWin -screen 0 @2 but this doesn't work for xinit. Cheers --Wei On 6/10/2011 3:09 PM, Marco atzeri wrote: > On 6/10/2011 8:57 PM, wxie wrote: >> FYI. I haven't receive any further feedback on the following. >> > > man startxwin > > see the EXAMPLES > > >> Thanks >> --Wei > > > -- > 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/ From marco.atzeri@gmail.com Fri Jun 10 19:37:00 2011 From: marco.atzeri@gmail.com (Marco atzeri) Date: Fri, 10 Jun 2011 19:37:00 -0000 Subject: how to project startx window to the extended terminal In-Reply-To: <4DF26F81.6020402@purdue.edu> References: <4D2F339F.5030109@purdue.edu> <4DF0D887.2080907@purdue.edu> <615935CE76907149AFEC6599C969D4D5046EAC02@XCGTXH01.corp.eos.l-3com.com> <4DF0DE25.60604@rcf.rhic.bnl.gov> <4DF26907.9030804@purdue.edu> <4DF26BD2.5020707@gmail.com> <4DF26F81.6020402@purdue.edu> Message-ID: <4DF2726B.4080902@gmail.com> On 6/10/2011 9:24 PM, wxie wrote: > Thanks for the feedback but this is not what I'm referring to. I can run > multiple servers but they all show up in the main display. I can make it > using XWin -screen 0 @2 but this doesn't work for xinit. on these mailing lists we use to comment after, not before the message... > > Cheers > --Wei > > On 6/10/2011 3:09 PM, Marco atzeri wrote: >> On 6/10/2011 8:57 PM, wxie wrote: >>> FYI. I haven't receive any further feedback on the following. >>> >> >> man startxwin >> >> see the EXAMPLES >> >> >>> Thanks >>> --Wei >> man xinit xinit -- -screen 0 @2 or xinit -- Xwin -screen 0 @2 -- 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/ From loppp@getsparkling.com Wed Jun 15 00:20:00 2011 From: loppp@getsparkling.com (Kristiana) Date: Wed, 15 Jun 2011 00:20:00 -0000 Subject: Nu, =?UTF-8?B?a8SBcMSTYw==?= Tev =?UTF-8?B?dMSrayw=?= ka =?UTF-8?B?cHVwacWGaQ==?= pa muguru =?UTF-8?B?c2zEq2Q=?= ...? Message-ID: Paties??b??, es tagad ??emos for???? viet?? un man grib??tos tev t?? k?? drusku pa????loties... m??su firma ir noteikusi crazy cenas, tikai 20 Ls un j??darbojas mums, masier??t??m, ir nevis masieru formas ap????rb??, bet maz??s bik??el??s.. skaties pats: http://www.edensalon.in Anete -- 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/ From jon.turney@dronecode.org.uk Thu Jun 23 11:34:00 2011 From: jon.turney@dronecode.org.uk (Jon TURNEY) Date: Thu, 23 Jun 2011 11:34:00 -0000 Subject: I lose characters because keycode of Fn is same than DEL In-Reply-To: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> References: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> Message-ID: <4E0324BB.5020004@dronecode.org.uk> On 10/06/2011 10:33, Paul Maier wrote: > on a a IBM Lenovo Laptop T60 there is a "Fn" key to adjust the screen brightness and such. > > That "Fn" key has the same keycode than the DEL key. > Therefore I can't change the Fn key with xmodmap (because I would change the DEL key the same way.) > > When I adjust the screen brightness, I lose characters in the editor. > Unfortunately the Fn key REPEATS firing delete while the key is pressed. > And several times I didn't notice the loss before saving and leaving the editor. > > Here is the output of xev when I press the Fn key: (Pressing the DEL key would yield the very same output.) > > > KeyPress event, serial 20, synthetic NO, window 0xa00001, > root 0x101, subw 0xa00002, time 42594031, (35,42), root:(259,282), > state 0x0, keycode 107 (keysym 0xffff, Delete), same_screen YES, > XLookupString gives 1 bytes: (7f) "<7f>" > XFilterEvent returns: False > > > What can we do? Thanks for the bug report. I think this is a bug in the way XWin translates Windows keystrokes into X keycodes. Can you run the X server with the extra option '-logverbose 3' and report what is written to /var/log/xwin/XWin.0.log when you press the Fn key. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/ From jon.turney@dronecode.org.uk Fri Jun 24 11:52:00 2011 From: jon.turney@dronecode.org.uk (Jon TURNEY) Date: Fri, 24 Jun 2011 11:52:00 -0000 Subject: Refresh needed after Remote Desktop Connection In-Reply-To: References: Message-ID: <4E047A7C.1080106@dronecode.org.uk> On 10/06/2011 04:30, Trollope, David wrote: > I've been encountering a new behaviour recently which I'm hoping someone > can shed some light on or suggest some tweak that will help. When you say this is 'new behavior', when did it start? When you upgraded the cygwin X server? or something else was changed? > I regularly remote desktop to a machine running cygwin with an X server > running - it is a Window 7 Enterprise box. > > The act of connecting through RDP resizes the screen. Normally the > machine runs with two screens. > > After connecting with RDP (and while connected) the X windows do not > refresh. I typically have open multiple xterm's but nothing refreshes. > Until I move a window, it will not refresh. as soon as I move a window, > it becomes usable again. I.E. xterm's do not display what is typed until > the window is moved. > > This seems to affect all X windows. Any ideas? So if I'm understanding you correctly, the contents of the windows are drawn correctly after the display resizes, but then do not update? What about the root window, does that have the correct contents? If you run a simple X client such as 'ico' or 'xeyes' does that continue to draw correctly after the resize, or not? This is quite possibly a bug of some kind in the resize handling in the X server, although I don't have any particular insight at the moment as to what that bug might be :-) -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/ From tobias.haeussler@gmx.de Sat Jun 25 12:49:00 2011 From: tobias.haeussler@gmx.de (=?ISO-8859-15?Q?Tobias_H=E4u=DFler?=) Date: Sat, 25 Jun 2011 12:49:00 -0000 Subject: Taskbar grouping in Windows 7 Message-ID: <4E05D930.6090305@gmx.de> Hi, I created a small patch for XWin that adds correct grouping of taskbar icons when 'Always combine, hide labels' is set in the taskbar properties. It uses the new taskbar APIs introduced in Windows 7 to set an application id for each window. The id is based on the X11 class hints. Maybe it is useful for someone... Tobias -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: taskbar.patch URL: -------------- next part -------------- -- 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/ From jon.turney@dronecode.org.uk Tue Jun 28 14:06:00 2011 From: jon.turney@dronecode.org.uk (Jon TURNEY) Date: Tue, 28 Jun 2011 14:06:00 -0000 Subject: [ANNOUNCEMENT] Updated: xorg-server-1.10.2-1 Message-ID: The following packages have been updated in the Cygwin distribution: *** xorg-server-1.10.2-1 *** xorg-server-dmx-1.10.2-1 These packages contain XWin and the other X.Org X11 servers. In addition to upstream fixes [1], the following cygwin-specific changes have been made since 1.10.1-1: * Use system() rather than pipe() & fork() to invoke xkbcomp. This should work around the X server being unable to startup with "Failed to activate core devices" error when cygwin's fork() emulation is unable to work successfully. (Launching applications from the tray menu still uses fork() and might still fail on problem systems, and other cygwin programs might still fail to fork(), but hopefully this will prevent these problems from being reported as an X server issue quite as much). (This should make Cygwin/X FAQ 9.15 obsolete) * Automatically activate the -nolock option if /tmp is on a FAT filesystem. (This should make Cygwin/X FAQ 2.3 obsolete) * Automatically activate the -emulate3buttons option if less than 3 mouse buttons are reported. Add -noemulate3buttons option so this can be reversed. * To facilitate testing of llvmpipe/softpipe, if the GALLIUM_DRIVER env var is set, load the swrastg rather than swrast rasterizer. * In -wgl mode, create a new dispatch table, rather than modifying the existing one to avoid a GLX crash. 9ea8c1f306aff9cd32542ee9f47af400 *xorg-server-1.10.2-1.tar.bz2 974750046285c50f8c91244120af5d41 *xorg-server-dmx-1.10.2-1.tar.bz2 b525dda038b3b91b347699aa3de0966a *xorg-server-1.10.2-1-src.tar.bz2 [1] http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/ From esvenva@hotmail.com Tue Jun 28 18:08:00 2011 From: esvenva@hotmail.com (esvenva@hotmail.com) Date: Tue, 28 Jun 2011 18:08:00 -0000 Subject: Failed to activate core device - Could not invoke xkbcomp In-Reply-To: References: Message-ID: Hello, Yes I am aware this has been a reported problem, but nothing I have tried seems to work.? This is on a system that is NOT connected to the Internet, so direct cut-n-paste is not possible. Physical setup - (4) Dell OptiPlex 980, each with dual monitor setup with dual switch boxes (one KVM box on each video output), DVI video output, USB mouse & keyboard input.? The "oldest" of these workstations is running an older cygwin 1.5 and it works just fine. Cygwin/X Project Release: 1.10.1.0 OS: Win XP SP3 Package: version 1.10.1-1 built 2011-04-22 I first experienced a problem with the download process when I ran setup and select download w/o installing.? No matter what location I selected it would go to 99%, then hit an error.? I was able to download individual sections without error so that is what I did until I had everything. Once installed I tried to run "startx" but it throws 2 pop up windows one after another saying (1) "Failed to activate core device", (2) "Caught signal 11 (Segmentation fault) Server aborting. Looking in the XWin.0.log shows: (EE) XKB: Could not invoke xkbcomp (EE) XKB: Couldn't compile keymap (EE) XKB: Failed to load keymap. Loading default keymap instead. (EE) XKB: Could not invoke xkbcomp (EE) XKB: Couldn't compile keymap XKB: Failed to compile keymap Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config. Fatal server error: Failed to activate core devices. I then ran the following per the FAQ section: cygcheck -c xkeyboard-config Status - ok /usr/bin/xkbcomp Error:? No input file specified cygcheck /usr/bin/xkbcomp Returned 13 results - 1 exe, and 12 dll ash rebaseall Nothing seemed to change with cygwin, but most all of the files in the user directory for Exceed disappeared. IE - \Documents and Settings\username\Application Data\Hummingbird Connectivity\9.00\Exceed\.... Most of the *.kbf & *.kbt files were erased.? ?????? I was able to restore these from another copy on the system, it was just strange. Any additional help would be great.? It looks to be related to the error when I try to run xkbcomp, but IDK. Erin -- 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/ From gmatht@gmail.com Wed Jun 29 04:52:00 2011 From: gmatht@gmail.com (John McCabe-Dansted) Date: Wed, 29 Jun 2011 04:52:00 -0000 Subject: lxterminal complains "Bind on socket failed: Invalid argument" on first invocation. Message-ID: My problem is that lxterminal only works the second time I run it (not first, third etc.) Here I my symptoms: 1) I run "DISPLAY=:0 lxterminal &" and get the get the following error: ** ERROR **: Bind on socket failed: Invalid argument aborting... [1]+ Aborted (core dumped) DISPLAY=:0 lxterminal 2) The second time I run it, lxterminal works and I get an lxterminal screen. 3) The third time I run it I get two lxterminal screens, and do not get the error above, but both lxterminals are frozen. Running lxterminal more times gives yet more frozen screens. 4) Closing all lxterminal windows resets the state, that is if I close all lxterminal windows, then run lxterminal once I get the same symptoms in (1) above, etc. rebaseall does not seem to help. I would expect that: 1) A lxterminal window would appear each time I run lxterminal; and 2) having more than one lxterminal window would not cause lxterminal to freeze. -- John C. McCabe-Dansted -------------- next part -------------- A non-text attachment was scrubbed... Name: XWin.0.log Type: application/octet-stream Size: 3656 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cygcheck.out Type: application/octet-stream Size: 141112 bytes Desc: not available URL: -------------- next part -------------- -- 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/ From yselkowitz@users.sourceforge.net Wed Jun 29 05:08:00 2011 From: yselkowitz@users.sourceforge.net (Yaakov (Cygwin/X)) Date: Wed, 29 Jun 2011 05:08:00 -0000 Subject: lxterminal complains "Bind on socket failed: Invalid argument" on first invocation. In-Reply-To: References: Message-ID: <1309324119.7316.15.camel@YAAKOV04> On Wed, 2011-06-29 at 12:51 +0800, John McCabe-Dansted wrote: > My problem is that lxterminal only works the second time I run it (not > first, third etc.) lxterminal is not provided by the distribution. If you are referring to the Ports package, then please follow up on the cygwin-ports-general list. FWIW, I just tried Ports' lxterminal and it WJFFM. Yaakov Cygwin/X -- 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/ From stephen.more@gmail.com Wed Jun 29 11:01:00 2011 From: stephen.more@gmail.com (Stephen More) Date: Wed, 29 Jun 2011 11:01:00 -0000 Subject: [ANNOUNCEMENT] Updated: xorg-server-1.10.2-1 In-Reply-To: References: Message-ID: After installing service pack 1 to System 7 I got the "Failed to activate core devices." so I updated to xorg-server-1.10.2-1. I no longer am getting the Xwin modal error window, but Xwin is still not starting. -Stephen More On Tue, Jun 28, 2011 at 9:48 AM, Jon TURNEY wrote: > The following packages have been updated in the Cygwin distribution: > > *** xorg-server-1.10.2-1 > *** xorg-server-dmx-1.10.2-1 > > These packages contain XWin and the other X.Org X11 servers. > > In addition to upstream fixes [1], the following cygwin-specific changes > have been made since 1.10.1-1: > > * Use system() rather than pipe() & fork() to invoke xkbcomp. ?This should > work around the X server being unable to startup with "Failed to activate > core devices" error when cygwin's fork() emulation is unable to work > successfully. (Launching applications from the tray menu still uses fork() > and might still fail on problem systems, and other cygwin programs might > still fail to fork(), but hopefully this will prevent these problems from > being reported as an X server issue quite as much). (This should make > Cygwin/X FAQ 9.15 obsolete) > * Automatically activate the -nolock option if /tmp is on a FAT filesystem. > (This should make Cygwin/X FAQ 2.3 obsolete) > * Automatically activate the -emulate3buttons option if less than 3 mouse > buttons are reported. ?Add -noemulate3buttons option so this ?can be > reversed. > * To facilitate testing of llvmpipe/softpipe, if the GALLIUM_DRIVER env var > is set, load the swrastg rather than swrast rasterizer. > * In -wgl mode, create a new dispatch table, rather than modifying the > existing one to avoid a GLX crash. > > 9ea8c1f306aff9cd32542ee9f47af400 *xorg-server-1.10.2-1.tar.bz2 > 974750046285c50f8c91244120af5d41 *xorg-server-dmx-1.10.2-1.tar.bz2 > b525dda038b3b91b347699aa3de0966a *xorg-server-1.10.2-1-src.tar.bz2 > > [1] http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html > > -- > Jon TURNEY > Volunteer Cygwin/X X Server maintainer > > -- > 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/ From jon.turney@dronecode.org.uk Wed Jun 29 11:06:00 2011 From: jon.turney@dronecode.org.uk (Jon TURNEY) Date: Wed, 29 Jun 2011 11:06:00 -0000 Subject: [ANNOUNCEMENT] Updated: xorg-server-1.10.2-1 In-Reply-To: References: Message-ID: <4E0B0711.90403@dronecode.org.uk> On 29/06/2011 12:00, Stephen More wrote: > After installing service pack 1 to System 7 I got the "Failed to > activate core devices." so I updated to xorg-server-1.10.2-1. > > I no longer am getting the Xwin modal error window, but Xwin is still > not starting. Thanks for the report. Can you attach the /var/log/xwin/XWin.0.log, please > On Tue, Jun 28, 2011 at 9:48 AM, Jon TURNEY wrote: >> The following packages have been updated in the Cygwin distribution: >> >> *** xorg-server-1.10.2-1 >> *** xorg-server-dmx-1.10.2-1 >> >> These packages contain XWin and the other X.Org X11 servers. >> >> In addition to upstream fixes [1], the following cygwin-specific changes >> have been made since 1.10.1-1: >> >> * Use system() rather than pipe() & fork() to invoke xkbcomp. This should >> work around the X server being unable to startup with "Failed to activate >> core devices" error when cygwin's fork() emulation is unable to work >> successfully. (Launching applications from the tray menu still uses fork() >> and might still fail on problem systems, and other cygwin programs might >> still fail to fork(), but hopefully this will prevent these problems from >> being reported as an X server issue quite as much). (This should make >> Cygwin/X FAQ 9.15 obsolete) >> * Automatically activate the -nolock option if /tmp is on a FAT filesystem. >> (This should make Cygwin/X FAQ 2.3 obsolete) >> * Automatically activate the -emulate3buttons option if less than 3 mouse >> buttons are reported. Add -noemulate3buttons option so this can be >> reversed. >> * To facilitate testing of llvmpipe/softpipe, if the GALLIUM_DRIVER env var >> is set, load the swrastg rather than swrast rasterizer. >> * In -wgl mode, create a new dispatch table, rather than modifying the >> existing one to avoid a GLX crash. >> >> 9ea8c1f306aff9cd32542ee9f47af400 *xorg-server-1.10.2-1.tar.bz2 >> 974750046285c50f8c91244120af5d41 *xorg-server-dmx-1.10.2-1.tar.bz2 >> b525dda038b3b91b347699aa3de0966a *xorg-server-1.10.2-1-src.tar.bz2 >> >> [1] http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html >> > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html Please read :-) > Documentation: http://x.cygwin.com/docs/ > FAQ: http://x.cygwin.com/docs/faq/ -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/ From stephen.more@gmail.com Wed Jun 29 11:22:00 2011 From: stephen.more@gmail.com (Stephen More) Date: Wed, 29 Jun 2011 11:22:00 -0000 Subject: [ANNOUNCEMENT] Updated: xorg-server-1.10.2-1 In-Reply-To: <4E0B0711.90403@dronecode.org.uk> References: <4E0B0711.90403@dronecode.org.uk> Message-ID: Here is the XWin.0.log file. -Thanks On Wed, Jun 29, 2011 at 7:05 AM, Jon TURNEY wrote: > On 29/06/2011 12:00, Stephen More wrote: >> After installing service pack 1 to System 7 I got the "Failed to >> activate core devices." so I updated to xorg-server-1.10.2-1. >> >> I no longer am getting the Xwin modal error window, but Xwin is still >> not starting. > > Thanks for the report. > > Can you attach the /var/log/xwin/XWin.0.log, please > >> On Tue, Jun 28, 2011 at 9:48 AM, Jon TURNEY wrote: >>> The following packages have been updated in the Cygwin distribution: >>> >>> *** xorg-server-1.10.2-1 >>> *** xorg-server-dmx-1.10.2-1 >>> >>> These packages contain XWin and the other X.Org X11 servers. >>> >>> In addition to upstream fixes [1], the following cygwin-specific changes >>> have been made since 1.10.1-1: >>> >>> * Use system() rather than pipe() & fork() to invoke xkbcomp. ?This should >>> work around the X server being unable to startup with "Failed to activate >>> core devices" error when cygwin's fork() emulation is unable to work >>> successfully. (Launching applications from the tray menu still uses fork() >>> and might still fail on problem systems, and other cygwin programs might >>> still fail to fork(), but hopefully this will prevent these problems from >>> being reported as an X server issue quite as much). (This should make >>> Cygwin/X FAQ 9.15 obsolete) >>> * Automatically activate the -nolock option if /tmp is on a FAT filesystem. >>> (This should make Cygwin/X FAQ 2.3 obsolete) >>> * Automatically activate the -emulate3buttons option if less than 3 mouse >>> buttons are reported. ?Add -noemulate3buttons option so this ?can be >>> reversed. >>> * To facilitate testing of llvmpipe/softpipe, if the GALLIUM_DRIVER env var >>> is set, load the swrastg rather than swrast rasterizer. >>> * In -wgl mode, create a new dispatch table, rather than modifying the >>> existing one to avoid a GLX crash. >>> >>> 9ea8c1f306aff9cd32542ee9f47af400 *xorg-server-1.10.2-1.tar.bz2 >>> 974750046285c50f8c91244120af5d41 *xorg-server-dmx-1.10.2-1.tar.bz2 >>> b525dda038b3b91b347699aa3de0966a *xorg-server-1.10.2-1-src.tar.bz2 >>> >>> [1] http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html >>> > >> Unsubscribe info: ? ? ?http://cygwin.com/ml/#unsubscribe-simple >> Problem reports: ? ? ? http://cygwin.com/problems.html > > Please read :-) > >> Documentation: ? ? ? ? http://x.cygwin.com/docs/ >> FAQ: ? ? ? ? ? ? ? ? ? http://x.cygwin.com/docs/faq/ > > > -- > Jon TURNEY > Volunteer Cygwin/X X Server maintainer > -------------- next part -------------- A non-text attachment was scrubbed... Name: XWin.0.log Type: application/octet-stream Size: 3059 bytes Desc: not available URL: -------------- next part -------------- -- 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/ From stephen.more@gmail.com Wed Jun 29 11:27:00 2011 From: stephen.more@gmail.com (Stephen More) Date: Wed, 29 Jun 2011 11:27:00 -0000 Subject: [ANNOUNCEMENT] Updated: xorg-server-1.10.2-1 In-Reply-To: References: <4E0B0711.90403@dronecode.org.uk> Message-ID: Previously I had tried rebaseall and rebaseall with an alterante address but it still did not start. This appears to be intermittent, after a few more attempts X is now up and running. On Wed, Jun 29, 2011 at 7:22 AM, Stephen More wrote: > Here is the XWin.0.log file. > > -Thanks > > On Wed, Jun 29, 2011 at 7:05 AM, Jon TURNEY wrote: >> On 29/06/2011 12:00, Stephen More wrote: >>> After installing service pack 1 to System 7 I got the "Failed to >>> activate core devices." so I updated to xorg-server-1.10.2-1. >>> >>> I no longer am getting the Xwin modal error window, but Xwin is still >>> not starting. >> >> Thanks for the report. >> >> Can you attach the /var/log/xwin/XWin.0.log, please >> >>> On Tue, Jun 28, 2011 at 9:48 AM, Jon TURNEY wrote: >>>> The following packages have been updated in the Cygwin distribution: >>>> >>>> *** xorg-server-1.10.2-1 >>>> *** xorg-server-dmx-1.10.2-1 >>>> >>>> These packages contain XWin and the other X.Org X11 servers. >>>> >>>> In addition to upstream fixes [1], the following cygwin-specific changes >>>> have been made since 1.10.1-1: >>>> >>>> * Use system() rather than pipe() & fork() to invoke xkbcomp. ?This should >>>> work around the X server being unable to startup with "Failed to activate >>>> core devices" error when cygwin's fork() emulation is unable to work >>>> successfully. (Launching applications from the tray menu still uses fork() >>>> and might still fail on problem systems, and other cygwin programs might >>>> still fail to fork(), but hopefully this will prevent these problems from >>>> being reported as an X server issue quite as much). (This should make >>>> Cygwin/X FAQ 9.15 obsolete) >>>> * Automatically activate the -nolock option if /tmp is on a FAT filesystem. >>>> (This should make Cygwin/X FAQ 2.3 obsolete) >>>> * Automatically activate the -emulate3buttons option if less than 3 mouse >>>> buttons are reported. ?Add -noemulate3buttons option so this ?can be >>>> reversed. >>>> * To facilitate testing of llvmpipe/softpipe, if the GALLIUM_DRIVER env var >>>> is set, load the swrastg rather than swrast rasterizer. >>>> * In -wgl mode, create a new dispatch table, rather than modifying the >>>> existing one to avoid a GLX crash. >>>> >>>> 9ea8c1f306aff9cd32542ee9f47af400 *xorg-server-1.10.2-1.tar.bz2 >>>> 974750046285c50f8c91244120af5d41 *xorg-server-dmx-1.10.2-1.tar.bz2 >>>> b525dda038b3b91b347699aa3de0966a *xorg-server-1.10.2-1-src.tar.bz2 >>>> >>>> [1] http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html >>>> >> >>> Unsubscribe info: ? ? ?http://cygwin.com/ml/#unsubscribe-simple >>> Problem reports: ? ? ? http://cygwin.com/problems.html >> >> Please read :-) >> >>> Documentation: ? ? ? ? http://x.cygwin.com/docs/ >>> FAQ: ? ? ? ? ? ? ? ? ? http://x.cygwin.com/docs/faq/ >> >> >> -- >> Jon TURNEY >> Volunteer Cygwin/X X Server maintainer >> > -- 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/ From jon.turney@dronecode.org.uk Wed Jun 29 13:26:00 2011 From: jon.turney@dronecode.org.uk (Jon TURNEY) Date: Wed, 29 Jun 2011 13:26:00 -0000 Subject: Taskbar grouping in Windows 7 In-Reply-To: <4E05D930.6090305@gmx.de> References: <4E05D930.6090305@gmx.de> Message-ID: <4E0B27DA.20701@dronecode.org.uk> On 25/06/2011 13:48, Tobias H??u??ler wrote: > I created a small patch for XWin that adds correct grouping of taskbar > icons when 'Always combine, hide labels' is set in the taskbar > properties. It uses the new taskbar APIs introduced in Windows 7 to set > an application id for each window. The id is based on the X11 class hints. > Maybe it is useful for someone... Firstly, thanks very much for this patch. Getting Windows to correctly group XWin windows on the taskbar is something that has needed fixing for a while, so it's great to have it done :-) A few minor comments included inline: > diff -urN src/xserver-cygwin-1.10.1-1/hw/xwin/taskbar.h src/xserver-cygwin-1.10.1-1/hw/xwin/taskbar.h > --- src/xserver-cygwin-1.10.1-1/hw/xwin/taskbar.h 1970-01-01 01:00:00.000000000 +0100 > +++ src/xserver-cygwin-1.10.1-1/hw/xwin/taskbar.h 2011-06-25 14:08:15.768141100 +0200 Can you start this file with the license information, like all other files. This should also serve to confirm that you are happy for me to forward this upstream to be distributed under the MIT/X11 license [1] > @@ -0,0 +1,44 @@ > +#ifndef _TASKBAR_H > +#define _TASKBAR_H > + > +#include > +#include > +#include > +#include > + > +typedef struct _tagpropertykey { > + GUID fmtid; > + DWORD pid; > +} PROPERTYKEY; > +#define REFPROPERTYKEY const PROPERTYKEY * > +#define REFPROPVARIANT const PROPVARIANT * > + > +#ifdef INTERFACE > +#undef INTERFACE > +#endif > + > +#define INTERFACE IPropertyStore > +DECLARE_INTERFACE_(IPropertyStore,IUnknown) > +{ > + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE; > + STDMETHOD_(ULONG,AddRef)(THIS) PURE; > + STDMETHOD_(ULONG,Release)(THIS) PURE; > + STDMETHOD(GetCount)(THIS_ DWORD) PURE; > + STDMETHOD(GetAt)(THIS_ DWORD,PROPERTYKEY) PURE; > + STDMETHOD(GetValue)(THIS_ REFPROPERTYKEY,PROPVARIANT) PURE; > + STDMETHOD(SetValue)(THIS_ REFPROPERTYKEY,REFPROPVARIANT) PURE; > + STDMETHOD(Commit)(THIS) PURE; > +}; > +#undef INTERFACE > +typedef IPropertyStore *LPPROPERTYSTORE; > + > +DEFINE_GUID(IID_IPropertyStore,0x886d8eeb, 0x8cf2, 0x4446, 0x8d,0x02, 0xcd,0xba,0x1d,0xbd,0xcf,0x99); > + > +#define DEFINE_PROPERTYKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) const PROPERTYKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid } > + > +DEFINE_PROPERTYKEY(PKEY_AppUserModel_ID, 0x9F4C2855, 0x9F79, 0x4B39, 0xA8, 0xD0, 0xE1, 0xD4, 0x2D, 0xE1, 0xD5, 0xF3, 5); > + > +typedef HRESULT (__stdcall *SHGETPROPERTYSTOREFORWINDOWPROC)(HWND,REFIID,void**); > +typedef HRESULT (__stdcall *PROPVARIANTCLEARPROC)(PROPVARIANT*); > + > +#endif > diff -urN src/xserver-cygwin-1.10.1-1/hw/xwin/winmultiwindowwm.c src/xserver-cygwin-1.10.1-1/hw/xwin/winmultiwindowwm.c > --- src/xserver-cygwin-1.10.1-1/hw/xwin/winmultiwindowwm.c 2011-04-22 18:03:27.000000000 +0200 > +++ src/xserver-cygwin-1.10.1-1/hw/xwin/winmultiwindowwm.c 2011-06-25 14:11:05.671216100 +0200 > @@ -61,6 +61,9 @@ > #include "window.h" > #include "pixmapstr.h" > #include "windowstr.h" > +#include "taskbar.h" > + > +#include > > #ifdef XWIN_MULTIWINDOWEXTWM > #include > @@ -200,6 +203,9 @@ > void > winUpdateWindowPosition (HWND hWnd, Bool reshape, HWND *zstyle); > > +void > +winSetAppID (HWND hWnd, const char* AppID); > + Looks like this function can be made static? > /* > * Local globals > */ > @@ -1671,19 +1677,36 @@ > XFree(normal_hint); > } > > - /* Override hint settings from above with settings from config file */ > + /* > + Override hint settings from above with settings from config file and set > + application id for grouping. > + */ > { > XClassHint class_hint = {0,0}; > char *window_name = 0; > - > + char *application_id = 0; > + > if (XGetClassHint(pDisplay, iWindow, &class_hint)) > { > XFetchName(pDisplay, iWindow, &window_name); > > style = winOverrideStyle(class_hint.res_name, class_hint.res_class, window_name); > > +#define APPLICATION_ID_FORMAT "%s.xwin.%s" > +#define APPLICATION_ID_UNKNOWN "unknown" > + if (class_hint.res_class) > + { > + asprintf (&application_id, APPLICATION_ID_FORMAT, XVENDORNAME, class_hint.res_class); > + } > + else > + { > + asprintf (&application_id, APPLICATION_ID_FORMAT, XVENDORNAME, APPLICATION_ID_UNKNOWN); > + } > + winSetAppID (hWnd, application_id); > + > if (class_hint.res_name) XFree(class_hint.res_name); > if (class_hint.res_class) XFree(class_hint.res_class); > + if (application_id) free(application_id); > if (window_name) XFree(window_name); > } > else > @@ -1691,7 +1714,7 @@ > style = STYLE_NONE; > } > } > - > + > if (style & STYLE_TOPMOST) *zstyle = HWND_TOPMOST; > else if (style & STYLE_MAXIMIZE) maxmin = (hint & ~HINT_MIN) | HINT_MAX; > else if (style & STYLE_MINIMIZE) maxmin = (hint & ~HINT_MAX) | HINT_MIN; > @@ -1789,3 +1812,73 @@ > winUpdateRgnMultiWindow(pWin); > } > } > + > +void > +winSetAppID (HWND hWnd, const char* AppID) > +{ > + HMODULE hmodShell32Dll = NULL, hmodOle32Dll = NULL; > + SHGETPROPERTYSTOREFORWINDOWPROC pSHGetPropertyStoreForWindow = NULL; > + PROPVARIANTCLEARPROC pPropVariantClear = NULL; > + PROPVARIANT pv; > + IPropertyStore *pps = NULL; > + HRESULT hr; > + > + hmodShell32Dll = LoadLibrary ("shell32.dll"); > + if (hmodShell32Dll == NULL) > + { > + ErrorF ("winSetAppID - Could not load shell32.dll\n"); > + return; > + } Since the results of LoadLibrary/GetProcAddress are invariant at run-time, I'd rather these calls were done once, rather than every time we want to use those results. It would also be useful to include a comment mentioning which version of Windows these interfaces were added in (so future generations will know when they can directly link to those functions :-)) I assume that there is no way to achieve this functionality prior for Windows 7, rather than an alternative interface which you chose not to use? > + > + pSHGetPropertyStoreForWindow = (SHGETPROPERTYSTOREFORWINDOWPROC) > + GetProcAddress (hmodShell32Dll, > + "SHGetPropertyStoreForWindow"); > + if (pSHGetPropertyStoreForWindow == NULL) > + { > + ErrorF ("winSetAppID - Could not get " > + "SHGetPropertyStoreForWindow address\n"); > + FreeLibrary (hmodShell32Dll); > + return; > + } > + > + > + hmodOle32Dll = LoadLibrary ("ole32.dll"); > + if (hmodOle32Dll == NULL) > + { > + ErrorF ("winSetAppID - Could not load ole32.dll\n"); > + FreeLibrary (hmodShell32Dll); > + return; > + } > + > + pPropVariantClear = (PROPVARIANTCLEARPROC) > + GetProcAddress (hmodOle32Dll, > + "PropVariantClear"); > + if (pPropVariantClear == NULL) > + { > + ErrorF ("winSetAppID - Could not get " > + "PropVariantClear address\n"); > + FreeLibrary (hmodShell32Dll); > + FreeLibrary (hmodOle32Dll); > + return; > + } > + > + hr = pSHGetPropertyStoreForWindow (hWnd, &IID_IPropertyStore, (void**)&pps); > + if(SUCCEEDED(hr) && pps) > + { > + memset(&pv, 0, sizeof(PROPVARIANT)); Should be PropVariantInit() ? > + pv.vt = VT_LPWSTR; > + hr = SHStrDupA(AppID, &pv.pwszVal); > + if(SUCCEEDED(hr)) > + { > + hr = pps->lpVtbl->SetValue(pps, &PKEY_AppUserModel_ID, &pv); > + if (pPropVariantClear != NULL ) > + { > + pPropVariantClear(&pv); > + } > + } > + pps->lpVtbl->Release(pps); > + } The MSDN description of SHGetPropertyStoreForWindow() says: "A window's properties must be removed before the window is closed. If this is not done, the resources used by those properties are not returned to the system." Does this not apply in this case, or is some cleanup needed? > + > + FreeLibrary (hmodOle32Dll); > + FreeLibrary (hmodShell32Dll); > +} [1] http://cgit.freedesktop.org/xorg/xserver/tree/COPYING -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/ From phil.betts@gmail.com Thu Jun 30 08:40:00 2011 From: phil.betts@gmail.com (Phil Betts) Date: Thu, 30 Jun 2011 08:40:00 -0000 Subject: I lose characters because keycode of Fn is same than DEL In-Reply-To: <4E0324BB.5020004@dronecode.org.uk> References: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> <4E0324BB.5020004@dronecode.org.uk> Message-ID: On 23 June 2011 12:34, Jon TURNEY wrote: > On 10/06/2011 10:33, Paul Maier wrote: >> >> on a a IBM Lenovo Laptop T60 there is a "Fn" key to adjust the screen >> brightness and such. >> >> That "Fn" key has the same keycode than the DEL key. >> Therefore I can't change the Fn key with xmodmap (because I would change >> the DEL key the same way.) >> > ... > I think this is a bug in the way XWin translates Windows keystrokes into X > keycodes. > > Can you run the X server with the extra option '-logverbose 3' and report > what is written to /var/log/xwin/XWin.0.log when you press the Fn key. Since the OP hasn't responded, I have the same problem on a Lenovo R500 laptop. Running as suggested produces this when the Fn key is pressed: [ 710.350] winTranslateKey: wParam 000000ff lParam 01630001 [ 710.350] winSendKeyEvent: dwKey: 99, fDown: 1, nEvents 3 [ 710.366] winTranslateKey: wParam 000000ff lParam c1630001 [ 710.366] winSendKeyEvent: dwKey: 99, fDown: 0, nEvents 2 and this when the Delete key is pressed: [ 730.240] winTranslateKey: wParam 0000002e lParam 01530001 [ 730.240] winSendKeyEvent: dwKey: 99, fDown: 1, nEvents 2 [ 730.349] winTranslateKey: wParam 0000002e lParam c1530001 [ 730.349] winSendKeyEvent: dwKey: 99, fDown: 0, nEvents 2 Phil -- 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/ From hufilufi@freemail.hu Thu Jun 30 12:16:00 2011 From: hufilufi@freemail.hu (szalai endre) Date: Thu, 30 Jun 2011 12:16:00 -0000 Subject: nomultiplemonitors does not work in windowed mode Message-ID: Guys, I am going crazy. I have 2 monitors and I would like Cygwin-X to use only the primary. So I am using the nomultiplemonitors option like this: xwin.exe -nomultiplemonitors But. Cygwin has the following modes: (default) Windowed or rooted mode. This is not an option, I want to use the multiwindow mode. Otherwise I could just use VNC, using Cygwin-X for this is pointless (for me). -multiwindow This mode automatically sets the multiplemonitors option and it cannot be overriden from command line. -rootless Unusable, since I can't move to resize the windows. -mwextwm This one gets frozen, so it's not really an option right now. Do I see correctly, that the only mode that would be usable for me (multiwindow) cannot be used with the option -nomultiplemonitors? Please advice. Thanks, Endre -- 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/ From jon.turney@dronecode.org.uk Thu Jun 30 16:51:00 2011 From: jon.turney@dronecode.org.uk (Jon TURNEY) Date: Thu, 30 Jun 2011 16:51:00 -0000 Subject: I lose characters because keycode of Fn is same than DEL In-Reply-To: References: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> <4E0324BB.5020004@dronecode.org.uk> Message-ID: <4E0CA974.4030506@dronecode.org.uk> On 30/06/2011 09:14, Phil Betts wrote: > On 23 June 2011 12:34, Jon TURNEY wrote: >> On 10/06/2011 10:33, Paul Maier wrote: >>> >>> on a a IBM Lenovo Laptop T60 there is a "Fn" key to adjust the screen >>> brightness and such. >>> >>> That "Fn" key has the same keycode than the DEL key. >>> Therefore I can't change the Fn key with xmodmap (because I would change >>> the DEL key the same way.) >>> >> ... >> I think this is a bug in the way XWin translates Windows keystrokes into X >> keycodes. >> >> Can you run the X server with the extra option '-logverbose 3' and report >> what is written to /var/log/xwin/XWin.0.log when you press the Fn key. > > Since the OP hasn't responded, I have the same problem on a Lenovo R500 > laptop. Running as suggested produces this when the Fn key is pressed: > > [ 710.350] winTranslateKey: wParam 000000ff lParam 01630001 > [ 710.350] winSendKeyEvent: dwKey: 99, fDown: 1, nEvents 3 > [ 710.366] winTranslateKey: wParam 000000ff lParam c1630001 > [ 710.366] winSendKeyEvent: dwKey: 99, fDown: 0, nEvents 2 > > and this when the Delete key is pressed: > > [ 730.240] winTranslateKey: wParam 0000002e lParam 01530001 > [ 730.240] winSendKeyEvent: dwKey: 99, fDown: 1, nEvents 2 > [ 730.349] winTranslateKey: wParam 0000002e lParam c1530001 > [ 730.349] winSendKeyEvent: dwKey: 99, fDown: 0, nEvents 2 Thanks. I've fixed the mapping for this (undocumented) virtual key code, so hopefully this works correctly now. I've uploaded a snapshot at [1] I can't test this as the keyboards I have with an Fn key don't generate a separate keypress for that, apparently Lenovo laptops are special in this regard :-), so please let me know if this works. [1] ftp://cygwin.com/pub/cygwinx/XWin.20110630-git-e89b8ba1b44331d1.exe.bz2 -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/ From jon.turney@dronecode.org.uk Thu Jun 30 17:03:00 2011 From: jon.turney@dronecode.org.uk (Jon TURNEY) Date: Thu, 30 Jun 2011 17:03:00 -0000 Subject: nomultiplemonitors does not work in windowed mode In-Reply-To: References: Message-ID: <4E0CAC6A.1030102@dronecode.org.uk> On 30/06/2011 13:16, szalai endre wrote: > Guys, I am going crazy. I have 2 monitors and I would like Cygwin-X to use only the primary. So I am using the nomultiplemonitors option like this: > xwin.exe -nomultiplemonitors > > But. Cygwin has the following modes: > (default) Windowed or rooted mode. > This is not an option, I want to use the multiwindow mode. Otherwise I could just use VNC, using Cygwin-X for this is pointless (for me). > > -multiwindow > This mode automatically sets the multiplemonitors option and it cannot be overriden from command line. What is it that makes you think this? For the current version of Cygwin/X this is not the case. However, perhaps it should be, as it doesn't work in a useful way. You can move the X windows off the primary monitor, but they don't get their contents drawn when you do so (because the underlying X screen is only the size of the primary monitor) I'm not sure if I understand what you are expecting to happen with -multiwindow -nomultiplemonitors: Should the X windows be forced to stay on the primary monitor when you try to move them off it? It might also help to describe your use case in a bit more detail. > -rootless > Unusable, since I can't move to resize the windows. You will need to run an X window manager to move, resize etc. the X windows in this mode, as described at [1] > -mwextwm > This one gets frozen, so it's not really an option right now. As bug reports go, this leaves something to be desired :-) > Do I see correctly, that the only mode that would be usable for me (multiwindow) cannot be used with the option -nomultiplemonitors? > > Please advice. [1] http://x.cygwin.com/docs/ug/configure.html#configure-cygwin-x-windowing-modes -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/ From jon.turney@dronecode.org.uk Thu Jun 30 17:10:00 2011 From: jon.turney@dronecode.org.uk (Jon TURNEY) Date: Thu, 30 Jun 2011 17:10:00 -0000 Subject: Failed to activate core device - Could not invoke xkbcomp In-Reply-To: References: Message-ID: <4E0CADE6.2040103@dronecode.org.uk> On 28/06/2011 19:08, esvenva@hotmail.com wrote: [snip] > Fatal server error: Failed to activate core devices. > > > I then ran the following per the FAQ section: > > cygcheck -c xkeyboard-config > Status - ok > > /usr/bin/xkbcomp > Error: No input file specified > > cygcheck /usr/bin/xkbcomp > Returned 13 results - 1 exe, and 12 dll You seem to have skipped over where the Cygwin/X FAQ 9.16 points you at [1] [1] http://cygwin.com/faq-nochunks.html#faq.using.bloda > ash rebaseall > Nothing seemed to change with cygwin, but most all of the files in the user directory for Exceed disappeared. > IE - \Documents and Settings\username\Application Data\Hummingbird Connectivity\9.00\Exceed\.... > Most of the *.kbf & *.kbt files were erased. ?????? > I was able to restore these from another copy on the system, it was just strange. > > > Any additional help would be great. It looks to be related to the error when I try to run xkbcomp, but IDK. You might like to try the recently released X server 1.10.2-1, which does contain a workaround which is supposed to help in this situation. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/ From hufilufi@freemail.hu Thu Jun 30 20:48:00 2011 From: hufilufi@freemail.hu (szalai endre) Date: Thu, 30 Jun 2011 20:48:00 -0000 Subject: nomultiplemonitors does not work in windowed mode In-Reply-To: <4E0CAC6A.1030102@dronecode.org.uk> Message-ID: Hi, >> This mode automatically sets the multiplemonitors option and it cannot be overriden from command line. > What is it that makes you think this? According to XWin docs: "-[no]multimonitors or -[no]multiplemonitors Create a screen 0 that covers all monitors [the primary monitor] on a system with multiple monitors. This option is currently enabled by default in -multiwindow mode." And this is exactly what happens. When I start a program, it shows up on both monitors (half here, half there). This is not supposed to happen (see next point). > I'm not sure if I understand what you are expecting to happen with -multiwindow -nomultiplemonitors: I have 2 monitors. Imagine you turn off one of them and you want to use the other one only. Currently, Cygwin-X will span over all monitors - unless you use the multiplemonitors option. I think the goal for this option is very clear from the docs: use only 1 monitor for the root window, no matter what. So I would expect this behavior: you should not be able to move off windows from the primary monitor, at all. The point is, you want to limit the root window to one monitor only. I see the -multiwindow and -nomultiplemonitors options completely independent from each other. They should not have any relationship at all. The first just tells how you want to map windows within the root window, while the other simply specifies how many monitors you want to use for the root window. I thought it is very clear from the docs, however your questions make me uncertain. Isn't is supposed to work like that? Thanks, Endre Jon TURNEY ?rta: >On 30/06/2011 13:16, szalai endre wrote:> > Guys, I am going crazy. I have 2 monitors and I would like Cygwin-X to use only the primary. So I am using the nomultiplemonitors option like this:> > xwin.exe -nomultiplemonitors> > > > But. Cygwin has the following modes:> > (default) Windowed or rooted mode.> > This is not an option, I want to use the multiwindow mode. Otherwise I could just use VNC, using Cygwin-X for this is pointless (for me).> > > > -multiwindow> > This mode automatically sets the multiplemonitors option and it cannot be overriden from command line.> > What is it that makes you think this?> > For the current version of Cygwin/X this is not the case. However, perhaps it> should be, as it doesn't work in a useful way. You can move the X windows off> the primary monitor, but they don't get their contents drawn when you do so> (because the underlying X screen is only the size of the primary monitor)> > I'm not sure if I understand what you are expecting to happen with> -multiwindow -nomultiplemonitors: Should the X windows be forced to stay on> the primary monitor when you try to move them off it? It might also help to> describe your use case in a bit more detail.> > > -rootless> > Unusable, since I can't move to resize the windows.> > You will need to run an X window manager to move, resize etc. the X windows in> this mode, as described at [1]> > > -mwextwm> > This one gets frozen, so it's not really an option right now.> > As bug reports go, this leaves something to be desired :-)> > > Do I see correctly, that the only mode that would be usable for me (multiwindow) cannot be used with the option -nomultiplemonitors?> > > > Please advice.> > [1] http://x.cygwin.com/docs/ug/configure.html#configure-cygwin-x-windowing-modes> > -- > Jon TURNEY> Volunteer Cygwin/X X Server maintainer> > --> 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/ From hufilufi@freemail.hu Thu Jun 30 23:08:00 2011 From: hufilufi@freemail.hu (szalai endre) Date: Thu, 30 Jun 2011 23:08:00 -0000 Subject: nomultiplemonitors does not work in windowed mode In-Reply-To: <4E0CAC6A.1030102@dronecode.org.uk> Message-ID: Hi, >> This mode automatically sets the multiplemonitors option and it cannot be overriden from command line. > What is it that makes you think this? According to XWin docs: "-[no]multimonitors or -[no]multiplemonitors Create a screen 0 that covers all monitors [the primary monitor] on a system with multiple monitors. This option is currently enabled by default in -multiwindow mode." And this is exactly what happens. When I start a program, it shows up on both monitors (half here, half there). This is not supposed to happen (see next point). > I'm not sure if I understand what you are expecting to happen with -multiwindow -nomultiplemonitors: I have 2 monitors. Imagine you turn off one of them and you want to use the other one only. Currently, Cygwin-X will span over all monitors - unless you use the multiplemonitors option. I think the goal for this option is very clear from the docs: use only 1 monitor for the root window, no matter what. So I would expect this behavior: you should not be able to move off windows from the primary monitor, at all. The point is, you want to limit the root window to one monitor only. I see the -multiwindow and -nomultiplemonitors options completely independent from each other. They should not have any relationship at all. The first just tells how you want to map windows within the root window, while the other simply specifies how many monitors you want to use for the root window. I thought it is very clear from the docs, however your questions make me uncertain. Isn't is supposed to work like that? Thanks, Endre Jon TURNEY ?rta: >On 30/06/2011 13:16, szalai endre wrote:> > Guys, I am going crazy. I have 2 monitors and I would like Cygwin-X to use only the primary. So I am using the nomultiplemonitors option like this:> > xwin.exe -nomultiplemonitors> > > > But. Cygwin has the following modes:> > (default) Windowed or rooted mode.> > This is not an option, I want to use the multiwindow mode. Otherwise I could just use VNC, using Cygwin-X for this is pointless (for me).> > > > -multiwindow> > This mode automatically sets the multiplemonitors option and it cannot be overriden from command line.> > What is it that makes you think this?> > For the current version of Cygwin/X this is not the case. However, perhaps it> should be, as it doesn't work in a useful way. You can move the X windows off> the primary monitor, but they don't get their contents drawn when you do so> (because the underlying X screen is only the size of the primary monitor)> > I'm not sure if I understand what you are expecting to happen with> -multiwindow -nomultiplemonitors: Should the X windows be forced to stay on> the primary monitor when you try to move them off it? It might also help to> describe your use case in a bit more detail.> > > -rootless> > Unusable, since I can't move to resize the windows.> > You will need to run an X window manager to move, resize etc. the X windows in> this mode, as described at [1]> > > -mwextwm> > This one gets frozen, so it's not really an option right now.> > As bug reports go, this leaves something to be desired :-)> > > Do I see correctly, that the only mode that would be usable for me (multiwindow) cannot be used with the option -nomultiplemonitors?> > > > Please advice.> > [1] http://x.cygwin.com/docs/ug/configure.html#configure-cygwin-x-windowing-modes> > -- > Jon TURNEY> Volunteer Cygwin/X X Server maintainer> > --> 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/