delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/07/06/16:23:46

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <3964EAC0.23BA1498@cygnus.com>
Date: Thu, 06 Jul 2000 22:23:28 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: DJ Delorie <dj AT delorie DOT com>
CC: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: experimental new GUI setup
References: <200007061736 DOT NAA21944 AT envy DOT delorie DOT com> <20000706154444 DOT A22109 AT cygnus DOT com> <200007061954 DOT PAA05193 AT envy DOT delorie DOT com>

DJ Delorie wrote:
> > I used ftp.freesoftware.com as the mirror to download from and it gave
> > me an error because there was 750 people logged in and the maximum was
> > hit.  Unfortunately, the error showed up *behind* the "Cygwin
> > Setup/Downloading/setup.ini/Connecting..." screen.
> 
> Hmmm, it showed up in front on mine.  I suppose I can force it with a
> suitable flag.

Chris is using W2K. Maybe that matters here. W2K has a
system variable which disallows for a configurable time
a switch to another apps window. Regardless if that app
tries to get a foreground window, it can't. You will
never see that behaviour on NT.

This is example code which disables that behaviour on W2K:

    OSVERSIONINFO os_version_info;
    os_version_info.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);

    GetVersionEx (&os_version_info);

    if (os_version_info.dwPlatformId == VER_PLATFORM_WIN32_NT &&
        os_version_info.dwMajorVersion >= 5) {
#ifndef SPI_SETFOREGROUNDLOCKTIMEOUT
#define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
#endif
        SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, 0, 0);
    }

Hope, that helps,
Corinna

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019