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
This commit is contained in:
Owen W. Taylor 2009-06-15 16:11:15 -04:00
parent 3d81a1e5ec
commit f7c595ff18

View File

@ -5227,6 +5227,16 @@ meta_window_client_message (MetaWindow *window,
display = window->display; 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 == if (event->xclient.message_type ==
display->atom__NET_CLOSE_WINDOW) display->atom__NET_CLOSE_WINDOW)
{ {