From a SelectionNotify XEvent, is it possible to determine whether
this is a selection (i.e. middle click paste) or clipboard paste?
Thanks
Jon
Printable View
From a SelectionNotify XEvent, is it possible to determine whether
this is a selection (i.e. middle click paste) or clipboard paste?
Thanks
Jon
jonathan j tanner writes:[color=blue]
> From a SelectionNotify XEvent, is it possible to determine whether
> this is a selection (i.e. middle click paste) or clipboard paste?[/color]
That depends on the selection, whether it is a middle click paste
(PRIMARY selection) or clipboard paste (CLIPBOARD selection). And
XSelectionEvent[1] structure contains the 'selection' memeber which
specifies the current selection.
References:
[1] - [url]http://tronche.com/gui/x/xlib/events/client-communication/selection.html[/url]
Ashish
--
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
() ascii ribbon campaign - against HTML e-mail
/\ [url]www.asciiribbon.org[/url] - against proprietary attachments
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkjAJIUACgkQHy+EEHYuXnQpFwCdHp8g4XyYPR2h9CC/ADo7sFo0
GjIAoIcImEVvonFtlkh2b1ybSbJfnZRu
=a89r
-----END PGP SIGNATURE-----