kranewm

An ICCCM & EWMH compliant X11 reparenting, dynamic window manager, written in C++
git clone git clone git://git.deurzen.net/kranewm.git
Log | Files | Refs | LICENSE

commit 3be42120afa25b0efb9dcb870422ae5eb757a87f
parent 3d085575dd5dbfa8bba513f6e1eb9a3553b34c9b
Author: deurzen <m.deurzen@tum.de>
Date:   Tue, 21 Sep 2021 04:01:37 +0200

refactors code

Diffstat:
Msrc/core/context.hh | 2--
Msrc/core/partition.hh | 2--
Msrc/core/workspace.hh | 13++++---------
3 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/src/core/context.hh b/src/core/context.hh @@ -13,8 +13,6 @@ public: m_name(name) {} - ~Context() {} - Index index() const { diff --git a/src/core/partition.hh b/src/core/partition.hh @@ -12,8 +12,6 @@ public: m_index(index) {} - ~Partition() {} - winsys::Screen& screen() { diff --git a/src/core/workspace.hh b/src/core/workspace.hh @@ -32,8 +32,6 @@ public: m_client_region(std::nullopt) {} - ~Buffer() {} - bool is_occupied() const; Client_ptr client() const; @@ -60,7 +58,6 @@ class Scratchpad final { public: Scratchpad() {} - ~Scratchpad() {} private: @@ -100,10 +97,10 @@ public: criterium() const { switch (m_tag) { - case ClientSelectorTag::AtFirst: return SelectionCriterium::AtFirst; - case ClientSelectorTag::AtLast: return SelectionCriterium::AtLast; - case ClientSelectorTag::AtMain: return SelectionCriterium::AtMain; - case ClientSelectorTag::AtIndex: return SelectionCriterium::AtIndex; + case ClientSelectorTag::AtFirst: return SelectionCriterium::AtFirst; + case ClientSelectorTag::AtLast: return SelectionCriterium::AtLast; + case ClientSelectorTag::AtMain: return SelectionCriterium::AtMain; + case ClientSelectorTag::AtIndex: return SelectionCriterium::AtIndex; default: Util::die("no associated criterium"); } @@ -139,8 +136,6 @@ public: m_disowned({}, true) {} - ~Workspace() {} - bool empty() const; bool contains(Client_ptr) const;