Skip to content

Commit

Permalink
fix(monitor handling): don't apply layout on monitor connection. Seem…
Browse files Browse the repository at this point in the history
…s to fix #2
  • Loading branch information
levnikmyskin committed Oct 11, 2023
1 parent 7d62853 commit a9d3089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hyprload.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[virtual-desktops]
description = "Virtual desktops"
version = "2.0b"
version = "2.0.1b"
author = "LevMyskin"

[virtual-desktops.build]
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void onMonitorRemoved(void*, std::any val) {

void onMonitorAdded(void*, std::any val) {
manager->invalidateAllLayouts();
manager->applyCurrentVDesk();
needsReloading = true;
}

void onTick(void*, std::any) {
Expand Down Expand Up @@ -206,5 +206,5 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {

// Initialize first vdesk
HyprlandAPI::reloadConfig();
return {"virtual-desktops", "Virtual desktop like workspaces", "LevMyskin", "2.0b"};
return {"virtual-desktops", "Virtual desktop like workspaces", "LevMyskin", "2.0.1b"};
}

0 comments on commit a9d3089

Please sign in to comment.