[BUG]: Maximized windows don't stay maximized after switching workspaces and coming back to it. #634

Closed
opened 2026-01-05 14:52:06 +01:00 by adam · 2 comments
Owner

Originally created by @rp1231 on GitHub (May 31, 2025).

Summary

Maximize a window, Switch to a different workspace and return to the previous workspace and you'll find that the window un-maximizes itself.

Version Information

Windows 11 pro 10.0.26100 N/A Build 26100

komorebic 0.1.37

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.29/schema.json",
  "app_specific_configuration_path": "C:/Users/lenovo/.config/komorebi/applications.json",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "floating_layer_behaviour": "Float",
  "floating_layer_placement": "Center",
  "default_workspace_padding": 5,
  "default_container_padding": 5,
  "mouse_follows_focus": false,
  "border": false,
  "border_width": 5,
  "border_offset": -1,
  "theme": {
    "palette": "Base16",
    "name": "Ashes",
    "unfocused_border": "Base03",
    "bar_accent": "Base0D"
  },
  "stackbar": {
    "height": 40,
    "mode": "OnStack",
    "tabs": {
      "width": 300
    }
  },
  "monitors": [
    {
      "workspaces": [
        {
          "name": "I",
          "layout": "BSP"
        },
        {
          "name": "II",
          "layout": "BSP"
        },
        {
          "name": "III",
          "layout": "BSP"
        },
        {
          "name": "IV",
          "layout": "BSP"
        },
        {
          "name": "V",
          "layout": "BSP"
        },
        {
          "name": "VI",
          "layout": "BSP"
        },
        {
          "name": "VII",
          "layout": "BSP"
        }
      ]
    },
    {
      "workspaces": [
        {
          "name": "I",
          "layout": "BSP"
        },
        {
          "name": "II",
          "layout": "BSP"
        },
        {
          "name": "III",
          "layout": "BSP"
        },
        {
          "name": "IV",
          "layout": "BSP"
        },
        {
          "name": "V",
          "layout": "BSP"
        },
        {
          "name": "VI",
          "layout": "BSP"
        },
        {
          "name": "VII",
          "layout": "BSP"
        }
      ]
    }
  ],
  "ignore_rules": [
    {
      "kind": "Exe",
      "id": "Fantastical.exe",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Class",
      "id": "Qt662QWindowToolSaveBits",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Class",
      "id": "Qt662QWindowIcon",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Exe",
      "id": "TextInputHost.exe",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Exe",
      "id": "Rhino.exe",
      "matching_strategy": "Equals"
    }
  ],
  "tray_and_multi_window_applications": []
}

Hotkey Configuration

.shell pwsh

# Reload whkd configuration
# alt + o                 : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd
alt + o                 : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
alt + shift + o         : komorebic reload-configuration

# App shortcuts - these require shell to be pwsh / powershell
# The apps will be focused if open, or launched if not open
# alt + f                 : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox }
# alt + b                 : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome }

# alt + i                 : komorebic toggle-shortcuts
alt + q                 : komorebic close
alt + m                 : komorebic minimize

# Focus windows
alt + h                 : komorebic focus left
alt + j                 : komorebic focus down
alt + k                 : komorebic focus up
alt + l                 : komorebic focus right
alt + shift + oem_4     : komorebic cycle-focus previous # oem_4 is [
alt + shift + oem_6     : komorebic cycle-focus next # oem_6 is ]

# Move windows
alt + shift + h         : komorebic move left
alt + shift + j         : komorebic move down
alt + shift + k         : komorebic move up
alt + shift + l         : komorebic move right
alt + shift + return    : komorebic promote

# Stack windows
alt + left              : komorebic stack left
alt + down              : komorebic stack down
alt + up                : komorebic stack up
alt + right             : komorebic stack right
alt + oem_1             : komorebic unstack # oem_1 is ;
alt + oem_4             : komorebic cycle-stack previous # oem_4 is [
alt + oem_6             : komorebic cycle-stack next # oem_6 is ]

# Resize
alt + oem_plus          : komorebic resize-axis horizontal increase
alt + oem_minus         : komorebic resize-axis horizontal decrease
alt + shift + oem_plus  : komorebic resize-axis vertical increase
alt + shift + oem_minus : komorebic resize-axis vertical decrease

