mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
input: change CHECKEVENT macro to verify_internal_event function
The macro is sufficient if called during a development cycle, but not sufficient information when triggered by a user (e.g. https://bugzilla.redhat.com/show_bug.cgi?id=688693). Expand what this does to print the event content and a backtrace, so at least we know where we're coming from. Only the first 32 bytes are printed since if something goes wrong, the event we have is almost certainly an xEvent or xError, both restricted to 32 bytes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
bf2059b07a
commit
5690199802
6 changed files with 39 additions and 12 deletions
|
|
@ -77,6 +77,7 @@ SOFTWARE.
|
|||
#include "xiquerydevice.h" /* For List*Info */
|
||||
#include "eventconvert.h"
|
||||
#include "eventstr.h"
|
||||
#include "inpututils.h"
|
||||
|
||||
#include <X11/extensions/XKBproto.h>
|
||||
#include "xkbsrv.h"
|
||||
|
|
@ -920,7 +921,7 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device)
|
|||
DeviceIntPtr mouse = NULL, kbd = NULL;
|
||||
DeviceEvent *event = &ev->device_event;
|
||||
|
||||
CHECKEVENT(ev);
|
||||
verify_internal_event(ev);
|
||||
|
||||
if (ev->any.type == ET_RawKeyPress ||
|
||||
ev->any.type == ET_RawKeyRelease ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue