mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Add drag&drop support (issue #1258).
- Requires proper handling of the "XdndProxy" property on the top-level window. This currently works in cefsimple but not cefclient (perhaps due to https://bugzilla.gnome.org/show_bug.cgi?id=653264). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1759 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -417,8 +417,10 @@ void CefBrowserHostImpl::PlatformTranslateMouseEvent(
|
||||
GetBrowser(),
|
||||
result.x, result.y,
|
||||
result.globalX, result.globalY);
|
||||
} else {
|
||||
// TODO(linux): Convert global{X,Y} to screen coordinates.
|
||||
} else if (window_x11_) {
|
||||
const gfx::Point& origin = window_x11_->bounds().origin();
|
||||
result.globalX += origin.x();
|
||||
result.globalY += origin.y();
|
||||
}
|
||||
|
||||
// modifiers
|
||||
|
Reference in New Issue
Block a user