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

Issue 10542134: Rely on losing focus, not on becoming unfullscreened, to destroy a fullscreen window. (Closed)

Created:
8 years, 6 months ago by jbauman
Modified:
8 years, 6 months ago
Reviewers:
jam, Daniel Erat, piman
CC:
chromium-reviews, yusukes+watch_chromium.org, jochen+watch-content_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Rely on losing focus, not on becoming unfullscreened, to destroy a fullscreen window. On metacity we get spurious unfullscreen events that were preventing the window from going fullscreen, and alt-tab didn't cause the window to unfullscreen, so it wasn't destroyed by alt-tab. We should ignore the unfullscreen event and instead rely on FocusOut to determine when to destroy the window. BUG=117021 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143306

Patch Set 1 #

Patch Set 2 : use _NET_ACTIVE_WINDOW #

Total comments: 3

Patch Set 3 : Fix nits #

Total comments: 1

Patch Set 4 : also make made_active_ work for popups #

Total comments: 1

Patch Set 5 : fix asterisk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -28 lines) Patch
M content/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 3 4 5 chunks +10 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 3 4 7 chunks +18 lines, -22 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
jbauman
8 years, 6 months ago (2012-06-13 02:30:34 UTC) #1
Daniel Erat
What triggers OnFocusOut() getting called? Is it X FocusOut events, or changes to the _NET_ACTIVE_WINDOW ...
8 years, 6 months ago (2012-06-13 02:40:22 UTC) #2
jbauman
On 2012/06/13 02:40:22, Daniel Erat wrote: > What triggers OnFocusOut() getting called? Is it X ...
8 years, 6 months ago (2012-06-13 18:55:30 UTC) #3
Daniel Erat
http://codereview.chromium.org/10542134/diff/3002/content/browser/renderer_host/render_widget_host_view_gtk.cc File content/browser/renderer_host/render_widget_host_view_gtk.cc (right): http://codereview.chromium.org/10542134/diff/3002/content/browser/renderer_host/render_widget_host_view_gtk.cc#newcode49 content/browser/renderer_host/render_widget_host_view_gtk.cc:49: #include "ui/base/x/active_window_watcher_x.h" nit: fix alphabetization http://codereview.chromium.org/10542134/diff/3002/content/browser/renderer_host/render_widget_host_view_gtk.cc#newcode890 content/browser/renderer_host/render_widget_host_view_gtk.cc:890: ui::ActiveWindowWatcherX::RemoveObserver(this); you're ...
8 years, 6 months ago (2012-06-13 19:04:09 UTC) #4
jbauman
On 2012/06/13 19:04:09, Daniel Erat wrote: > http://codereview.chromium.org/10542134/diff/3002/content/browser/renderer_host/render_widget_host_view_gtk.cc > File content/browser/renderer_host/render_widget_host_view_gtk.cc (right): > > http://codereview.chromium.org/10542134/diff/3002/content/browser/renderer_host/render_widget_host_view_gtk.cc#newcode49 ...
8 years, 6 months ago (2012-06-13 19:07:10 UTC) #5
Daniel Erat
https://chromiumcodereview.appspot.com/10542134/diff/9002/content/browser/renderer_host/render_widget_host_view_gtk.cc File content/browser/renderer_host/render_widget_host_view_gtk.cc (right): https://chromiumcodereview.appspot.com/10542134/diff/9002/content/browser/renderer_host/render_widget_host_view_gtk.cc#newcode578 content/browser/renderer_host/render_widget_host_view_gtk.cc:578: made_active_(false), actually, having this variable contain false information unless ...
8 years, 6 months ago (2012-06-13 19:18:43 UTC) #6
jbauman
On 2012/06/13 19:18:43, Daniel Erat wrote: > https://chromiumcodereview.appspot.com/10542134/diff/9002/content/browser/renderer_host/render_widget_host_view_gtk.cc > File content/browser/renderer_host/render_widget_host_view_gtk.cc (right): > > https://chromiumcodereview.appspot.com/10542134/diff/9002/content/browser/renderer_host/render_widget_host_view_gtk.cc#newcode578 ...
8 years, 6 months ago (2012-06-13 19:23:13 UTC) #7
Daniel Erat
On 2012/06/13 19:23:13, jbauman wrote: > On 2012/06/13 19:18:43, Daniel Erat wrote: > > > ...
8 years, 6 months ago (2012-06-13 19:25:17 UTC) #8
jbauman
On 2012/06/13 19:25:17, Daniel Erat wrote: > On 2012/06/13 19:23:13, jbauman wrote: > > On ...
8 years, 6 months ago (2012-06-13 20:18:22 UTC) #9
jbauman
On 2012/06/13 20:18:22, jbauman wrote: > On 2012/06/13 19:25:17, Daniel Erat wrote: > > On ...
8 years, 6 months ago (2012-06-19 06:41:34 UTC) #10
Daniel Erat
lgtm http://codereview.chromium.org/10542134/diff/6003/content/browser/renderer_host/render_widget_host_view_gtk.h File content/browser/renderer_host/render_widget_host_view_gtk.h (right): http://codereview.chromium.org/10542134/diff/6003/content/browser/renderer_host/render_widget_host_view_gtk.h#newcode133 content/browser/renderer_host/render_widget_host_view_gtk.h:133: virtual void ActiveWindowChanged(GdkWindow *active_window) OVERRIDE; nit: move asterisk ...
8 years, 6 months ago (2012-06-19 13:53:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/10542134/14002
8 years, 6 months ago (2012-06-19 23:38:20 UTC) #12
commit-bot: I haz the power
Presubmit check for 10542134-14002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-19 23:38:22 UTC) #13
jbauman
Oops, adding jam for OWNERS review.
8 years, 6 months ago (2012-06-19 23:50:45 UTC) #14
jam
lgtm
8 years, 6 months ago (2012-06-20 16:16:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/10542134/14002
8 years, 6 months ago (2012-06-20 21:26:11 UTC) #16
commit-bot: I haz the power
Change committed as 143306
8 years, 6 months ago (2012-06-21 00:02:18 UTC) #17
yzshen1
On 2012/06/21 00:02:18, I haz the power (commit-bot) wrote: > Change committed as 143306 Hi, ...
8 years, 6 months ago (2012-06-22 16:41:32 UTC) #18
jbauman
8 years, 6 months ago (2012-06-22 19:08:15 UTC) #19
On 2012/06/22 16:41:32, yzshen1 wrote:
> On 2012/06/21 00:02:18, I haz the power (commit-bot) wrote:
> > Change committed as 143306
> 
> Hi, John.
> With this change, we have different behavior on different platform, right? At
> least on Windows, we still rely on being unfullscreened to destroy the window.
> (I don't know about Mac.)
> 
> IMHO, such difference should be avoided. What do you think?

In practice, for me the behavior is now exactly the same on Windows and Linux.
The same events that cause an unfullscreen on Windows cause an unfocus on Linux.

Powered by Google App Engine
This is Rietveld 408576698