Skip to content

Commit

Permalink
8251240: Menus inaccessible on Linux with i3 wm
Browse files Browse the repository at this point in the history
Backport-of: f185974
  • Loading branch information
Jose Pereda committed Dec 17, 2023
1 parent 84c2bd9 commit b7e3871
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1010,14 +1010,10 @@ void WindowContextTop::process_configure(GdkEventConfigure* event) {
}

int x, y;

gdk_window_get_origin(gdk_window, &x, &y);
if (frame_type == TITLED) {
GdkRectangle rect;
gdk_window_get_frame_extents(gdk_window, &rect);
x = rect.x;
y = rect.y;
} else {
gdk_window_get_origin(gdk_window, &x, &y);
x -= geometry.extents.left;
y -= geometry.extents.top;
}

geometry.x = x;
Expand Down

1 comment on commit b7e3871

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.