Skip to content

Commit

Permalink
Update xcb.c
Browse files Browse the repository at this point in the history
window coors relative to border_width.
  • Loading branch information
ortango committed Mar 25, 2024
1 parent 6c38a49 commit 9fcfcfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/xcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,8 @@ static int monitor_active_from_id_focused(int mon_id, workarea *mon) {
// place the menu above the window
// if some window is focused, place menu above window, else fall
// back to selected monitor.
mon->x = t->dst_x - r->x;
mon->y = t->dst_y - r->y;
mon->x = t->dst_x - r->x + r->border_width;
mon->y = t->dst_y - r->y + r->border_width;
mon->w = r->width;
mon->h = r->height;
retv = TRUE;
Expand Down

0 comments on commit 9fcfcfb

Please sign in to comment.