On 07 Oct 1999 19:30:32 +0200, Lars Gullik Bj°nnes wrote:

>"Arnd Hanses" <[EMAIL PROTECTED]> writes:
>
>| On Thu, 07 Oct 1999 07:08:37 +0900, Shigeru Miyata wrote:
>| 
>| >+ MathParInset p = new MathParInset(LM_ST_TEXT);
>| 
>| Probably a silly question, but I'm a bit confused: Why 'new'? 
>| 
>| 
>| >+ XStoreBuffer(fl_display, xclipboard.c_str(), xclipboard.length(), 0);
>| 
>| Apart from that just a general remark: Do you try to introduce some
>| thin abstraction layer on top of all those direct xlib and xforms
>| calls? So to put all those dirty bits and pieces apart and wrap them
>| nicely in a 'guiPrimitives.a' or how is it called?
>| 
>| Moreover it's a fix, so it should become now part of the OS/2 bin.
>
>Does this work with 

?

>XConvertSelection and XA_PRIMARY?
>
>I am not sure that it does.

This prepares for target type conversion of specified window selection.
You'll need to copy to the buffer anyway. So you probably wanted to
suggest we should not forget XSetSelectionOwner() to current, the
SelectionNotify event and the correct handling of this?

Excerpt from XSetSelectionOwner(3X11) 


NAME
       XSetSelectionOwner, XGetSelectionOwner, XConvertSelection
       - manipulate window selection
       
DESCRIPTION
       The XSetSelectionOwner function changes the owner and
       last-change time for the specified selection and has no
       effect if the specified time is earlier than the current
       last-change time of the specified selection or is later
       than the current X server time.  Otherwise, the last-
       change time is set to the specified time, with CurrentTime
       replaced by the current server time.  If the owner window
       is specified as None, then the owner of the selection
       becomes None (that is, no owner).  Otherwise, the owner of
       the selection becomes the client executing the request.

       If the new owner (whether a client or None) is not the
       same as the current owner of the selection and the current
       owner is not None, the current owner is sent a Selection-
       Clear event.  If the client that is the owner of a selec-
       tion is later terminated (that is, its connection is
       closed) or if the owner window it has specified in the
       request is later destroyed, the owner of the selection
       automatically reverts to None, but the last-change time is
       not affected.  The selection atom is uninterpreted by the
       X server.  XGetSelectionOwner returns the owner window,
       which is reported in SelectionRequest and SelectionClear
       events.  Selections are global to the X server.

       XSetSelectionOwner can generate BadAtom and BadWindow
       errors.

      XConvertSelection requests that the specified selection be
       converted to the specified target type:

       o    If the specified selection has an owner, the X server
            sends a SelectionRequest event to that owner.

       o    If no owner for the specified selection exists, the X
            server generates a SelectionNotify event to the
            requestor with property None.

       The arguments are passed on unchanged in either of the
       events.  There are two predefined selection atoms: PRIMARY
       and SECONDARY.

       XConvertSelection can generate BadAtom and BadWindow
       errors.

AH

Reply via email to