Skip to contentSkip to conversation

Implement some QKeyCode support

PATCH Superseded Programmingkid 3 participants 4 messages Mar 11, 2016 – Mar 12, 2016

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 cover Implement some QKeyCode support

This patchset adds QKeyCode support the adb and cocoa code.

Note: you do not need to be on a Mac to test out the adb.c, qapi-schema.json, and adb-keys.h files. Only the cocoa.m file changes are Mac specific.

If you are using Linux as a guest, then the xev command is what you could use to test out these patches. For a Mac OS guest the Key Caps application would help with testing out these patches.

John Arbuckle (4):
cocoa.m
qapi-schema.json
adb-keys.h
adb.c

 hw/input/adb.c              | 223 ++++++++++++++++++++++++-------
 include/hw/input/adb-keys.h | 146 ++++++++++++++++++++
 qapi-schema.json            |   3 +-
 ui/cocoa.m                  | 317 ++++++++++++++++++++------------------------
 4 files changed, 466 insertions(+), 223 deletions(-)
 create mode 100644 include/hw/input/adb-keys.h
Signature · 1 line
2.7.2
#1 lore raw
Quoted 9 lines · Programmingkid

This patchset adds QKeyCode support the adb and cocoa code.

Note: you do not need to be on a Mac to test out the adb.c, qapi-schema.json, and adb-keys.h files. Only the cocoa.m file changes are Mac specific.

If you are using Linux as a guest, then the xev command is what you could use to test out these patches. For a Mac OS guest the Key Caps application would help with testing out these patches.

Quoted 5 lines

John Arbuckle (4):
cocoa.m
qapi-schema.json
adb-keys.h
adb.c

This isn't the typical git cover letter - git lists the titles of the four patches, not the basenames of the files modified by the patches. Also, you still didn't manage to get threading quite right; the series ended up as 5 top-level threads, which makes it harder to find things in mailers that sort by threads with most recent activity.

Quoted 8 lines
 hw/input/adb.c              | 223 ++++++++++++++++++++++++-------
 include/hw/input/adb-keys.h | 146 ++++++++++++++++++++
 qapi-schema.json            |   3 +-
 ui/cocoa.m                  | 317 ++++++++++++++++++++------------------------
 4 files changed, 466 insertions(+), 223 deletions(-)
 create mode 100644 include/hw/input/adb-keys.h
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#2 lore raw
Quoted 16 lines · Eric Blake
Quoted 9 lines · Programmingkid

This patchset adds QKeyCode support the adb and cocoa code.

Note: you do not need to be on a Mac to test out the adb.c, qapi-schema.json, and adb-keys.h files. Only the cocoa.m file changes are Mac specific.

If you are using Linux as a guest, then the xev command is what you could use to test out these patches. For a Mac OS guest the Key Caps application would help with testing out these patches.

Quoted 5 lines

John Arbuckle (4):
cocoa.m
qapi-schema.json
adb-keys.h
adb.c

Quoted 5 lines

This isn't the typical git cover letter - git lists the titles of the four patches, not the basenames of the files modified by the patches. Also, you still didn't manage to get threading quite right; the series ended up as 5 top-level threads, which makes it harder to find things in mailers that sort by threads with most recent activity.

My git send-email is broken. I spend hours googling fixes that didn't work. The 5 top-level issue is because I sent the patches using my emailer. I will remember next time to add the titles to the cover letter.

#3 lore raw
Quoted 2 lines · Programmingkid

My git send-email is broken. I spend hours googling fixes that didn't work.

Unfortunately this makes it awkward for me to actually test your patches, because the tooling for handling patch mails assumes they're formatted correctly:

$ patches apply id:[email protected]
Cannot apply series: series is either incomplete or improperly threaded.
Quoted 1 line

I will remember next time to add the titles to the cover letter.

You can just use the git format-patch --cover-letter option, which will automatically generate a cover mail template with the format people expect (which you can then edit to add the description/series title/etc).

thanks
-- PMM