| Index: ui/base/x/events_x.cc
|
| diff --git a/ui/base/x/events_x.cc b/ui/base/x/events_x.cc
|
| index 329acbe5147d1a8a75fe1691d9b8b718b1a57c7d..966fec275141e06a768c3e9da254b5010621cee8 100644
|
| --- a/ui/base/x/events_x.cc
|
| +++ b/ui/base/x/events_x.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "ui/base/events.h"
|
|
|
| +#include <X11/Xlib.h>
|
| #include <X11/extensions/XInput2.h>
|
|
|
| #include "base/logging.h"
|
| @@ -354,4 +355,14 @@ float GetTouchForce(const base::NativeEvent& native_event) {
|
| return force;
|
| }
|
|
|
| +base::NativeEvent CreateNoopEvent() {
|
| + static XEvent* noop = new XEvent();
|
| + noop->xclient.type = ClientMessage;
|
| + noop->xclient.display = NULL;
|
| + noop->xclient.window = None;
|
| + noop->xclient.message_type = 0;
|
| + noop->xclient.format = 0;
|
| + return noop;
|
| +}
|
| +
|
| } // namespace ui
|
|
|