[BUG]: komorebic handles actions for the fullscreen window instead of the focused one #551

Closed
opened 2026-01-05 14:51:29 +01:00 by adam · 5 comments
Owner

Originally created by @danteasy on GitHub (Dec 30, 2024).

Summary

If a fullscreen window is open beneath a focused floating window (or a tiled window), komorebic handles actions for the fullscreen window instead of the focused one.

https://github.com/user-attachments/assets/0c2fdab1-05d9-44ea-bf59-cc07ffe2ab4b

Version Information

OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631

komorebic 0.1.31
tag:v0.1.31
commit_hash:40c55dec
build_time:2024-12-14 00:54:06 +00:00
build_env:rustc 1.83.0 (90b35a623 2024-11-26),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
    "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.31/schema.json",
    "app_specific_configuration_path": "$Env:USERPROFILE/applications.json",
    "window_hiding_behaviour": "Hide",
    "cross_monitor_move_behaviour": "Insert",
    "default_workspace_padding": 2,
    "default_container_padding": 2,
    "border": true,
    "border_width": 4,
    "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": "VerticalStack"
                },
                {
                    "name": "III",
                    "layout": "HorizontalStack"
                },
                {
                    "name": "IV",
                    "layout": "UltrawideVerticalStack"
                },
                {
                    "name": "V",
                    "layout": "Rows"
                },
                {
                    "name": "VI",
                    "layout": "Grid"
                },
                {
                    "name": "VII",
                    "layout": "RightMainVerticalStack"
                }
            ]
        }
    ],
    "ignore_rules": [
        {
            "kind": "Exe",
            "id": "Flow.Launcher.exe",
            "matching_strategy": "Equals"
        },
        {
            "kind": "Exe",
            "id": "Todoist.exe",
            "matching_strategy": "Equals"
        },
        {
            "kind": "Exe",
            "id": "StrokesPlus.net.exe",
            "matching_strategy": "Equals"
        },
        {
            "kind": "Exe",
            "id": "wallpaper32.exe",
            "matching_strategy": "Equals"
        },
        {
            "kind": "Exe",
            "id": "Rainmeter.exe",
            "matching_strategy": "Equals"
        },
        {
            "kind": "Exe",
            "id": "windhawk.exe",
            "matching_strategy": "Equals"
        },
        {
            "kind": "Exe",
            "id": "windhawk.exe",
            "matching_strategy": "Equals"
        },
        {
            "kind": "Exe",
            "id": "RadeonSoftware.exe",
            "matching_strategy": "Equals"
        },
        {
            "kind": "Exe",
            "id": "keyviz-v1.0.6-portable.exe",
            "matching_strategy": "Equals"
        }
    ]
}

Hotkey Configuration

.shell powershell

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

alt + v : komorebic minimize

Focus windows

alt + a : komorebic focus left
alt + s : komorebic focus down
alt + w : komorebic focus up
alt + d : komorebic focus right

Move windows

alt + shift + a : komorebic move left
alt + shift + s : komorebic move down
alt + shift + w : komorebic move up
alt + shift + d : komorebic move right
alt + shift + return : komorebic promote

Resize

alt + e : komorebic resize-axis horizontal increase
alt + q : komorebic resize-axis horizontal decrease
alt + shift + e : komorebic resize-axis vertical increase
alt + shift + q : komorebic resize-axis vertical decrease

Manipulate windows

alt + shift + f : komorebic toggle-float
alt + f : komorebic toggle-maximize

Window manager options

alt + shift + r : komorebic retile
alt + shift + p : komorebic toggle-pause

Layouts

alt + c : komorebic flip-layout horizontal
alt + shift + c : komorebic flip-layout vertical
alt + z : komorebic change-layout bsp
alt + shift + z : komorebic change-layout grid
alt + x : komorebic change-layout horizontal-stack

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
alt + r : komorebic focus-last-workspace

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

Output of komorebic check

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Yevhenii

Looking for configuration files in C:\Users\Yevhenii

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

The "Hide" option for "window_hiding_behaviour" is deprecated and can be removed or replaced with "Cloak"
Found C:\Users\Yevhenii.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 @danteasy on GitHub (Dec 30, 2024). ### Summary If a fullscreen window is open beneath a focused floating window (or a tiled window), komorebic handles actions for the fullscreen window instead of the focused one. https://github.com/user-attachments/assets/0c2fdab1-05d9-44ea-bf59-cc07ffe2ab4b ### Version Information OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22631 N/A Build 22631 komorebic 0.1.31 tag:v0.1.31 commit_hash:40c55dec build_time:2024-12-14 00:54:06 +00:00 build_env:rustc 1.83.0 (90b35a623 2024-11-26),stable-x86_64-pc-windows-msvc ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.31/schema.json", "app_specific_configuration_path": "$Env:USERPROFILE/applications.json", "window_hiding_behaviour": "Hide", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 2, "default_container_padding": 2, "border": true, "border_width": 4, "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": "VerticalStack" }, { "name": "III", "layout": "HorizontalStack" }, { "name": "IV", "layout": "UltrawideVerticalStack" }, { "name": "V", "layout": "Rows" }, { "name": "VI", "layout": "Grid" }, { "name": "VII", "layout": "RightMainVerticalStack" } ] } ], "ignore_rules": [ { "kind": "Exe", "id": "Flow.Launcher.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "Todoist.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "StrokesPlus.net.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "wallpaper32.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "Rainmeter.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "windhawk.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "windhawk.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "RadeonSoftware.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "keyviz-v1.0.6-portable.exe", "matching_strategy": "Equals" } ] } ``` ### Hotkey Configuration .shell powershell alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell alt + shift + o : komorebic reload-configuration alt + v : komorebic minimize # Focus windows alt + a : komorebic focus left alt + s : komorebic focus down alt + w : komorebic focus up alt + d : komorebic focus right # Move windows alt + shift + a : komorebic move left alt + shift + s : komorebic move down alt + shift + w : komorebic move up alt + shift + d : komorebic move right alt + shift + return : komorebic promote # Resize alt + e : komorebic resize-axis horizontal increase alt + q : komorebic resize-axis horizontal decrease alt + shift + e : komorebic resize-axis vertical increase alt + shift + q : komorebic resize-axis vertical decrease # Manipulate windows alt + shift + f : komorebic toggle-float alt + f : komorebic toggle-maximize # Window manager options alt + shift + r : komorebic retile alt + shift + p : komorebic toggle-pause # Layouts alt + c : komorebic flip-layout horizontal alt + shift + c : komorebic flip-layout vertical alt + z : komorebic change-layout bsp alt + shift + z : komorebic change-layout grid alt + x : komorebic change-layout horizontal-stack # 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 alt + r : komorebic focus-last-workspace # 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 ### Output of komorebic check No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Yevhenii Looking for configuration files in C:\Users\Yevhenii Found komorebi.json; this file can be passed to the start command with the --config flag The "Hide" option for "window_hiding_behaviour" is deprecated and can be removed or replaced with "Cloak" Found C:\Users\Yevhenii\.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:51:29 +01:00
adam closed this issue 2026-01-05 14:51:30 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Dec 30, 2024):

