Window focus problem with WINE and Alt-Tab in XFCE 4.0

john-thomas richards theolojin at comcast.net
Tue Dec 23 17:56:40 CET 2003


On Mon, Dec 22, 2003 at 01:59:43PM +0900, Mike McCormack wrote:
> I have investigated this further, and I believe that Wine is doing the 
> right thing, and that xfwm4 is doing the wrong thing.
> 
[snip]
> 
> See below for a patch that shows the problem very clearly, and which can 
> be used for a workaround when Wine is used with xfwm4.
> 
[snip]
> 
> Index: dlls/x11drv/event.c
> ===================================================================
> RCS file: /home/wine/wine/dlls/x11drv/event.c,v
> retrieving revision 1.30
> diff -u -r1.30 event.c
> --- dlls/x11drv/event.c 5 Dec 2003 04:45:50 -0000       1.30
> +++ dlls/x11drv/event.c 22 Dec 2003 04:36:25 -0000
> @@ -494,7 +494,6 @@
>          XSetICFocus( xic );
>          wine_tsx11_unlock();
>      }
> -    if (use_take_focus) return;  /* ignore FocusIn if we are using take 
> focus */
> 
>      if (!can_activate_window(hwnd))
>      {
> 

the following is from eric, the original poster in this thread (he is
having trouble posting to the list; he is receiving error messages about
finding the server):

Thanks Olivier.

I tried the patch you sent.  I'm not sure if it had the same behavior in
the past but what I'm finding is if the wine window is minimized and you
Alt-Tab to it the focus does show properly and works as it should.  If
the window is left maximized then the same problem as before happens.
It acts as if the window manager has focus but wine does not have focus
to the point where you can use the program without clicking in the
screen.

Thank you,

Eric Pell
-- 
john-thomas
------
In times when the government imprisons any unjustly, the true place for
a just man is also the prison.
Henry David Thoreau (1817-1862)



More information about the Xfce mailing list