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
032bdc9f
Commit
032bdc9f
authored
Nov 20, 2003
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Nov 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial implementation to support XDND protocol.
parent
5a2f3c1f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
1 deletion
+43
-1
Makefile.in
dlls/x11drv/Makefile.in
+1
-0
event.c
dlls/x11drv/event.c
+2
-1
window.c
dlls/x11drv/window.c
+21
-0
x11drv.h
dlls/x11drv/x11drv.h
+19
-0
xdnd.c
dlls/x11drv/xdnd.c
+0
-0
No files found.
dlls/x11drv/Makefile.in
View file @
032bdc9f
...
...
@@ -35,6 +35,7 @@ C_SRCS = \
winpos.c
\
x11ddraw.c
\
x11drv_main.c
\
xdnd.c
\
xrandr.c
\
xrender.c
\
xvidmode.c
...
...
dlls/x11drv/event.c
View file @
032bdc9f
...
...
@@ -1227,7 +1227,8 @@ static void EVENT_ClientMessage( HWND hWnd, XClientMessageEvent *event )
else
if
(
event
->
data
.
l
[
0
]
==
DndURL
)
EVENT_DropURLs
(
hWnd
,
event
);
}
else
{
else
if
(
!
X11DRV_XDND_Event
(
hWnd
,
event
))
{
#if 0
/* enable this if you want to see the message */
unsigned char* p_data = NULL;
...
...
dlls/x11drv/window.c
View file @
032bdc9f
...
...
@@ -81,7 +81,24 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"_NET_WM_PID"
,
"_NET_WM_PING"
,
"_NET_WM_NAME"
,
"XdndAware"
,
"XdndEnter"
,
"XdndPosition"
,
"XdndStatus"
,
"XdndLeave"
,
"XdndFinished"
,
"XdndDrop"
,
"XdndActionCopy"
,
"XdndActionMove"
,
"XdndActionLink"
,
"XdndActionAsk"
,
"XdndActionPrivate"
,
"XdndSelection"
,
"XdndTarget"
,
"XdndTypeList"
,
"image/gif"
,
"text/html"
,
"text/plain"
,
"text/rtf"
,
"text/richtext"
};
...
...
@@ -356,6 +373,7 @@ void X11DRV_set_wm_hints( Display *display, WND *win )
XWMHints
*
wm_hints
;
Atom
protocols
[
3
];
MwmHints
mwm_hints
;
Atom
dndVersion
=
4
;
int
i
;
wine_tsx11_lock
();
...
...
@@ -428,6 +446,9 @@ void X11DRV_set_wm_hints( Display *display, WND *win )
x11drv_atom
(
_MOTIF_WM_HINTS
),
32
,
PropModeReplace
,
(
char
*
)
&
mwm_hints
,
sizeof
(
mwm_hints
)
/
sizeof
(
long
)
);
XChangeProperty
(
display
,
data
->
whole_window
,
x11drv_atom
(
XdndAware
),
XA_ATOM
,
32
,
PropModeReplace
,
(
unsigned
char
*
)
&
dndVersion
,
1
);
wm_hints
=
XAllocWMHints
();
wine_tsx11_unlock
();
...
...
dlls/x11drv/x11drv.h
View file @
032bdc9f
...
...
@@ -231,6 +231,8 @@ extern void X11DRV_XRender_UpdateDrawable(X11DRV_PDEVICE *physDev);
extern
void
X11DRV_OpenGL_Init
(
Display
*
display
);
extern
XVisualInfo
*
X11DRV_setup_opengl_visual
(
Display
*
display
);
extern
int
X11DRV_XDND_Event
(
HWND
hWnd
,
XClientMessageEvent
*
event
);
/* exported dib functions for now */
/* Additional info for DIB section objects */
...
...
@@ -390,7 +392,24 @@ enum x11drv_atoms
XATOM__NET_WM_PID
,
XATOM__NET_WM_PING
,
XATOM__NET_WM_NAME
,
XATOM_XdndAware
,
XATOM_XdndEnter
,
XATOM_XdndPosition
,
XATOM_XdndStatus
,
XATOM_XdndLeave
,
XATOM_XdndFinished
,
XATOM_XdndDrop
,
XATOM_XdndActionCopy
,
XATOM_XdndActionMove
,
XATOM_XdndActionLink
,
XATOM_XdndActionAsk
,
XATOM_XdndActionPrivate
,
XATOM_XdndSelection
,
XATOM_XdndTarget
,
XATOM_XdndTypeList
,
XATOM_image_gif
,
XATOM_text_html
,
XATOM_text_plain
,
XATOM_text_rtf
,
XATOM_text_richtext
,
NB_XATOMS
...
...
dlls/x11drv/xdnd.c
0 → 100644
View file @
032bdc9f
This diff is collapsed.
Click to expand it.
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