Skip to content

BUG - Monocle mode window loses focus and cannot be re-focused when returning to monitor (Masir + Komorebi) #55

@RyanAHayden

Description

@RyanAHayden

Summary
I'm using Masir together with Komorebi, and I’ve run into a focus issue specific to monocle mode on my primary monitor.
When I toggle monocle mode on a window, then move focus to another monitor, I’m unable to re‑focus the monocled window by returning my mouse to the original monitor.
This appears similar to Issue #1379, but in my case the window is not focused at all when I return, so I cannot un-monocle or interact with it using keyboard focus commands.

Masir version

masir 0.1.2

Komorebi version

komorebic 0.1.38
tag:v0.1.38
commit_hash:ffa76ea2
build_time:2025-09-13 18:40:25 +00:00
build_env:rustc 1.89.0 (29483883e 2025-08-04),stable-x86_64-pc-windows-msvc

Komorebi config

{
  "app_specific_configuration_path": "$Env:USERPROFILE/applications.json",
  "mouse_follows_focus": false,
  "cross_monitor_move_behaviour": "Insert",
  "global_work_area_offset": {
    "bottom": 1,
    "left": 2,
    "right": 4,
    "top": 1
  },
  "default_workspace_padding": 9,
  "default_container_padding": 9,
  "border": true,
  "border_width": 3,
  "border_offset": -1,
  "transparency": true,
  "transparency_alpha": 200,
  "animation": {
    "enabled": true,
    "fps": 144,
    "duration": 250,
    "style": {
      "movement": "EaseOutExpo",
      "transparency": "Linear"
    }
  },
  "border_colours": {
    "single": "#929292",
    "unfocused": "#363636",
    "monocle": "#6c2567",
    "floating": "#8aadf4"
  },
  "unmanaged_window_operation_behaviour": "Op",
  "window_container_behaviour": "Create",
  "window_hiding_behaviour": "Cloak",
  "layout": "BSP",
    "monitors": [
    {
      "workspaces": [
        {
          "name": "1",
          "layout": "BSP",
          "initial_workspace_rules": [
            {
              "id": "Spotify.exe",
              "kind": "Exe",
              "matching_strategy": "Equals"
            },
            {
              "id": "Discord.exe",
              "kind": "Exe",
              "matching_strategy": "Equals"
            }
          ]
        },
        {
          "name": "2",
          "layout": "BSP"
        },
        {
          "name": "3",
          "layout": "BSP"
        },
        {
          "name": "4",
          "layout": "BSP"
        },
        {
          "name": "5",
          "layout": "BSP"
        }
      ]
    }
  ] 
}

#whkd config


# Reload whkd configuration
alt + o                 : taskkill /f /im whkd.exe; ; start /b whkd.exe
alt + shift + o         : komorebic stop; komorebic start --masir; start /b whkd.exe

# Show keybinds
alt + i                 : komorebic toggle-shortcuts

# Window actions
alt + VK_RETURN         : komorebic toggle-maximize
alt + q                 : komorebic close
alt + s                 : komorebic minimize
alt + VK_OEM_3          : komorebic toggle-transparency # Tilda

# 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

# Focus windows
ctrl + alt + a          : komorebic focus left
ctrl + alt + s          : komorebic focus down
ctrl + alt + w          : komorebic focus up
ctrl + alt + d          : komorebic focus right

# Move windows between monitors
alt + shift + left       : komorebic cycle-move-to-monitor previous;
alt + shift + right      : komorebic cycle-move-to-monitor next;

# 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


# Window manager options
alt + shift + f         : komorebic toggle-monocle
alt + shift + r         : komorebic retile
alt + t                 : komorebic toggle-pause
alt + x                 : komorebic manage

# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions