Skip to content

Commit

Permalink
avoid warning with some java apps sending an odd message to the tray
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@9198 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 30, 2015
1 parent 3fc8ddc commit 572c75a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xpra/x11/gtk_x11/tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 572c75a

Please sign in to comment.