[BUG]: minismised window being treated as displaying
bug
### Summary
After waking PC from hibernation and unlocking, I general have a single window that is minimised being treated as though it were not minimised, resulting in a blank area the size of a window, had one been active there. Selecting minimised windows of open applications so that they come into focus and minimising them again eventually fixes the issue, but I generally have a number windows open so it take a while to find which is incorrectly being tracked.
Checking the state, I see negative coordinates for a window that was a problem. Would it be possible to discard negative left and top valued windows?
komorebic state when experiencing the problem with Google Chrome
```json
{
"monitors": {
"elements": [
{
"id": 65537,
"name": "DISPLAY1",
"device": "SAM73D0",
"device_id": "SAM73D0-5&34e73627&0&UID45312",
"serial_number_id": "HNTW900055",
"size": {
"left": 0,
"top": 0,
"right": 7680,
"bottom": 2160
},
"work_area_size": {
"left": 0,
"top": 0,
"right": 7680,
"bottom": 2088
},
"work_area_offset": null,
"window_based_work_area_offset": null,
"window_based_work_area_offset_limit": 1,
"workspaces": {
"elements": [
{
"name": "I",
"containers": {
"elements": [
{
"id": "oPNv8NtMO3CPtnVl66E-J",
"locked": false,
"windows": {
"elements": [
{
"hwnd": 331888,
"title": "Visual Studio Code - Insiders",
"exe": "Code - Insiders.exe",
"class": "Chrome_WidgetWin_1",
"rect": {
"left": 2,
"top": 2,
"right": 3836,
"bottom": 2084
}
}
],
"focused": 0
}
},
{
"id": "5ySpWGYNykqLVObBA2vRR",
"locked": false,
"windows": {
"elements": [
{
"hwnd": 133772,
"title": "Google Chrome",
"exe": "chrome.exe",
"class": "Chrome_WidgetWin_1",
"rect": {
"left": -31991,
"top": -32000,
"right": 219,
"bottom": 30
}
}
],
"focused": 0
}
}
],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "BSP"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [
{
"left": 2,
"top": 2,
"right": 3836,
"bottom": 2084
},
{
"left": 3842,
"top": 2,
"right": 3836,
"bottom": 2084
}
],
"resize_dimensions": [
null,
null
],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
},
{
"name": "II",
"containers": {
"elements": [],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "VerticalStack"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [],
"resize_dimensions": [],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
},
{
"name": "III",
"containers": {
"elements": [],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "HorizontalStack"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [],
"resize_dimensions": [],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
},
{
"name": "IV",
"containers": {
"elements": [],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "UltrawideVerticalStack"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [],
"resize_dimensions": [],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
},
{
"name": "V",
"containers": {
"elements": [],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "Rows"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [],
"resize_dimensions": [],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
}
],
"focused": 0
},
"workspace_names": {},
"container_padding": null,
"workspace_padding": null,
"wallpaper": null,
"floating_layer_behaviour": null
}
],
"focused": 0
},
"monitor_usr_idx_map": {
"0": 0
},
"is_paused": false,
"resize_delta": 50,
"new_window_behaviour": "Create",
"float_override": false,
"cross_monitor_move_behaviour": "Insert",
"unmanaged_window_operation_behaviour": "Op",
"work_area_offset": null,
"focus_follows_mouse": null,
"mouse_follows_focus": true,
"has_pending_raise_op": false,
"virtual_desktop_id": [
20,
162,
105,
201,
120,
231,
60,
72,
159,
35,
224,
144,
101,
95,
82,
44
]
}
```
komoberic state when fine:
```json
{
"monitors": {
"elements": [
{
"id": 65537,
"name": "DISPLAY1",
"device": "SAM73D0",
"device_id": "SAM73D0-5&34e73627&0&UID45312",
"serial_number_id": "HNTW900055",
"size": {
"left": 0,
"top": 0,
"right": 7680,
"bottom": 2160
},
"work_area_size": {
"left": 0,
"top": 0,
"right": 7680,
"bottom": 2088
},
"work_area_offset": null,
"window_based_work_area_offset": null,
"window_based_work_area_offset_limit": 1,
"workspaces": {
"elements": [
{
"name": "I",
"containers": {
"elements": [
{
"id": "oPNv8NtMO3CPtnVl66E-J",
"locked": false,
"windows": {
"elements": [
{
"hwnd": 331888,
"title": "Visual Studio Code - Insiders",
"exe": "Code - Insiders.exe",
"class": "Chrome_WidgetWin_1",
"rect": {
"left": 2,
"top": 2,
"right": 3836,
"bottom": 2084
}
}
],
"focused": 0
}
},
{
"id": "wODruP6dWQtWwvlE3NJzx",
"locked": false,
"windows": {
"elements": [
{
"hwnd": 1053696,
"title": "Google Chrome",
"exe": "chrome.exe",
"class": "Chrome_WidgetWin_1",
"rect": {
"left": 3842,
"top": 2,
"right": 3836,
"bottom": 2084
}
}
],
"focused": 0
}
}
],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "BSP"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [
{
"left": 2,
"top": 2,
"right": 3836,
"bottom": 2084
},
{
"left": 3842,
"top": 2,
"right": 3836,
"bottom": 2084
}
],
"resize_dimensions": [
null,
null
],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
},
{
"name": "II",
"containers": {
"elements": [],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "VerticalStack"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [],
"resize_dimensions": [],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
},
{
"name": "III",
"containers": {
"elements": [],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "HorizontalStack"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [],
"resize_dimensions": [],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
},
{
"name": "IV",
"containers": {
"elements": [],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "UltrawideVerticalStack"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [],
"resize_dimensions": [],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
},
{
"name": "V",
"containers": {
"elements": [],
"focused": 0
},
"monocle_container": null,
"maximized_window": null,
"floating_windows": {
"elements": [],
"focused": 0
},
"layout": {
"Default": "Rows"
},
"layout_options": null,
"layout_rules": [],
"layout_flip": null,
"workspace_padding": null,
"container_padding": null,
"latest_layout": [],
"resize_dimensions": [],
"tile": true,
"work_area_offset": null,
"apply_window_based_work_area_offset": true,
"window_container_behaviour": null,
"window_container_behaviour_rules": null,
"float_override": null,
"layer": "Tiling",
"floating_layer_behaviour": null,
"wallpaper": null
}
],
"focused": 0
},
"workspace_names": {},
"container_padding": null,
"workspace_padding": null,
"wallpaper": null,
"floating_layer_behaviour": null
}
],
"focused": 0
},
"monitor_usr_idx_map": {
"0": 0
},
"is_paused": false,
"resize_delta": 50,
"new_window_behaviour": "Create",
"float_override": false,
"cross_monitor_move_behaviour": "Insert",
"unmanaged_window_operation_behaviour": "Op",
"work_area_offset": null,
"focus_follows_mouse": null,
"mouse_follows_focus": true,
"has_pending_raise_op": false,
"virtual_desktop_id": [
20,
162,
105,
201,
120,
231,
60,
72,
159,
35,
224,
144,
101,
95,
82,
44
]
}
```
### Version Information
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.26200 N/A Build 26200
komorebic 0.1.40
tag:v0.1.40
commit_hash:bed314b8
build_time:2026-02-14 21:08:01 +00:00
build_env:rustc 1.93.1 (01f6ddf75 2026-02-11),stable-x86_64-pc-windows-msvc
### Komorebi Configuration
```json
{
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/master/schema.json",
"alt_focus_hack": true,
"app_specific_configuration_path": "C:/foo/applications.json",
"border": true,
"border_colours": {
"single": {
"r": 66,
"g": 165,
"b": 245
},
"stack": {
"r": 256,
"g": 165,
"b": 66
},
"monocle": {
"r": 255,
"g": 51,
"b": 153
}
},
"cross_monitor_move_behaviour": "Insert",
"border_offset": 0,
"border_width": 2,
"default_container_padding": 0,
"default_workspace_padding": 0,
"monitors": [
{
"workspaces": [
{
"name": "I",
"layout": "BSP"
},
{
"name": "II",
"layout": "VerticalStack"
},
{
"name": "III",
"layout": "HorizontalStack"
},
{
"name": "IV",
"layout": "UltrawideVerticalStack"
},
{
"name": "V",
"layout": "Rows"
}
]
}
],
"window_hiding_behaviour": "Cloak",
"ignore_rules": [
[
{
"kind": "Title",
"id": "Picture-in-picture",
"matching_strategy": "Equals"
},
{
"kind": "Exe",
"id": "chrome.exe",
"matching_strategy": "Equals"
}
],
[
{
"kind": "Title",
"id": "Picture in picture",
"matching_strategy": "Equals"
},
{
"kind": "Exe",
"id": "msedge.exe",
"matching_strategy": "Equals"
}
],
[
{
"kind": "Title",
"id": "Spotify - Web Player: Music for everyone",
"matching_strategy": "Equals"
},
{
"kind": "Exe",
"id": "Spotify.exe",
"matching_strategy": "Equals"
}
]
]
}
```
### Hotkey Configuration
```shell
.shell powershell
# 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 }
# 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
# Workspaces
# alt + 1 : komorebic focus-workspace 0
# alt + 2 : komorebic focus-workspace 1
# alt + 3 : komorebic focus-workspace 2
# 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
```
### Output of komorebic check
```shell
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Foo
Looking for configuration files in C:\Users\Foo
Found komorebi.json; this file can be passed to the start command with the --config flag
Found C:\Users\Foo\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
```
8 条评论