mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-25 18:59:48 +01:00
no unmap saving in config
This commit is contained in:
parent
be9fecd545
commit
595b186477
4 changed files with 8 additions and 1 deletions
|
@ -12,7 +12,7 @@ layout=0 # 0 - dwindle (default), 1 - master
|
|||
focus_when_hover=1 # 0 - do not switch the focus when hover (only for tiling)
|
||||
main_mod=SUPER # For moving, resizing
|
||||
intelligent_transients=1 # keeps transients always on top.
|
||||
|
||||
no_unmap_saving=1 # disables saving unmapped windows (seems to break sometimes)
|
||||
|
||||
# Execs
|
||||
# exec-once=/home/me/MyEpicShellScript # will exec the script only when the WM launches
|
||||
|
|
|
@ -16,6 +16,7 @@ void ConfigManager::init() {
|
|||
configValues["rounding"].intValue = 5;
|
||||
configValues["main_mod"].strValue = "SUPER";
|
||||
configValues["intelligent_transients"].intValue = 1;
|
||||
configValues["no_unmap_saving"].intValue = 1;
|
||||
|
||||
configValues["focus_when_hover"].intValue = 1;
|
||||
|
||||
|
|
|
@ -631,6 +631,7 @@ void Events::eventMapWindow(xcb_generic_event_t* event) {
|
|||
}
|
||||
|
||||
if (!pNewWindow || pNewWindow->getClassName() == "") {
|
||||
Debug::log(LOG, "Removing, NULL.");
|
||||
g_pWindowManager->removeWindowFromVectorSafe(E->window);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2070,6 +2070,11 @@ void CWindowManager::recalcAllWorkspaces() {
|
|||
}
|
||||
|
||||
void CWindowManager::moveWindowToUnmapped(int64_t id) {
|
||||
if (ConfigManager::getInt("no_unmap_saving") == 1){
|
||||
closeWindowAllChecks(id);
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto& w : windows) {
|
||||
if (w.getDrawable() == id) {
|
||||
// Move it
|
||||
|
|
Loading…
Reference in a new issue