# HG changeset patch # User reimar # Date 1221898468 0 # Node ID 213d9bc30b35798c07ff06f0d3863c51195d6789 # Parent 9b25e0657341178580c40aace1c23d60473d6097 Use already "prefetched" atoms instead of calling XInternAtom each time. Patch by Julien Danjou [ julien danjou info ] diff -r 9b25e0657341 -r 213d9bc30b35 libvo/x11_common.c --- a/libvo/x11_common.c Sat Sep 20 01:53:45 2008 +0000 +++ b/libvo/x11_common.c Sat Sep 20 08:14:28 2008 +0000 @@ -140,14 +140,11 @@ xev.xclient.type = ClientMessage; xev.xclient.serial = 0; xev.xclient.send_event = True; - xev.xclient.message_type = XInternAtom(mDisplay, - "_NET_WM_STATE", False); + xev.xclient.message_type = XA_NET_WM_STATE; xev.xclient.window = vo_window; xev.xclient.format = 32; xev.xclient.data.l[0] = action; - xev.xclient.data.l[1] = XInternAtom(mDisplay, - "_NET_WM_STATE_FULLSCREEN", - False); + xev.xclient.data.l[1] = XA_NET_WM_STATE_FULLSCREEN; xev.xclient.data.l[2] = 0; xev.xclient.data.l[3] = 0; xev.xclient.data.l[4] = 0;