Skip to content

Commit

Permalink
No offsets here!
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed Jun 5, 2020
1 parent 13ec68b commit c5ed487
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/linux/xwindows.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void get_window_geometry(
{
ERROR(err, 1, "Failed to get window geometry!");
}
XTranslateCoordinates(winfo->disp, winfo->win, junkroot, junkx, junky, x, y, &junkroot);
XTranslateCoordinates(winfo->disp, winfo->win, junkroot, 0, 0, x, y, &junkroot);
}

void get_window_geometry_relative(
Expand All @@ -228,8 +228,8 @@ void get_window_geometry_relative(
winfo->disp,
winfo->win,
window_attributes.root,
window_attributes.x,
window_attributes.y,
0,
0,
&x_tmp,
&y_tmp,
&junkroot))
Expand Down

0 comments on commit c5ed487

Please sign in to comment.