changeset 27616:213d9bc30b35

Use already "prefetched" atoms instead of calling XInternAtom each time. Patch by Julien Danjou [ julien danjou info ]
author reimar
date Sat, 20 Sep 2008 08:14:28 +0000
parents 9b25e0657341
children 226a78c5b2d9
files libvo/x11_common.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;