From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14345 invoked by alias); 16 Mar 2003 09:07:45 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 14256 invoked from network); 16 Mar 2003 09:07:45 -0000 Received: from unknown (HELO mail.tiscali.cz) (213.235.135.71) by sources.redhat.com with SMTP; 16 Mar 2003 09:07:45 -0000 Received: from hobitin.ucw.cz (212.11.106.178) by mail.tiscali.cz (6.0.044) id 3E6FFDAA0009CCD8 for guile-gtk@sources.redhat.com; Sun, 16 Mar 2003 10:05:08 +0100 Received: from 0rfelyus by hobitin.ucw.cz with local (Exim 3.36 #1 (Debian)) id 18uTqm-00022n-00 for ; Sun, 16 Mar 2003 09:50:36 +0100 To: guile-gtk@sources.redhat.com Subject: Re: gdk-window-get-events returns all-events-mask From: Daniel Skarda <0rfelyus@ucw.cz> Date: Sun, 16 Mar 2003 09:07:00 -0000 In-Reply-To: <87bs0s9hka.fsf@zip.com.au> (Kevin Ryde's message of "Tue, 04 Mar 2003 09:05:57 +1000") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/20.7 References: <87bs0s9hka.fsf@zip.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q1/txt/msg00017.txt.bz2 Hello, > It looks like sgtk_enum_flags_init ended up sorting "all-events-mask" > to the start of the literals array, then sgtk_flags2scm thinks it > matches "val & info->literals[i].value". thank you for your bugreport. I hope that if ((val & info->literals[i].value) == info->literals [i].value) solves your problem. > Perhaps all-events-mask could be tagged for use only by scm2flags, not > flags2scm. Fortunately it is not necessary (after the bugfix). all-events-mask == 0xffff and the last event substructure-mask == 1 << 20, so equality in above "if" is not going to be problem anymore. Have a nice day, 0.