diff --git a/src/backends/x11/meta-stage-x11.c b/src/backends/x11/meta-stage-x11.c index 77e96f97e..c5ed60b16 100644 --- a/src/backends/x11/meta-stage-x11.c +++ b/src/backends/x11/meta-stage-x11.c @@ -784,12 +784,16 @@ meta_stage_x11_translate_event (MetaStageX11 *stage_x11, g_debug ("Client message for stage, win:0x%x", (unsigned int) xevent->xany.window); - if (handle_wm_protocols_event (backend_x11, stage_x11, xevent)) + if (xevent->xclient.message_type == backend_x11->atom_WM_PROTOCOLS) { - event->any.type = CLUTTER_DELETE; - event->any.stage = stage; - res = TRUE; + if (handle_wm_protocols_event (backend_x11, stage_x11, xevent)) + { + event->any.type = CLUTTER_DELETE; + event->any.stage = stage; + res = TRUE; + } } + break; default: