forked from 12to11/12to11
Implement primary selections, and minor improvements elsewhere
* 12to11.c (XLMain): Initialize primary selections. Transfer between X and Wayland programs is still incomplete. * Imakefile (SRCS, OBJS): Add primary selection related objects and sources. (primary-selection-unstable-v1.h): (primary-selection-unstable-v1.c): New targets. * README: Update what is not supported. * compositor.h: New prototypes. * data_device.c (XLDataDeviceSendEnter): Handle resource allocation failures. * mime1.awk: Update generated code for changes in target entry structures. * seat.c (SetFocusSurface): Handle focus change for primary selections as well. (FindSurfaceUnder): Cut off fractional portion instead of rounding the given coordinates, so the correct surface is found when the cursor is moved just inside the rightmost pixel. * surface.c (XLSurfaceRunFrameCallbacks): Handle timestamp overflow. * xdata.c (struct _TargetMapping): Rename atom to atom_flag, and use it to store flags. (MappingAtom, MappingFlag, MappingIsNextDuplicate, MappingSetFlag) (MappingUnsetFlag, MappingIs): New macros. (struct _TargetMappingTable): New structure. (Duplicate): New definition. (direct_transfer): Update duplicate types. (mapping_table): New hash table. (HashMimeString, SetupMappingTable): New functions. (FindTranslationForMimeType, Receive): Use the target mapping table to look up targets instead. (CheckDuplicate): New function. (SendOffers): Call CheckDuplicates. (XLInitXData): Set up duplicate relationship between UTF8_STRING and is conversion entry, and the targets mapping table.
This commit is contained in:
parent
0965f5b3eb
commit
6c7801f0fd
9 changed files with 219 additions and 31 deletions
7
README
7
README
|
@ -42,14 +42,15 @@ complete degree:
|
|||
'wl_seat', version: 7
|
||||
'wl_data_device_manager', version: 3
|
||||
'zwp_linux_dmabuf_v1', version: 4
|
||||
'zwp_primary_selection_device_manager_v1', version: 1
|
||||
|
||||
With the main caveat being that zwp_linux_dmabuf_v1 has no real
|
||||
support for multiple-provider setups (help wanted).
|
||||
|
||||
Primary selections and window decorations are also not supported, even
|
||||
though they fit in nicely with X window management.
|
||||
Window decorations are also not supported, even though they fit in
|
||||
nicely with X window management.
|
||||
|
||||
It would also be nice to have pinch gesture support in wl_pointer.
|
||||
It would also be nice to have pinch gesture support.
|
||||
|
||||
This directory is organized as follows:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue