Merge lp:~apinheiro/nux/fix-event-inspector into lp:nux
Status: | Merged |
---|---|
Merged at revision: | 270 |
Proposed branch: | lp:~apinheiro/nux/fix-event-inspector |
Merge into: | lp:nux |
Diff against target: |
68 lines (+8/-7) 2 files modified
Nux/WindowThread.cpp (+5/-4) Nux/WindowThread.h (+3/-3) |
To merge this branch: | bzr merge lp:~apinheiro/nux/fix-event-inspector |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Loïc Molinari (community) | Approve | ||
Jay Taoko | Pending | ||
Review via email: mp+53414@code.launchpad.net |
Description of the change
Recently I started to work on bug 702672, and for that I need to use the EventInspector support on WindowThread.
So my idea was make something like this:
static int
unity_key_snooper (nux::Area *area, nux::Event *event, void *data)
{
//do something
}
wt->InstallEven
But this launches a casting error while compiling. So I tried to use a casting with (EventInspector *). But then it crashes while executing the code (I also tried with &unity_
Then I realized something on the install method:
int InstallEventIns
EventInspector is already defined as a pointer, so this *function is not required. So I modified those, and things works now.