Commit de645013 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winex11.drv: Print the FocusIn/FocusOut mode in trace message.

parent 8a765533
...@@ -749,6 +749,14 @@ static const char * const focus_details[] = ...@@ -749,6 +749,14 @@ static const char * const focus_details[] =
"NotifyDetailNone" "NotifyDetailNone"
}; };
static const char * const focus_modes[] =
{
"NotifyNormal",
"NotifyGrab",
"NotifyUngrab",
"NotifyWhileGrabbed"
};
/********************************************************************** /**********************************************************************
* X11DRV_FocusIn * X11DRV_FocusIn
*/ */
...@@ -759,7 +767,7 @@ static BOOL X11DRV_FocusIn( HWND hwnd, XEvent *xev ) ...@@ -759,7 +767,7 @@ static BOOL X11DRV_FocusIn( HWND hwnd, XEvent *xev )
if (!hwnd) return FALSE; if (!hwnd) return FALSE;
TRACE( "win %p xwin %lx detail=%s\n", hwnd, event->window, focus_details[event->detail] ); TRACE( "win %p xwin %lx detail=%s mode=%s\n", hwnd, event->window, focus_details[event->detail], focus_modes[event->mode] );
if (event->detail == NotifyPointer) return FALSE; if (event->detail == NotifyPointer) return FALSE;
if (hwnd == GetDesktopWindow()) return FALSE; if (hwnd == GetDesktopWindow()) return FALSE;
...@@ -839,7 +847,7 @@ static BOOL X11DRV_FocusOut( HWND hwnd, XEvent *xev ) ...@@ -839,7 +847,7 @@ static BOOL X11DRV_FocusOut( HWND hwnd, XEvent *xev )
{ {
XFocusChangeEvent *event = &xev->xfocus; XFocusChangeEvent *event = &xev->xfocus;
TRACE( "win %p xwin %lx detail=%s\n", hwnd, event->window, focus_details[event->detail] ); TRACE( "win %p xwin %lx detail=%s mode=%s\n", hwnd, event->window, focus_details[event->detail], focus_modes[event->mode] );
if (event->detail == NotifyPointer) if (event->detail == NotifyPointer)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment