Skip to content

Commit b6434dd

Browse files
committed
yet another cleanup
1 parent 07329d8 commit b6434dd

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/util.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ WindowPosSize::WindowPosSize(int x, int y, int width, int height)
1616

1717
}
1818

19+
bool WindowPosSize::operator==(const WindowPosSize& other) {
20+
return (x == other.x) && (y == other.y) && (width == other.width) && (height == other.height);
21+
}
22+
23+
bool WindowPosSize::operator!=(const WindowPosSize& other) {
24+
return (x != other.x) || (y != other.y) || (width != other.width) || (height != other.height);
25+
}
26+
27+
28+
1929
namespace wm_utils {
2030

2131
pair<short, short> GetDisplayResolution(Display* dpy, Window root) {

src/util.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ struct WindowPosSize {
3333

3434
int x, y;
3535
int width, height;
36+
37+
bool operator==(const WindowPosSize& other);
38+
bool operator!=(const WindowPosSize& other);
3639
};
3740

3841
namespace wm_utils {

src/wm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ void WindowManager::Run() {
161161
}
162162

163163
void WindowManager::Stop() {
164-
cookie_->WriteToFile();
165164
system("pkill X");
166165
}
167166

0 commit comments

Comments
 (0)