Re: Problem with sawfish and GNOME global menus
- From: Michal Maruska <mmaruska gmail com>
- To: General discussion about sawfish wm <sawfish-list gnome org>
- Subject: Re: Problem with sawfish and GNOME global menus
- Date: Mon, 20 Dec 2010 03:38:05 +0200
> sawfish focus the GNOME panel when clicking on it. metacity and openbox make
> dock type windows unfocusable.
when I run xprop on the gnome panel, I see:
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Is this wrong?
>I avoided this problem in sawfish locally by
> changing focus-click-through to never-focus in dock-window-properties. I
> don't think this is appropriate, so I'm not asking for this to be changed in
> sawfish.
>
> However, even with that change, it still didn't work: the menus still
> changed to the desktop's menus. And this does look questionable on sawfish's
> part: it happens because sawfish takes the grabbing of keyboard input as a
> normal focus event. In src/events.c, focus_out includes an early return:
> if (ev->xfocus.detail == NotifyPointer
> || ev->xfocus.mode == NotifyGrab || ev->xfocus.mode == NotifyUngrab)
> return;
> but focus_in's early return is simpler:
> if (ev->xfocus.detail == NotifyPointer)
> return;
> When I change focus_in to also return on NotifyGrab/Ungrab, things work
> great.
For some reason, I have been using
focus_in()
....
if ((ev->xfocus.mode == NotifyGrab)
|| (ev->xfocus.mode == NotifyUngrab))
return;
without any problems (with focus-mode click).
But still, if you have some Grabbing client (password input, ...) you
lose the feedback from the WM (framing).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]