diff options
Diffstat (limited to 'src/x.hh')
| -rw-r--r-- | src/x.hh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |
