]> Dogcows Code - chaz/openbox/blobdiff - otk/appwidget.cc
use otk::Property to get the atom values
[chaz/openbox] / otk / appwidget.cc
index ee5428838185685beacc2869ca93b0e5fb9d20d8..d1ae736959e4a3507c0ecba69c43df290ef9167c 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "appwidget.hh"
 #include "application.hh"
+#include "property.hh"
 
 extern "C" {
 #include <X11/Xlib.h>
@@ -20,8 +21,8 @@ AppWidget::AppWidget(Application *app, Direction direction,
 {
   assert(app);
 
-  _wm_protocols = XInternAtom(**display, "WM_PROTOCOLS", false);
-  _wm_delete = XInternAtom(**display, "WM_DELETE_WINDOW", false);
+  _wm_protocols = Property::atoms.wm_protocols;
+  _wm_delete = Property::atoms.wm_protocols;
 
   // set WM Protocols on the window
   Atom protocols[2];
This page took 0.022798 seconds and 4 git commands to generate.