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

Issue 1896363004: x11: Don't wait on a MapNotify on override-redirect windows. (Closed)

Created:
4 years, 8 months ago by Elliot Glaysher
Modified:
4 years, 7 months ago
Reviewers:
danakj, Tom Anderson
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

x11: Don't wait on a MapNotify on override-redirect windows. Some window managers do not send MapNotify on override-redirect windows. Enlightenment doesn't send one, XFCE does, and I don't know which behaviour is more common. This makes mapping resilient against whether we would have received a MapNotify message on override-redirect window. On override-redirect windows, we immediately trigger the code that would run in the future MapNotify handler, and ignore it in the future MapNotify message if it is already run. BUG=381732 Committed: https://crrev.com/28bb70402ddc4e68963f536388730c63598f8d65 Cr-Commit-Position: refs/heads/master@{#389572}

Patch Set 1 #

Patch Set 2 : Add is_visible_ bit. #

Patch Set 3 : Mark the window as unmapped as soon as we call Hide. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -24 lines) Patch
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 2 2 chunks +10 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 6 chunks +47 lines, -24 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Elliot Glaysher
Sadly, we still need to mark windows as hidden as synchronous due to views code ...
4 years, 8 months ago (2016-04-25 21:03:02 UTC) #3
danakj
ps override redirect is evil :) and there are window types to say things like ...
4 years, 8 months ago (2016-04-25 21:29:41 UTC) #4
danakj
On 2016/04/25 21:29:41, danakj wrote: > ps override redirect is evil :) and there are ...
4 years, 8 months ago (2016-04-25 21:30:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896363004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896363004/40001
4 years, 8 months ago (2016-04-25 21:38:15 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-25 21:45:01 UTC) #8
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/28bb70402ddc4e68963f536388730c63598f8d65 Cr-Commit-Position: refs/heads/master@{#389572}
4 years, 8 months ago (2016-04-25 21:46:39 UTC) #10
Elliot Glaysher
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1931583002/ by erg@chromium.org. ...
4 years, 7 months ago (2016-04-27 18:14:54 UTC) #11
danakj
On 2016/04/27 18:14:54, Elliot Glaysher wrote: > A revert of this CL (patchset #3 id:40001) ...
4 years, 7 months ago (2016-04-27 18:51:05 UTC) #12
danakj
4 years, 7 months ago (2016-04-27 18:51:33 UTC) #13
Message was sent while issue was closed.
On 2016/04/27 18:51:05, danakj wrote:
> On 2016/04/27 18:14:54, Elliot Glaysher wrote:
> > A revert of this CL (patchset #3 id:40001) has been created in
> > https://codereview.chromium.org/1931583002/ by mailto:erg@chromium.org.
> > 
> > The reason for reverting is: Patch suspected to cause blank sublist on
menus.
> > 
> > BUG=606661.
> 
> I guess we need to wait for MapNotify before rendering if it's going to come,
> but not if it's not? What a story.

One possibility is to damage the window when we hear it maps so we re-render it
or something. Ugh :/

Powered by Google App Engine
This is Rietveld 408576698