Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(727)

Issue 2889063002: Linux desktopCapture: fix the cursor position issue in Window sharing (Closed)

Created:
3 years, 7 months ago by braveyao1
Modified:
3 years, 7 months ago
Reviewers:
Sergey Ulanov
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Linux desktopCapture: fix the cursor position issue in Window sharing On Linux, during Windwo sharing, the cursore capture may happen in the parent window of the target. And the parent window may have some decorations added by window manager(Chrome windows don't have those decorations.), so the relative cursor position to the parent window with decorations may differ to its child target window. The offset includes the height of caption bar and the around shadow and border. This problem only happens with Window sharing on Linux. The fix is to translate the coordinates from the parent window to the coordinates space of the target window. BUG=chromium:723889 Review-Url: https://codereview.webrtc.org/2889063002 Cr-Commit-Position: refs/heads/master@{#18243} Committed: https://chromium.googlesource.com/external/webrtc/+/d019667c001679b9c73b63735f2c2fca92c530d6

Patch Set 1 #

Total comments: 10

Patch Set 2 : re-do the cl with applying XTranslateCoordinates() method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M webrtc/modules/desktop_capture/mouse_cursor_monitor_x11.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (22 generated)
braveyao1
Hi sergeyu@, please take a look at this.
3 years, 7 months ago (2017-05-18 18:51:09 UTC) #12
Sergey Ulanov
https://codereview.webrtc.org/2889063002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_x11.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_x11.cc (right): https://codereview.webrtc.org/2889063002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_x11.cc#newcode65 webrtc/modules/desktop_capture/mouse_cursor_monitor_x11.cc:65: return DesktopSize(0, 0); DesktopSize(); Don't need the zeros https://codereview.webrtc.org/2889063002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_x11.cc#newcode72 ...
3 years, 7 months ago (2017-05-19 20:36:03 UTC) #13
braveyao1
Thanks sooooo much for the recommendation of XTranslateCoordinates() method. The cl is much more simple ...
3 years, 7 months ago (2017-05-19 22:38:59 UTC) #16
Sergey Ulanov
lgtm
3 years, 7 months ago (2017-05-22 22:23:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2889063002/40001
3 years, 7 months ago (2017-05-22 22:30:32 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_clang_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_clang_dbg/builds/12874)
3 years, 7 months ago (2017-05-22 22:47:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2889063002/40001
3 years, 7 months ago (2017-05-23 16:20:04 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 16:31:20 UTC) #29
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/external/webrtc/+/d019667c001679b9c73b63735...

Powered by Google App Engine
This is Rietveld 408576698