summaryrefslogtreecommitdiff
path: root/typing-break
diff options
context:
space:
mode:
authorRoy Zhang <[email protected]>2015-12-22 21:52:27 +0800
committerRoy Zhang <[email protected]>2015-12-22 21:52:27 +0800
commitb2ac477cd5b714bc2a7e7370923dd95dca8d18a1 (patch)
treede8a0a779cd883075aa131fe0a2890a195883624 /typing-break
parent3dc12cc51871cd495ac485a1363f29bb9c21cf4e (diff)
downloadmate-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')
-rw-r--r--typing-break/main.c2
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)) {