summaryrefslogtreecommitdiff
path: root/src/x.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/x.hh')
-rw-r--r--src/x.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/x.hh b/src/x.hh
index 00751c2..27ac745 100644
--- a/src/x.hh
+++ b/src/x.hh
@@ -247,7 +247,7 @@ class Atoms {
public:
virtual ~Atoms() {}
- static Atoms* create(shared_connection const& conn);
+ static std::unique_ptr<Atoms> create(shared_connection const& conn);
virtual void preload(std::string const& name, bool create = true) = 0;
virtual xcb_atom_t get(std::string const& name, bool create = true) = 0;
@@ -262,7 +262,8 @@ class Ewmh {
public:
virtual ~Ewmh() {}
- static Ewmh* create(shared_connection const& conn, int screen);
+ static std::unique_ptr<Ewmh> create(
+ shared_connection const& conn, int screen);
virtual xcb_ewmh_connection_t* conn() = 0;
virtual bool supported(xcb_atom_t atom) = 0;