[MPlayer-cvslog] r27648 - trunk/libvo/x11_common.c
reimar
subversion at mplayerhq.hu
Sat Sep 20 10:14:28 CEST 2008
Author: reimar
Date: Sat Sep 20 10:14:28 2008
New Revision: 27648
Log:
Use already "prefetched" atoms instead of calling XInternAtom each time.
Patch by Julien Danjou [ julien danjou info ]
Modified:
trunk/libvo/x11_common.c
Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c (original)
+++ trunk/libvo/x11_common.c Sat Sep 20 10:14:28 2008
@@ -140,14 +140,11 @@ void vo_x11_ewmh_fullscreen(int action)
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;
More information about the MPlayer-cvslog
mailing list