stop cycling desktops with scrollbutton
Brian J. Tarricone
bjt23 at cornell.edu
Wed Sep 22 21:54:56 CEST 2004
On 09/22/04 20:53, Nils Rennebarth wrote:
> Brian J. Tarricone wrote:
> >>Actually, since xfwm4 catches those scroll events anyway, we could perhaps
> >>remove it from xfdesktop.
> >not unless there's some weird X magic going on that says the root window
> >catches all button events. otherwise, xfdesktops virtual root will block
> >the scroll event form ever getting to the real root window (and thus xfwm4
> >won't ever see it).
> Ahh, that was the explanation that I was looking for.
>
> And no, there is no such magic going on. So we need to implement it in
> xfdesktop only and remove it from xfwm4 because the window manager never
> sees button events that happen over the root window only. If xdesktop is
> running, that is.
>
> Any suggestions for adding options to xdesktop during the current freeze?
not really, unfortunately. xfdesktop uses MCS for all its settings, so there
isn't a handy file you can append something to like for xfwm4. i suppose
you could add a hidden MCS setting, but that would mean that you'd need to
add/change the pref without the mcs manager running (to be safe).
as danny pointed out, the callback that handles the scroll event is in
src/main.c (i think it's called button_scroll_cb() or mouse_scroll_cb() or
something). i don't believe the McsClient is very well exposed in main.c,
so it might be somewhat difficult to logically organise it.
personally, i'm not convinced that this is a necessary option to have. i
understand the problem you have, but i'm somewhat reluctant to add something
like that to xfdesktop. you can make up a patch for it, but don't be
surprised if i don't commit it (though, if it's not too much work, i might
mess around with it a bit).
-brian
>
> Btw: (I am new to this) How are keypresses different from button presses
> in this respect, because keypresses do arrive at the window manager?
> --
> ______
> (Muuuhh)
> Global Village Sau ==> ^..^ |/?????
> (Kann Fremdsprache) ==> (oo)
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
More information about the Xfce4-dev
mailing list