diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-20 08:14:28 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-20 08:14:28 +0000 |
commit | 0643fde0c3e40d8be813c890d5009c9d878ea83e (patch) | |
tree | 0886f8a6816ec9cace3842228b90cd3b0ec6a5cf /libvo | |
parent | 245b0aadab7d2d953e85a963639558db4603ef7d (diff) | |
download | mpv-0643fde0c3e40d8be813c890d5009c9d878ea83e.tar.bz2 mpv-0643fde0c3e40d8be813c890d5009c9d878ea83e.tar.xz |
Use already "prefetched" atoms instead of calling XInternAtom each time.
Patch by Julien Danjou [ julien danjou info ]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27648 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/x11_common.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 65b88cb307..4dac528361 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -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; |