From f7c595ff18a108fe9dc0ad620318b9ddf41932d2 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 29eee4d5c..6c5f4858c 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -5227,6 +5227,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) {