[BUG]: Stackbar and window edge are misaligned #388

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

Originally created by @CtByte on GitHub (May 22, 2024).

Describe the bug
When the stackbar is visible it seems to be more off to the left then the window's edge.


To Reproduce
Steps to reproduce the behavior:

  1. Stack windows together
  2. See bug

Expected behavior
The stackbar should be more to the right lining up with the window's edge.


Attachments

image

komorebi.json

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.22/schema.json",
  "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml",
  "window_hiding_behaviour": "Cloak",
  "unmanaged_window_operation_behaviour": "Op",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 5,
  "default_container_padding": 5,
  "border_padding": 5,
  "border_offset": -1,
  "active_window_border": false,
  "active_window_border_style": "Rounded",
  "active_window_border_colours": {
    "single": "#42a5f5",
    "stack": "#00a542",
    "monocle": "#ff3399"
  },
  "stackbar": {
    "height": 40,
    "label": "Title",
    "mode": "OnStack",
    "tabs": {
      "width": 300,
      "focused_text": "#bfaa69",
      "unfocused_text": "#f2bdf3",
      "background": "#121826"
    }
  },
  "global_work_area_offset":
  {
    "bottom": 45,
    "left": 0,
    "right": 0,
    "top": 45
  },
  "monitors": [
    {
      "workspaces": [
        { "name": "P1", "layout": "UltrawideVerticalStack" },
        { "name": "P2", "layout": "UltrawideVerticalStack" },
        { "name": "P3", "layout": "BSP" }
      ]
    },
	{
      "workspaces": [
        { "name": "W1", "layout": "UltrawideVerticalStack" },
        { "name": "W2", "layout": "BSP" },
        { "name": "W3", "layout": "BSP" }
      ]
    }
  ],
  "float_rules": [
    {
      "kind": "Exe",
      "id": "Zebar.exe",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Exe",
      "id": "TOTALCMD64.EXE",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Title",
      "id": "WindowsFormsParkingWindow",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Exe",
      "id": "steam",
      "matching_strategy": "Contains"
    }
  ]
}

Additional context
I remember using the same config before and the stackbar lined up nicely like here #827

Originally created by @CtByte on GitHub (May 22, 2024). **Describe the bug** When the stackbar is visible it seems to be more off to the left then the window's edge. ---- **To Reproduce** Steps to reproduce the behavior: 1. Stack windows together 2. See bug ---- **Expected behavior** The stackbar should be more to the right lining up with the window's edge. --- **Attachments** ![image](https://github.com/LGUG2Z/komorebi/assets/165908630/4df6e351-49c5-4d1e-9052-0077ff24041a) <details> <summary><h2>komorebi.json</h2></summary> ``` { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.22/schema.json", "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml", "window_hiding_behaviour": "Cloak", "unmanaged_window_operation_behaviour": "Op", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 5, "default_container_padding": 5, "border_padding": 5, "border_offset": -1, "active_window_border": false, "active_window_border_style": "Rounded", "active_window_border_colours": { "single": "#42a5f5", "stack": "#00a542", "monocle": "#ff3399" }, "stackbar": { "height": 40, "label": "Title", "mode": "OnStack", "tabs": { "width": 300, "focused_text": "#bfaa69", "unfocused_text": "#f2bdf3", "background": "#121826" } }, "global_work_area_offset": { "bottom": 45, "left": 0, "right": 0, "top": 45 }, "monitors": [ { "workspaces": [ { "name": "P1", "layout": "UltrawideVerticalStack" }, { "name": "P2", "layout": "UltrawideVerticalStack" }, { "name": "P3", "layout": "BSP" } ] }, { "workspaces": [ { "name": "W1", "layout": "UltrawideVerticalStack" }, { "name": "W2", "layout": "BSP" }, { "name": "W3", "layout": "BSP" } ] } ], "float_rules": [ { "kind": "Exe", "id": "Zebar.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "TOTALCMD64.EXE", "matching_strategy": "Equals" }, { "kind": "Title", "id": "WindowsFormsParkingWindow", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "steam", "matching_strategy": "Contains" } ] } ``` </details> --- **Additional context** I remember using the same config before and the stackbar lined up nicely like here #827
adam added the bug label 2026-01-05 14:50:18 +01:00
adam closed this issue 2026-01-05 14:50:18 +01:00
Author
Owner

@LGUG2Z commented on GitHub (May 22, 2024):

image

Funnily enough, it is now perfectly lined up for me with the borders, whereas before it was further inside than the border 😃

What are your border width and offset settings? I currently have:

  "border_width": 10,
  "border_offset": -1,
@LGUG2Z commented on GitHub (May 22, 2024): ![image](https://github.com/LGUG2Z/komorebi/assets/13164844/e2a37315-28e2-48c1-969f-071a7b81852d) Funnily enough, it is now perfectly lined up for me with the borders, whereas before it was further inside than the border 😃 What are your border width and offset settings? I currently have: ``` "border_width": 10, "border_offset": -1, ```
Author
Owner

@LGUG2Z commented on GitHub (May 22, 2024):

image

Just played around with my settings; if you have the visible borders disabled, you should set the border_width to 0:

  "border_width": 0,
  "border_offset": -1,
@LGUG2Z commented on GitHub (May 22, 2024): ![image](https://github.com/LGUG2Z/komorebi/assets/13164844/347eaf95-bfc8-45d6-b791-454c2d5b489c) Just played around with my settings; if you have the visible borders disabled, you should set the `border_width` to `0`: ``` "border_width": 0, "border_offset": -1, ```
Author
Owner

@CtByte commented on GitHub (May 22, 2024):

My complete settings are hidden under the picture :)

Yes, I am missing the border_width setting

@CtByte commented on GitHub (May 22, 2024): My complete settings are hidden under the picture :) Yes, I am missing the `border_width` setting
Author
Owner

@CtByte commented on GitHub (May 22, 2024):

It is perfect, as you said, with the "border_width": 0. Could this be a default setting that caused the misalignment? Not sure.

Thank you for the quick response!

@CtByte commented on GitHub (May 22, 2024): It is perfect, as you said, with the `"border_width": 0`. Could this be a default setting that caused the misalignment? Not sure. Thank you for the quick response!
Author
Owner

@LGUG2Z commented on GitHub (May 22, 2024):

Just had a look and the example config is going to default to border: true in the next release and we can direct people to set border_width: 0 if they disable the borders

@LGUG2Z commented on GitHub (May 22, 2024): Just had a look and the example config is going to default to `border: true` in the next release and we can direct people to set `border_width: 0` if they disable the borders
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#388