From what I saw in the video, it looks like you have one app toggled to fullscreen, then you want to toggle another one to full screen?

If so, only one app can be toggled to full screen at a time; you'll need to toggle off full screen on the first app before you can set it on the second app. This behaviour isn't going to be changed.

@LGUG2Z commented on GitHub (Dec 30, 2024): From what I saw in the video, it looks like you have one app toggled to fullscreen, then you want to toggle another one to full screen? If so, only one app can be toggled to full screen at a time; you'll need to toggle off full screen on the first app before you can set it on the second app. This behaviour isn't going to be changed.
Author
Owner

@danteasy commented on GitHub (Dec 30, 2024):

If so, only one app can be toggled to full screen at a time; you'll need to toggle off full screen on the first app before you can set it on the second app. This behaviour isn't going to be changed.

Yes, that is exactly what I wanted to achieve. But that isn't the main issue. The full-screen window takes in all of the shortcuts I send to the floating one.

@danteasy commented on GitHub (Dec 30, 2024): > If so, only one app can be toggled to full screen at a time; you'll need to toggle off full screen on the first app before you can set it on the second app. This behaviour isn't going to be changed. Yes, that is exactly what I wanted to achieve. But that isn't the main issue. The full-screen window takes in all of the shortcuts I send to the floating one.
Author
Owner

@LGUG2Z commented on GitHub (Dec 30, 2024):

Can you type out the commands and shortcuts you're trying to send in the video? I've watched a few times and it's not very clear for me to follow along.

@LGUG2Z commented on GitHub (Dec 30, 2024): Can you type out the commands and shortcuts you're trying to send in the video? I've watched a few times and it's not very clear for me to follow along.
Author
Owner

@danteasy commented on GitHub (Dec 30, 2024):

I had two tiled windows open. Then, I switched the browser to fullscreen, shifted focus to the terminal, and attempted to resize it. However, Komorebic applied the resizing commands to the fullscreen browser instead. I tried another thing: made the browser fullscreen, focused on the terminal, and attempted to make it float. But this time, the browser ended up being floated instead of the terminal.

Hotkeys:
alt + f : komorebic toggle-maximize
alt + shift + f : komorebic toggle-float
alt + e : komorebic resize-axis horizontal increase
alt + q : komorebic resize-axis horizontal decrease
alt + shift + e : komorebic resize-axis vertical increase
alt + shift + q : komorebic resize-axis vertical decrease

https://github.com/user-attachments/assets/3f56e83b-47b7-42a2-89f1-6037a9fb4052

@danteasy commented on GitHub (Dec 30, 2024): I had two tiled windows open. Then, I switched the browser to fullscreen, shifted focus to the terminal, and attempted to resize it. However, Komorebic applied the resizing commands to the fullscreen browser instead. I tried another thing: made the browser fullscreen, focused on the terminal, and attempted to make it float. But this time, the browser ended up being floated instead of the terminal. Hotkeys: alt + f : komorebic toggle-maximize alt + shift + f : komorebic toggle-float alt + e : komorebic resize-axis horizontal increase alt + q : komorebic resize-axis horizontal decrease alt + shift + e : komorebic resize-axis vertical increase alt + shift + q : komorebic resize-axis vertical decrease https://github.com/user-attachments/assets/3f56e83b-47b7-42a2-89f1-6037a9fb4052
Author
Owner

@LGUG2Z commented on GitHub (Dec 30, 2024):

With this new info, I can say that this is all expected behaviour.

fullscreen and monocle are exclusive modes that are toggled on and off in komorebi - regardless of whether you alt-tab a different window to the foreground, while one of those modes is toggled, the the fullscreen or monocle window will always be considered the target window on a workspace for commands which don't explicitly identify containers or windows via indices or other matchers.

This is a long standing behaviour for almost half a decade now which will almost certainly never be changed.

@LGUG2Z commented on GitHub (Dec 30, 2024): With this new info, I can say that this is all expected behaviour. `fullscreen` and `monocle` are exclusive modes that are toggled on and off in `komorebi` - regardless of whether you alt-tab a different window to the foreground, while one of those modes is toggled, the the fullscreen or monocle window will always be considered the target window on a workspace for commands which don't explicitly identify containers or windows via indices or other matchers. This is a long standing behaviour for almost half a decade now which will almost certainly never be changed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#551