#if !defined(OS_CHROMEOS)
#include "ui/views/ime/input_method.h"
-#include "ui/views/widget/desktop_aura/desktop_root_window_host_x11.h"
+#include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
#endif
namespace {
current_window_ == event->xcrossing.window)
OnActiveWindowChanged(None);
break;
+ case FocusIn:
+ if (event->xfocus.mode == NotifyNormal &&
+ current_window_ != event->xfocus.window)
+ OnActiveWindowChanged(event->xfocus.window);
+ break;
default:
NOTREACHED();
}
}
-bool X11DesktopHandler::Dispatch(const base::NativeEvent& event) {
+uint32_t X11DesktopHandler::Dispatch(const base::NativeEvent& event) {
// Check for a change to the active window.
switch (event->type) {
case PropertyNotify: {
}
}
- return true;
+ return POST_DISPATCH_NONE;
}
void X11DesktopHandler::OnWindowInitialized(aura::Window* window) {