# Manipulate windows
alt + t                 : komorebic toggle-float
alt + shift + f         : komorebic toggle-monocle

# Window manager options
alt + shift + r         : komorebic retile
alt + p                 : komorebic toggle-pause

# Layouts
alt + x                 : komorebic flip-layout horizontal
alt + y                 : komorebic flip-layout vertical

# Workspace Layer
alt + shift + oem_1       :komorebic toggle-workspace-layer # oem_1 is ;

# Workspaces
# alt + 1                 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 0
# alt + 2                 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 1
# alt + 3                 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 2
# alt + 4                 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 3
# alt + 5                 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 4
# alt + 6                 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 5
# alt + 7                 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 6
# alt + 8                 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 7

# Workspaces
alt + 1                 : komorebic focus-workspace 0
alt + 2                 : komorebic focus-workspace 1
alt + 3                 : komorebic focus-workspace 2
alt + 4                 : komorebic focus-workspace 3
alt + 5                 : komorebic focus-workspace 4
alt + 6                 : komorebic focus-workspace 5
alt + 7                 : komorebic focus-workspace 6
alt + 8                 : komorebic focus-workspace 7

# Move windows across workspaces
alt + shift + 1         : komorebic move-to-workspace 0
alt + shift + 2         : komorebic move-to-workspace 1
alt + shift + 3         : komorebic move-to-workspace 2
alt + shift + 4         : komorebic move-to-workspace 3
alt + shift + 5         : komorebic move-to-workspace 4
alt + shift + 6         : komorebic move-to-workspace 5
alt + shift + 7         : komorebic move-to-workspace 6
alt + shift + 8         : komorebic move-to-workspace 7

# Shortcuts for mouse gestures
control + alt + shift + right  : komorebic cycle-workspace next
control + alt + shift + left  : komorebic cycle-workspace previous

Output of komorebic check

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\lenovo.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag

