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 Nov 23, 2023
1 parent 376d70d commit 292315f
Showing 1 changed file with 3 additions and 7 deletions.
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 292315f

@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.