Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c2e98900
Commit
c2e98900
authored
Nov 21, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skins2: Cosmetics and make better use of a test that's done anyway.
parent
1bb2388c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
modules/gui/skins2/x11/x11_dragdrop.cpp
modules/gui/skins2/x11/x11_dragdrop.cpp
+6
-13
No files found.
modules/gui/skins2/x11/x11_dragdrop.cpp
View file @
c2e98900
...
...
@@ -120,18 +120,11 @@ void X11DragDrop::dndPosition( ldata_t data )
event
.
xclient
.
message_type
=
typeAtom
;
event
.
xclient
.
format
=
32
;
event
.
xclient
.
data
.
l
[
0
]
=
m_wnd
;
if
(
m_target
!=
None
)
{
// Accept the drop
event
.
xclient
.
data
.
l
[
1
]
=
1
;
}
else
{
// Do not accept the drop
event
.
xclient
.
data
.
l
[
1
]
=
0
;
}
int
w
=
X11Factory
::
instance
(
getIntf
()
)
->
getScreenWidth
();
int
h
=
X11Factory
::
instance
(
getIntf
()
)
->
getScreenHeight
();
// Accept the drop (1), or not (0).
event
.
xclient
.
data
.
l
[
1
]
=
m_target
!=
None
?
1
:
0
;
OSFactory
*
pOsFactory
=
X11Factory
::
instance
(
getIntf
()
);
int
w
=
pOsFactory
->
getScreenWidth
();
int
h
=
pOsFactory
->
getScreenHeight
();
event
.
xclient
.
data
.
l
[
2
]
=
0
;
event
.
xclient
.
data
.
l
[
3
]
=
(
w
<<
16
)
|
h
;
event
.
xclient
.
data
.
l
[
4
]
=
actionAtom
;
...
...
@@ -174,8 +167,8 @@ void X11DragDrop::dndDrop( ldata_t data )
if
(
buffer
!=
NULL
)
{
selection
=
buffer
;
XFree
(
buffer
);
}
XFree
(
buffer
);
if
(
selection
!=
""
)
{
...
...
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