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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 1162883003: Fix Z-order for a bubble when it appears for inactive window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implement DesktopWindowTreeHostX11::StackAbove Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index 76818369d93dce38782d3d3315b9300762886c74..253829cb01e249dba04cb33dede6732100e6a0fe 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -533,7 +533,10 @@ void HWNDMessageHandler::SetRegion(HRGN region) {
}
void HWNDMessageHandler::StackAbove(HWND other_hwnd) {
- SetWindowPos(hwnd(), other_hwnd, 0, 0, 0, 0,
+ // Find a window above |other_hwnd|. If it exists, place hwnd() behind it.
sky 2015/06/05 15:27:41 This comment just describes what the code is doing
vasilii 2015/06/05 15:37:26 Done.
+ // Otherwise, make hwnd() a top window.
+ HWND next_window = GetNextWindow(other_hwnd, GW_HWNDPREV);
sky 2015/06/05 15:27:41 DCHECK(other_hwnd)
vasilii 2015/06/05 15:37:26 Done.
+ SetWindowPos(hwnd(), next_window ? next_window : HWND_TOP, 0, 0, 0, 0,
SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
}
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698