From 6516c19ec5e643371c22beef5dbbf7ad5e06e29e Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Mon, 15 Jun 2009 16:11:15 -0400 Subject: [PATCH] Ignore client messages sent to override-redirect windows If someone asks us to close, maximize, etc, an override-redirect window, just ignore the request. http://bugzilla.gnome.org/show_bug.cgi?id=582639 --- src/core/window.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index b135834a7..7b5e556da 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -5208,6 +5208,16 @@ meta_window_client_message (MetaWindow *window, display = window->display; + if (window->override_redirect) + { + /* Don't warn here: we could warn on any of the messages below, + * but we might also receive other client messages that are + * part of protocols we don't know anything about. So, silently + * ignoring is simplest. + */ + return FALSE; + } + if (event->xclient.message_type == display->atom__NET_CLOSE_WINDOW) {