FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 12-22-2011, 01:23 AM
Ed Greshko
 
Default xev and certain windows

I've not needed to do this for a long time and I thought it works....
But, here is the skinny.

If I obtain the window id of, for example, a libre office window, using
xwininfo and then invoke xev with the -id parameter things seem to work
as expected. For example, pressing "1" in the libre office window
results in:

KeyPress event, serial 16, synthetic NO, window 0x520002f,
root 0x124, subw 0x0, time 142007296, (357,352), root365,375),
state 0x10, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XmbLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: False

KeyRelease event, serial 16, synthetic NO, window 0x520002f,
root 0x124, subw 0x0, time 142007424, (357,352), root365,375),
state 0x10, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: False

However, when doing this with a Firefox, Thunderbird, and Chrome (for
example) it doesn't work.

A key press simply results in

PropertyNotify event, serial 14, synthetic NO, window 0x2000033,
atom 0x143 (_NET_WM_USER_TIME), time 142233172, state PropertyNewValue

So, how to trace key events in the same manner in those types of windows?


--
A common mistake that people make when trying to design something
completely foolproof was to underestimate the ingenuity of complete
fools. -- Douglas Adams in "Mostly Harmless

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 09:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org