XEvent content question - Xwindows

This is a discussion on XEvent content question - Xwindows ; From a SelectionNotify XEvent, is it possible to determine whether this is a selection (i.e. middle click paste) or clipboard paste? Thanks Jon...

+ Reply to Thread
Results 1 to 2 of 2

Thread: XEvent content question

  1. XEvent content question

    From a SelectionNotify XEvent, is it possible to determine whether
    this is a selection (i.e. middle click paste) or clipboard paste?

    Thanks
    Jon

  2. Re: XEvent content question

    jonathan j tanner writes:
    > From a SelectionNotify XEvent, is it possible to determine whether
    > this is a selection (i.e. middle click paste) or clipboard paste?


    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] - http://tronche.com/gui/x/xlib/events...selection.html

    Ashish
    --
    ·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
    () ascii ribbon campaign - against HTML e-mail
    /\ www.asciiribbon.org - against proprietary attachments

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)

    iEYEARECAAYFAkjAJIUACgkQHy+EEHYuXnQpFwCdHp8g4XyYPR 2h9CC/ADo7sFo0
    GjIAoIcImEVvonFtlkh2b1ybSbJfnZRu
    =a89r
    -----END PGP SIGNATURE-----

+ Reply to Thread