Re: Selectively removing button grab on panel?



On Sat, 2008-04-05 at 11:04 -0600, Elijah Newren wrote:
> 
> >  Is there a way around this? I was playing around with the event
> loop in
> >  metacity today, and I figured out that I can disable the button
> event
> >  grab on a specific panel window when it's clicked on in the event
> loop
> >  (via meta_change_button_grab and its associated call to
> XUngrabButton),
> >  but I guess what I really need is to disable the button event grab
> for
> >  those windows at the very beginning.
> 
> In display.c:event_callback(), under case ButtonPress:, we basically
> don't do anything with windows like the panel (look for "begin_move &&
> window->has_move_func").  We could probably make use of the
> window->has_move_func flag (or the META_WINDOW_DOCK type) inside
> meta_display_grab_window_buttons (similar to how we do with
> META_WINDOW_DOCK in meta_window_grab_keys), to avoid grabbing the alt
> button for the panel.
> 
> Could you file a bug?

I eventually figured out the exact solution that you describe, and
implemented it. Patch to metacity attached to the aforementioned bug
309721.
-- 
William Lachance <wrlach gmail com>

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]