Fix compilation

Fixes #32
This commit is contained in:
outfoxxed 2023-09-14 00:59:21 -07:00
parent ee32586f8c
commit b935aafa32
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
3 changed files with 8 additions and 8 deletions

6
flake.lock generated
View file

@ -9,11 +9,11 @@
"xdph": "xdph"
},
"locked": {
"lastModified": 1694554628,
"narHash": "sha256-ZqTV9cyrlGWLPl/fEEN1iaQ6ioSSTOiMCshgIpRSfuM=",
"lastModified": 1694613741,
"narHash": "sha256-8lsnX497CIKn0M2KatYtDKzRyccxQfEpuQkBO0+tKVY=",
"owner": "hyprwm",
"repo": "Hyprland",
"rev": "b0d5e4008b96f2cdbb6f6c2449c790d921d1546b",
"rev": "84f8f4d77ddf4b6c772459584234e1f8f9d5f2ce",
"type": "github"
},
"original": {

View file

@ -57,17 +57,17 @@ bool performContainment(Hy3Node& node, bool contained, CWindow* window) {
return false;
}
void Hy3Layout::onWindowCreated(CWindow* window) {
void Hy3Layout::onWindowCreated(CWindow* window, eDirection direction) {
for (auto& node: this->nodes) {
if (node.parent == nullptr && performContainment(node, false, window)) {
return;
}
}
IHyprLayout::onWindowCreated(window);
IHyprLayout::onWindowCreated(window, direction);
}
void Hy3Layout::onWindowCreatedTiling(CWindow* window) {
void Hy3Layout::onWindowCreatedTiling(CWindow* window, eDirection) {
hy3_log(
TRACE,
"onWindowCreatedTiling called with window {:x} (floating: {})",

View file

@ -66,8 +66,8 @@ enum class ExpandFullscreenOption {
class Hy3Layout: public IHyprLayout {
public:
virtual void onWindowCreated(CWindow*);
virtual void onWindowCreatedTiling(CWindow*);
virtual void onWindowCreated(CWindow*, eDirection = DIRECTION_DEFAULT);
virtual void onWindowCreatedTiling(CWindow*, eDirection = DIRECTION_DEFAULT);
virtual void onWindowRemovedTiling(CWindow*);
virtual void onWindowFocusChange(CWindow*);
virtual bool isWindowTiled(CWindow*);