Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/8344372' into 8344372
Browse files Browse the repository at this point in the history
  • Loading branch information
tsayao committed Nov 30, 2024
2 parents b544ee9 + e67d415 commit 81aee39
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1085,8 +1085,8 @@ void WindowContextTop::set_visible(bool visible) {

void WindowContextTop::set_bounds(int x, int y, bool xSet, bool ySet, int w, int h, int cw, int ch,
float gravity_x, float gravity_y) {
// fprintf(stderr, "set_bounds -> x = %d, y = %d, xset = %d, yset = %d, w = %d, h = %d, cw = %d, ch = %d, gx = %f, gy = %f\n",
// x, y, xSet, ySet, w, h, cw, ch, gravity_x, gravity_y);
fprintf(stderr, "set_bounds -> x = %d, y = %d, xset = %d, yset = %d, w = %d, h = %d, cw = %d, ch = %d, gx = %f, gy = %f\n",
x, y, xSet, ySet, w, h, cw, ch, gravity_x, gravity_y);
// newW / newH are view/content sizes

int newW = 0;
Expand Down Expand Up @@ -1119,6 +1119,8 @@ void WindowContextTop::set_bounds(int x, int y, bool xSet, bool ySet, int w, int
newH = geometry_get_content_height(&geometry);
}

g_print("Size: %d / %d", newW, newH);

if (newW > 0 || newH > 0) {
// call update_window_constraints() to let gtk_window_resize succeed, because it's bound to geometry constraints
update_window_constraints();
Expand Down

0 comments on commit 81aee39

Please sign in to comment.