On Wed, 19. Mar 2008, Kris Maglione wrote: > On Tue, Mar 18, 2008 at 10:14:02AM +0100, Benjamin Hanzelmann wrote: > >sadly I did not have time to look into this lately, but today I noticed > >the scroll wheel is working if I hold the middle mouse button (=> mouse > >wheel ;) while scrolling. Huh? It also works in some dialog windows like > >the eclipse class finder. Hm. Does anyone know where to start looking > >for this in the code? I'm not good at C, but this is annoying. ;) > > You may want to add: > > if(!e->subwindow) > > to bup_event in frame.c, before the ClientClick event is > broadcast. It really *shouldn't* be needed, though.
That did not help... :( I fiddled around with frame.c and IIRC event.c yesterday for a few hours, trying to turn of the "catching" of events altogether, but even then the mouse wheel did not work. The mouse button seems to work partially now, though -- if I roll fast enough, my xterm wants to scroll. ;) And there is still the strange "hold middle mouse -> wheel is working"-effect... xev gives me the following while I constantly use the wheel: |ButtonPress event, serial 24, synthetic NO, window 0x1c00001, | root 0x29, subw 0x0, time 3350097809, (409,163), root:(410,842), | state 0x0, button 4, same_screen YES | |ButtonRelease event, serial 24, synthetic NO, window 0x1c00001, | root 0x29, subw 0x0, time 3350097809, (409,163), root:(410,842), | state 0x800, button 4, same_screen YES | |LeaveNotify event, serial 24, synthetic NO, window 0x1c00001, | root 0x29, subw 0x0, time 3350097841, (409,163), root:(410,842), | mode NotifyGrab, detail NotifyAncestor, same_screen YES, | focus YES, state 2048 | |EnterNotify event, serial 24, synthetic NO, window 0x1c00001, | root 0x29, subw 0x0, time 3350097841, (409,163), root:(410,842), | mode NotifyUngrab, detail NotifyAncestor, same_screen YES, | focus YES, state 0 | |KeymapNotify event, serial 24, synthetic NO, window 0x0, | keys: 41 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... and then more *Notify-Events... As I said, this is a sunray setup and the Sun X-server (Xnewt), so a non standard behaviour is possible -- but every other wm I tried worked, and older wmii versions should work, too (I did not test one on this machine, but I have a similar setup at home, and it's working there... this is the next thing I'll try, going back in time and check if it works ;) Regards, Benjamin Hanzelmann
