From: Dana Jansens Date: Thu, 7 Jun 2007 22:40:08 +0000 (+0000) Subject: use the gdk atom function X-Git-Tag: release-2.0.2~40 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=e9b9db85c5a6665a86a3f22420579a112a8706d2;p=dana%2Fobconf.git use the gdk atom function --- diff --git a/src/desktops.c b/src/desktops.c index 063b4d9..b45faa4 100644 --- a/src/desktops.c +++ b/src/desktops.c @@ -190,7 +190,7 @@ static void desktops_write_names() /* make openbox re-set the property */ XDeleteProperty(GDK_DISPLAY(), GDK_ROOT_WINDOW(), - XInternAtom(GDK_DISPLAY(), "_NET_DESKTOP_NAMES", FALSE)); + gdk_x11_get_xatom_by_name("_NET_DESKTOP_NAMES")); } static void desktops_write_number() @@ -200,9 +200,8 @@ static void desktops_write_number() tree_set_int("desktops/number", num_desktops); ce.xclient.type = ClientMessage; - ce.xclient.message_type = XInternAtom(GDK_DISPLAY(), - "_NET_NUMBER_OF_DESKTOPS", - FALSE); + ce.xclient.message_type = + gdk_x11_get_xatom_by_name("_NET_NUMBER_OF_DESKTOPS"); ce.xclient.display = GDK_DISPLAY(); ce.xclient.window = GDK_ROOT_WINDOW(); ce.xclient.format = 32;