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

Issue 10990010: Fix tab dragging in unity2d (Closed)

Created:
8 years, 3 months ago by jamesr
Modified:
8 years, 2 months ago
Reviewers:
sadrul, Elliot Glaysher, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, derat+watch_chromium.org
Visibility:
Public.

Description

Fix tab dragging in unity2d Unity 2d creates non-rectangled or 'shaped' X11 windows. These windows have a big bounding box according to XGetGeometry but should actually only interact with part of the screen, which confuses the tab strip dragging code. This checks if a point is actually inside the ShapeInput list when this extension is supported by the X display BUG=114985 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159111

Patch Set 1 #

Total comments: 2

Patch Set 2 : XFree return value of XShapeGetRectangles, cache query #

Patch Set 3 : add null check for return value of XShapeGetRectangles #

Total comments: 1

Patch Set 4 : blindly patches dock_info_aurax11.cc and simplifies query cache #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -28 lines) Patch
M chrome/browser/ui/aura/tabs/dock_info_aurax11.cc View 1 2 3 2 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/ui/gtk/tabs/dock_info_gtk.cc View 2 chunks +2 lines, -9 lines 0 comments Download
M ui/base/x/x11_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 3 chunks +49 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
jamesr
I've manually tested this on unity 2d but not anywhere else yet.
8 years, 3 months ago (2012-09-24 23:27:49 UTC) #1
Elliot Glaysher
https://codereview.chromium.org/10990010/diff/1/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/10990010/diff/1/ui/base/x/x11_util.cc#newcode645 ui/base/x/x11_util.cc:645: } You'll need an XFree(input_rects); here.
8 years, 3 months ago (2012-09-24 23:35:05 UTC) #2
sadrul
https://codereview.chromium.org/10990010/diff/1/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/10990010/diff/1/ui/base/x/x11_util.cc#newcode632 ui/base/x/x11_util.cc:632: if (XShapeQueryExtension(ui::GetXDisplay(), &dummy, &dummy)) { It would make sense ...
8 years, 3 months ago (2012-09-24 23:39:24 UTC) #3
jamesr
PTAL
8 years, 3 months ago (2012-09-24 23:58:23 UTC) #4
jamesr
FYI this is similar to this code: http://qt.gitorious.org/qt/qt/commit/33bb996c83e541c26df632b3e8883a1190cc97f0/diffs which was linked to in http://code.google.com/p/chromium/issues/detail?id=122789.
8 years, 3 months ago (2012-09-25 00:05:22 UTC) #5
jamesr
Manually checked that this doesn't break tabstrip dragging in unity3d (which AFAIK doesn't use shapes). ...
8 years, 3 months ago (2012-09-25 00:44:39 UTC) #6
Elliot Glaysher
lgtm On 2012/09/25 00:44:39, jamesr wrote: > I'm guessing chrome/browser/ui/aura/tabs/dock_info_aurax11.cc needs the exact > same ...
8 years, 2 months ago (2012-09-25 16:33:45 UTC) #7
sadrul
LGTM with a comment: http://codereview.chromium.org/10990010/diff/8001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/10990010/diff/8001/ui/base/x/x11_util.cc#newcode329 ui/base/x/x11_util.cc:329: static bool is_shape_availability_cached = false; ...
8 years, 2 months ago (2012-09-25 16:37:20 UTC) #8
jamesr
On 2012/09/25 16:37:20, sadrul wrote: > LGTM with a comment: > > http://codereview.chromium.org/10990010/diff/8001/ui/base/x/x11_util.cc > File ...
8 years, 2 months ago (2012-09-25 20:09:46 UTC) #9
sadrul
On 2012/09/25 20:09:46, jamesr wrote: > On 2012/09/25 16:37:20, sadrul wrote: > > LGTM with ...
8 years, 2 months ago (2012-09-25 20:12:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/10990010/9002
8 years, 2 months ago (2012-09-27 08:03:38 UTC) #11
commit-bot: I haz the power
Presubmit check for 10990010-9002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-09-27 08:03:41 UTC) #12
jamesr
Scott, could you OWNERS review this change to chrome/browser/ui/..? I'm patching chrome/browser/ui/aura/ with the same ...
8 years, 2 months ago (2012-09-27 08:06:59 UTC) #13
sky
LGTM
8 years, 2 months ago (2012-09-27 15:39:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/10990010/9002
8 years, 2 months ago (2012-09-27 18:20:47 UTC) #15
commit-bot: I haz the power
8 years, 2 months ago (2012-09-27 20:53:53 UTC) #16
Change committed as 159111

Powered by Google App Engine
This is Rietveld 408576698