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

Unified Diff: chrome/common/gtk_util.cc

Issue 149028: Two tab dragging fixes for various window managers:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | chrome/common/x11_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gtk_util.cc
===================================================================
--- chrome/common/gtk_util.cc (revision 19271)
+++ chrome/common/gtk_util.cc (working copy)
@@ -4,10 +4,11 @@
#include "chrome/common/gtk_util.h"
-#include <cstdarg>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
+#include <cstdarg>
+
#include "app/l10n_util.h"
#include "base/linux_util.h"
#include "base/logging.h"
@@ -233,8 +234,11 @@
GList* stack = gdk_screen_get_window_stack(screen);
if (!stack) {
// Window Manager doesn't support _NET_CLIENT_LIST_STACKING, so fall back
- // to old school enumeration of all X windows.
- x11_util::EnumerateAllWindows(delegate);
+ // to old school enumeration of all X windows. Some WMs parent 'top-level'
+ // windows in unnamed actual top-level windows (ion WM), so extend the
+ // search depth to all children of top-level windows.
+ const int kMaxSearchDepth = 1;
+ x11_util::EnumerateAllWindows(delegate, kMaxSearchDepth);
return;
}
« no previous file with comments | « no previous file | chrome/common/x11_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698