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

Issue 137533006: Call XSetInputFocus after XRaiseWindow when activating. (Closed)

Created:
6 years, 11 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 11 months ago
Reviewers:
Elliot Glaysher, sadrul
CC:
chromium-reviews, tfarina, ben+views_chromium.org, chrome-apps-syd-reviews_chromium.org, Matt Giuca
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Call XSetInputFocus after XRaiseWindow when activating. XRaiseWindow does not reliably set the focus. GTK code is doing the same thing, see gdk/x11/gdkwindow-x11.c. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244779 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245231

Patch Set 1 #

Patch Set 2 : call only if the window is viewable #

Total comments: 5

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -7 lines) Patch
M ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_x11_unittest.cc View 1 2 1 chunk +13 lines, -7 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_desktop_handler.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_desktop_handler.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mlamouri (slow - plz ping)
Note that this solves issues I have with my inactive window patch.
6 years, 11 months ago (2014-01-14 00:29:07 UTC) #1
Elliot Glaysher
lgtm
6 years, 11 months ago (2014-01-14 00:38:51 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/137533006/1
6 years, 11 months ago (2014-01-14 01:00:39 UTC) #3
commit-bot: I haz the power
Change committed as 244779
6 years, 11 months ago (2014-01-14 18:53:03 UTC) #4
mlamouri (slow - plz ping)
Unfortunately, this was not passing views_unittests [I guess it was but somehow flaky otherwise it ...
6 years, 11 months ago (2014-01-14 23:59:04 UTC) #5
Elliot Glaysher
Redirecting to sadrul@ since I obviously got this wrong.
6 years, 11 months ago (2014-01-15 00:03:35 UTC) #6
sadrul
https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc File ui/views/widget/desktop_aura/x11_desktop_handler.cc (right): https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc#newcode103 ui/views/widget/desktop_aura/x11_desktop_handler.cc:103: if (attributes.map_state == IsViewable) Is this only ever called ...
6 years, 11 months ago (2014-01-15 19:23:49 UTC) #7
mlamouri (slow - plz ping)
PTAL https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc File ui/views/widget/desktop_aura/x11_desktop_handler.cc (right): https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc#newcode103 ui/views/widget/desktop_aura/x11_desktop_handler.cc:103: if (attributes.map_state == IsViewable) On 2014/01/15 19:23:50, sadrul ...
6 years, 11 months ago (2014-01-15 23:15:18 UTC) #8
sadrul
https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc File ui/views/widget/desktop_aura/x11_desktop_handler.cc (right): https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc#newcode103 ui/views/widget/desktop_aura/x11_desktop_handler.cc:103: if (attributes.map_state == IsViewable) On 2014/01/15 23:15:18, Mounir Lamouri ...
6 years, 11 months ago (2014-01-15 23:18:53 UTC) #9
mlamouri (slow - plz ping)
https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc File ui/views/widget/desktop_aura/x11_desktop_handler.cc (right): https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc#newcode103 ui/views/widget/desktop_aura/x11_desktop_handler.cc:103: if (attributes.map_state == IsViewable) On 2014/01/15 23:18:53, sadrul wrote: ...
6 years, 11 months ago (2014-01-15 23:27:49 UTC) #10
sadrul
https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc File ui/views/widget/desktop_aura/x11_desktop_handler.cc (right): https://codereview.chromium.org/137533006/diff/290001/ui/views/widget/desktop_aura/x11_desktop_handler.cc#newcode103 ui/views/widget/desktop_aura/x11_desktop_handler.cc:103: if (attributes.map_state == IsViewable) On 2014/01/15 23:27:50, Mounir Lamouri ...
6 years, 11 months ago (2014-01-15 23:31:34 UTC) #11
mlamouri (slow - plz ping)
sadrul@, I ended up finding why the test was failing for me: creating a window ...
6 years, 11 months ago (2014-01-16 02:36:39 UTC) #12
sadrul
Nice! This LGTM Thanks for digging into the issue.
6 years, 11 months ago (2014-01-16 02:42:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/137533006/380001
6 years, 11 months ago (2014-01-16 04:08:29 UTC) #14
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 17:34:03 UTC) #15
Message was sent while issue was closed.
Change committed as 245231

Powered by Google App Engine
This is Rietveld 408576698