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

Unified Diff: chrome/browser/ui/gtk/panels/panel_gtk.cc

Issue 16294002: Make docked panel always on top for Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/panels/panel_gtk.cc
diff --git a/chrome/browser/ui/gtk/panels/panel_gtk.cc b/chrome/browser/ui/gtk/panels/panel_gtk.cc
index 8118748bdcf33b2eec67e8dc7c3fce646c29be54..6e8ded67f81a154aaba69bd10a8ca9c39d3ab65c 100644
--- a/chrome/browser/ui/gtk/panels/panel_gtk.cc
+++ b/chrome/browser/ui/gtk/panels/panel_gtk.cc
@@ -316,6 +316,7 @@ void PanelGtk::Init() {
gtk_widget_show(window_container_);
ConnectAccelerators();
+ SetPanelAlwaysOnTop(always_on_top_);
}
void PanelGtk::SetWindowCornerStyle(panel::CornerStyle corner_style) {
@@ -1006,8 +1007,6 @@ bool PanelGtk::IsPanelAlwaysOnTop() const {
}
void PanelGtk::SetPanelAlwaysOnTop(bool on_top) {
- if (always_on_top_ == on_top)
- return;
always_on_top_ = on_top;
gtk_window_set_keep_above(window_, on_top);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698