From 572c75a9e5d7da0778bfdda90327243c8ac560d2 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 30 Apr 2015 03:38:58 +0000 Subject: [PATCH] avoid warning with some java apps sending an odd message to the tray git-svn-id: https://xpra.org/svn/Xpra/trunk@9198 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/x11/gtk_x11/tray.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xpra/x11/gtk_x11/tray.py b/src/xpra/x11/gtk_x11/tray.py index 71c18a10c3..660aef2b73 100644 --- a/src/xpra/x11/gtk_x11/tray.py +++ b/src/xpra/x11/gtk_x11/tray.py @@ -62,6 +62,9 @@ #TRANSPARENCY = False TRANSPARENCY = True +#Java can send this message to the tray (no idea why): +IGNORED_MESSAGE_TYPES = ("_GTK_LOAD_ICONTHEMES", ) + def get_tray_window(tray_window): return tray_window.get_data(XPRA_TRAY_WINDOW_PROPERTY) @@ -177,6 +180,8 @@ def do_xpra_client_message_event(self, event): elif event.message_type=="_NET_SYSTEM_TRAY_MESSAGE_DATA": assert event.format==8 log.info("tray message data - not handled yet!") + elif event.message_type in IGNORED_MESSAGE_TYPES: + log("do_xpra_client_message_event(%s) in ignored message type list", event) else: log.info("do_xpra_client_message_event(%s)", event)