diff options
author | Roy Zhang <[email protected]> | 2015-12-22 21:52:27 +0800 |
---|---|---|
committer | Roy Zhang <[email protected]> | 2015-12-22 21:52:27 +0800 |
commit | b2ac477cd5b714bc2a7e7370923dd95dca8d18a1 (patch) | |
tree | de8a0a779cd883075aa131fe0a2890a195883624 /typing-break/main.c | |
parent | 3dc12cc51871cd495ac485a1363f29bb9c21cf4e (diff) | |
download | mate-control-center-b2ac477cd5b714bc2a7e7370923dd95dca8d18a1.tar.bz2 mate-control-center-b2ac477cd5b714bc2a7e7370923dd95dca8d18a1.tar.xz |
Use GDK convenient function
Use gdk_x11_get_xatom_by_name (), and take advantage of GDK's caches.
Diffstat (limited to 'typing-break/main.c')
-rw-r--r-- | typing-break/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/typing-break/main.c b/typing-break/main.c index b0b50405..2c3108b5 100644 --- a/typing-break/main.c +++ b/typing-break/main.c @@ -41,7 +41,7 @@ have_tray (void) selection_atom_name = g_strdup_printf ("_NET_SYSTEM_TRAY_S%d", XScreenNumberOfScreen (xscreen)); - selection_atom = XInternAtom (DisplayOfScreen (xscreen), selection_atom_name, False); + selection_atom = gdk_x11_get_xatom_by_name (selection_atom_name); g_free (selection_atom_name); if (XGetSelectionOwner (DisplayOfScreen (xscreen), selection_atom)) { |