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

Issue 203027: Linux: avoid browser windows moving around by the size of WM decorations over restart. (Closed)

Created:
11 years, 3 months ago by Mike Mammarella
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Linux: avoid browser windows moving around by the size of WM decorations over restart. Use a debounce timer to get the true window position shortly after the last reconfigure event is delivered, and save that. BUG=18771 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26617

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -4 lines) Patch
M chrome/browser/gtk/browser_window_gtk.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 1 3 chunks +31 lines, -4 lines 4 comments Download

Messages

Total messages: 23 (0 generated)
Mike Mammarella
11 years, 3 months ago (2009-09-11 00:55:25 UTC) #1
tony
Where in the code are x & y used that is causing the positioning to ...
11 years, 3 months ago (2009-09-11 18:11:23 UTC) #2
Evan Martin
Tony is right -- we shouldn't be using these coordinates. (I am also concerned that ...
11 years, 3 months ago (2009-09-11 18:14:37 UTC) #3
Mike Mammarella
Looks like ultimately it's being caused by the call to Browser::set_override_bounds() in SessionRestoreImpl::OnGotSession(). You have ...
11 years, 3 months ago (2009-09-11 18:40:24 UTC) #4
tony
On 2009/09/11 18:40:24, Mike Mammarella wrote: > Looks like ultimately it's being caused by the ...
11 years, 3 months ago (2009-09-11 18:48:21 UTC) #5
Evan Martin
On 2009/09/11 18:48:21, tony wrote: > On 2009/09/11 18:40:24, Mike Mammarella wrote: > > Looks ...
11 years, 3 months ago (2009-09-11 18:51:21 UTC) #6
tony
On 2009/09/11 18:51:21, Evan Martin wrote: > Do we also have a bug where dropping ...
11 years, 3 months ago (2009-09-11 18:58:07 UTC) #7
Evan Martin
On 2009/09/11 18:58:07, tony wrote: > On 2009/09/11 18:51:21, Evan Martin wrote: > > Do ...
11 years, 3 months ago (2009-09-11 19:04:01 UTC) #8
tony
Oh, what I'm saying is that session restore probably shouldn't be positioning windows since we ...
11 years, 3 months ago (2009-09-11 19:16:12 UTC) #9
Mike Mammarella
11 years, 3 months ago (2009-09-11 21:06:21 UTC) #10
tony
http://codereview.chromium.org/203027/diff/1004/4 File chrome/browser/sessions/session_restore.cc (right): http://codereview.chromium.org/203027/diff/1004/4#newcode292 Line 292: browser->set_override_bounds((*i)->bounds); Can we just not call set_override_bounds on ...
11 years, 3 months ago (2009-09-11 23:44:15 UTC) #11
Mike Mammarella
That's what I did in patch set 2, but then if you have more than ...
11 years, 3 months ago (2009-09-11 23:46:54 UTC) #12
tony
On 2009/09/11 23:46:54, Mike Mammarella wrote: > That's what I did in patch set 2, ...
11 years, 3 months ago (2009-09-12 00:46:43 UTC) #13
Mike Mammarella
For a single window, or multiple windows? I just tried it again to be sure, ...
11 years, 3 months ago (2009-09-12 01:01:27 UTC) #14
tony
On 2009/09/12 01:01:27, Mike Mammarella wrote: > For a single window, or multiple windows? I ...
11 years, 3 months ago (2009-09-12 01:09:12 UTC) #15
Mike Mammarella
On 2009/09/12 01:09:12, tony wrote: > Ah yes, you are right. LGTM, although I feel ...
11 years, 3 months ago (2009-09-12 01:27:11 UTC) #16
Evan Stade
so, the uses of override_bounds_ that I know of: - session restore - dragging/dropping tabs ...
11 years, 3 months ago (2009-09-12 01:43:54 UTC) #17
tony
On 2009/09/12 01:43:54, Evan Stade wrote: > so, the uses of override_bounds_ that I know ...
11 years, 3 months ago (2009-09-14 17:09:43 UTC) #18
Mike Mammarella
So over the weekend I was talking with a friend of mine who pointed out ...
11 years, 3 months ago (2009-09-14 17:41:57 UTC) #19
Evan Martin
On 2009/09/14 17:41:57, Mike Mammarella wrote: > So over the weekend I was talking with ...
11 years, 3 months ago (2009-09-14 19:23:14 UTC) #20
Mike Mammarella
Decided against XSMP. Here's one more try at a good solution.
11 years, 3 months ago (2009-09-18 01:41:37 UTC) #21
tony
I like this change better. It's trying to make sure we save the right bounds ...
11 years, 3 months ago (2009-09-18 18:45:12 UTC) #22
Mike Mammarella
11 years, 3 months ago (2009-09-18 21:18:39 UTC) #23
http://codereview.chromium.org/203027/diff/10001/11002
File chrome/browser/gtk/browser_window_gtk.cc (right):

http://codereview.chromium.org/203027/diff/10001/11002#newcode128
Line 128: // When a window is moved or resized, GTK will call
MainWindowConfigured below.
On 2009/09/18 18:45:12, tony wrote:
> Nit: I expect this comment to either be in the header or near the where we
start
> the timer.

Done.

http://codereview.chromium.org/203027/diff/10001/11002#newcode1387
Line 1387: bounds_.set_origin(origin);
On 2009/09/18 18:45:12, tony wrote:
> Should we update restored_bounds_ too?
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698