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

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 165123: On GTK, middle-click on the title bar (and the window frame in general) will... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 4 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/gtk/browser_window_gtk.cc
===================================================================
--- chrome/browser/gtk/browser_window_gtk.cc (revision 22722)
+++ chrome/browser/gtk/browser_window_gtk.cc (working copy)
@@ -1549,8 +1549,8 @@
return TRUE;
}
- // Handle left and right clicks. In particular, we care about clicks in the
- // custom frame border and clicks in the titlebar.
+ // Handle left, middle and right clicks. In particular, we care about clicks
+ // in the custom frame border and clicks in the titlebar.
GdkWindowEdge edge;
bool has_hit_edge = browser->GetWindowEdge(static_cast<int>(event->x),
static_cast<int>(event->y), &edge);
@@ -1587,6 +1587,9 @@
return TRUE;
}
}
+ } else if (event->button == 2) {
+ gdk_window_lower(GTK_WIDGET(browser->window_)->window);
CalebEgg_gmail.com 2009/08/07 09:09:38 Won't this need to be wrapped in if (has_hit_title
+ return TRUE;
} else if (event->button == 3) {
if (has_hit_titlebar) {
browser->titlebar_->ShowContextMenu();
« 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