Originally created by @rp1231 on GitHub (May 31, 2025). ### Summary Maximize a window, Switch to a different workspace and return to the previous workspace and you'll find that the window un-maximizes itself. ### Version Information Windows 11 pro 10.0.26100 N/A Build 26100 komorebic 0.1.37 ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.29/schema.json", "app_specific_configuration_path": "C:/Users/lenovo/.config/komorebi/applications.json", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "floating_layer_behaviour": "Float", "floating_layer_placement": "Center", "default_workspace_padding": 5, "default_container_padding": 5, "mouse_follows_focus": false, "border": false, "border_width": 5, "border_offset": -1, "theme": { "palette": "Base16", "name": "Ashes", "unfocused_border": "Base03", "bar_accent": "Base0D" }, "stackbar": { "height": 40, "mode": "OnStack", "tabs": { "width": 300 } }, "monitors": [ { "workspaces": [ { "name": "I", "layout": "BSP" }, { "name": "II", "layout": "BSP" }, { "name": "III", "layout": "BSP" }, { "name": "IV", "layout": "BSP" }, { "name": "V", "layout": "BSP" }, { "name": "VI", "layout": "BSP" }, { "name": "VII", "layout": "BSP" } ] }, { "workspaces": [ { "name": "I", "layout": "BSP" }, { "name": "II", "layout": "BSP" }, { "name": "III", "layout": "BSP" }, { "name": "IV", "layout": "BSP" }, { "name": "V", "layout": "BSP" }, { "name": "VI", "layout": "BSP" }, { "name": "VII", "layout": "BSP" } ] } ], "ignore_rules": [ { "kind": "Exe", "id": "Fantastical.exe", "matching_strategy": "Equals" }, { "kind": "Class", "id": "Qt662QWindowToolSaveBits", "matching_strategy": "Equals" }, { "kind": "Class", "id": "Qt662QWindowIcon", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "TextInputHost.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "Rhino.exe", "matching_strategy": "Equals" } ], "tray_and_multi_window_applications": [] } ``` ### Hotkey Configuration ``` .shell pwsh # Reload whkd configuration # alt + o : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell alt + shift + o : komorebic reload-configuration # App shortcuts - these require shell to be pwsh / powershell # The apps will be focused if open, or launched if not open # alt + f : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox } # alt + b : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome } # alt + i : komorebic toggle-shortcuts alt + q : komorebic close alt + m : komorebic minimize # Focus windows alt + h : komorebic focus left alt + j : komorebic focus down alt + k : komorebic focus up alt + l : komorebic focus right alt + shift + oem_4 : komorebic cycle-focus previous # oem_4 is [ alt + shift + oem_6 : komorebic cycle-focus next # oem_6 is ] # Move windows alt + shift + h : komorebic move left alt + shift + j : komorebic move down alt + shift + k : komorebic move up alt + shift + l : komorebic move right alt + shift + return : komorebic promote # Stack windows alt + left : komorebic stack left alt + down : komorebic stack down alt + up : komorebic stack up alt + right : komorebic stack right alt + oem_1 : komorebic unstack # oem_1 is ; alt + oem_4 : komorebic cycle-stack previous # oem_4 is [ alt + oem_6 : komorebic cycle-stack next # oem_6 is ] # Resize alt + oem_plus : komorebic resize-axis horizontal increase alt + oem_minus : komorebic resize-axis horizontal decrease alt + shift + oem_plus : komorebic resize-axis vertical increase alt + shift + oem_minus : komorebic resize-axis vertical decrease # Manipulate windows alt + t : komorebic toggle-float alt + shift + f : komorebic toggle-monocle # Window manager options alt + shift + r : komorebic retile alt + p : komorebic toggle-pause # Layouts alt + x : komorebic flip-layout horizontal alt + y : komorebic flip-layout vertical # Workspace Layer alt + shift + oem_1 :komorebic toggle-workspace-layer # oem_1 is ; # Workspaces # alt + 1 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 0 # alt + 2 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 1 # alt + 3 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 2 # alt + 4 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 3 # alt + 5 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 4 # alt + 6 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 5 # alt + 7 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 6 # alt + 8 : komorebic focus-monitor-at-cursor && komorebic focus-workspace 7 # Workspaces alt + 1 : komorebic focus-workspace 0 alt + 2 : komorebic focus-workspace 1 alt + 3 : komorebic focus-workspace 2 alt + 4 : komorebic focus-workspace 3 alt + 5 : komorebic focus-workspace 4 alt + 6 : komorebic focus-workspace 5 alt + 7 : komorebic focus-workspace 6 alt + 8 : komorebic focus-workspace 7 # Move windows across workspaces alt + shift + 1 : komorebic move-to-workspace 0 alt + shift + 2 : komorebic move-to-workspace 1 alt + shift + 3 : komorebic move-to-workspace 2 alt + shift + 4 : komorebic move-to-workspace 3 alt + shift + 5 : komorebic move-to-workspace 4 alt + shift + 6 : komorebic move-to-workspace 5 alt + shift + 7 : komorebic move-to-workspace 6 alt + shift + 8 : komorebic move-to-workspace 7 # Shortcuts for mouse gestures control + alt + shift + right : komorebic cycle-workspace next control + alt + shift + left : komorebic cycle-workspace previous ``` ### Output of komorebic check Found komorebi.json; this file can be passed to the start command with the --config flag Found C:\Users\lenovo\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
adam added the bug label 2026-01-05 14:52:06 +01:00
adam closed this issue 2026-01-05 14:52:06 +01:00
Author
Owner

@ClixTW commented on GitHub (May 31, 2025):

Use the Komorebi command to maximize: komorebic toggle-maximize

@ClixTW commented on GitHub (May 31, 2025): Use the Komorebi command to maximize: `komorebic toggle-maximize`
Author
Owner

@LGUG2Z commented on GitHub (May 31, 2025):

Use the Komorebi command to maximize: komorebic toggle-maximize

I have this bound to F11 - Windows doesn't send a message that we can listen to and update the state with when the user hits the maximize button on an app's titlebar

Closing since there is nothing to be done by komorebi here - this is another issue for the Trillion Dollar Company ™️

@LGUG2Z commented on GitHub (May 31, 2025): > Use the Komorebi command to maximize: `komorebic toggle-maximize` I have this bound to F11 - Windows doesn't send a message that we can listen to and update the state with when the user hits the maximize button on an app's titlebar Closing since there is nothing to be done by komorebi here - this is another issue for the Trillion Dollar Company ™️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#634