Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
89f2dafe
Commit
89f2dafe
authored
Sep 28, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Export the TIMESTAMP clipboard property.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f59c076d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
clipboard.c
dlls/winex11.drv/clipboard.c
+15
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+1
-0
No files found.
dlls/winex11.drv/clipboard.c
View file @
89f2dafe
...
...
@@ -131,6 +131,7 @@ static BOOL export_text_html( Display *display, Window win, Atom prop, Atom targ
static
BOOL
export_hdrop
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_targets
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_multiple
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
export_timestamp
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
);
static
BOOL
X11DRV_CLIPBOARD_ReadProperty
(
Display
*
display
,
Window
w
,
Atom
prop
,
Atom
*
type
,
unsigned
char
**
data
,
unsigned
long
*
datasize
);
...
...
@@ -176,6 +177,7 @@ static const struct
{
HTMLFormatW
,
0
,
XATOM_text_html
,
import_data
,
export_text_html
},
{
0
,
0
,
XATOM_TARGETS
,
import_targets
,
export_targets
},
{
0
,
0
,
XATOM_MULTIPLE
,
NULL
,
export_multiple
},
{
0
,
0
,
XATOM_TIMESTAMP
,
NULL
,
export_timestamp
},
};
static
struct
list
format_list
=
LIST_INIT
(
format_list
);
...
...
@@ -1552,6 +1554,19 @@ static BOOL export_multiple( Display *display, Window win, Atom prop, Atom targe
}
/***********************************************************************
* export_timestamp
*
* Export the timestamp that was used to acquire the selection
*/
static
BOOL
export_timestamp
(
Display
*
display
,
Window
win
,
Atom
prop
,
Atom
target
,
HANDLE
handle
)
{
Time
time
=
CurrentTime
;
/* FIXME */
put_property
(
display
,
win
,
prop
,
XA_INTEGER
,
32
,
&
time
,
1
);
return
TRUE
;
}
/**************************************************************************
* X11DRV_CLIPBOARD_GetProperty
* Gets type, data and size.
...
...
dlls/winex11.drv/x11drv.h
View file @
89f2dafe
...
...
@@ -400,6 +400,7 @@ enum x11drv_atoms
XATOM_SELECTION_DATA
,
XATOM_TARGETS
,
XATOM_TEXT
,
XATOM_TIMESTAMP
,
XATOM_UTF8_STRING
,
XATOM_RAW_ASCENT
,
XATOM_RAW_DESCENT
,
...
...
dlls/winex11.drv/x11drv_main.c
View file @
89f2dafe
...
...
@@ -111,6 +111,7 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"SELECTION_DATA"
,
"TARGETS"
,
"TEXT"
,
"TIMESTAMP"
,
"UTF8_STRING"
,
"RAW_ASCENT"
,
"RAW_DESCENT"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment