This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdk-window-get-events returns all-events-mask


Daniel Skarda <0rfelyus at ucw dot cz> writes:
>
>    if ((val & info->literals[i].value) == info->literals [i].value)

That should do the trick in practice, though I still think
all-events-mask shouldn't be returned at all.

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

Actually, the absense of any event equal to "1 << 0" will ensure it
doesn't occurs.  But I think this is merely a bug in gtk,
GDK_ALL_EVENTS_MASK in gtk 2.2.1 has been corrected to 0x3FFFE
(there's a new 1<<21 bit added).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]