Whoops, bugged that last one bad (yet it worked fine in X11 for some reason????). Fixed.
This commit is contained in:
parent
3f1540b84a
commit
0c209a8277
|
@ -160,9 +160,6 @@ void uiWindowContentSize(uiWindow *w, int *width, int *height)
|
||||||
dbgPrintSizes(w, "AFTER GET");
|
dbgPrintSizes(w, "AFTER GET");
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO what happens if the size is already the current one?
|
|
||||||
// TODO a spurious size-allocate gets sent after this function returns
|
|
||||||
// TODO can't reduce the size this way
|
|
||||||
void uiWindowSetContentSize(uiWindow *w, int width, int height)
|
void uiWindowSetContentSize(uiWindow *w, int width, int height)
|
||||||
{
|
{
|
||||||
GtkAllocation childAlloc;
|
GtkAllocation childAlloc;
|
||||||
|
@ -192,8 +189,8 @@ void uiWindowSetContentSize(uiWindow *w, int width, int height)
|
||||||
winWidth += width;
|
winWidth += width;
|
||||||
winHeight += height;
|
winHeight += height;
|
||||||
// and set it
|
// and set it
|
||||||
// TODO will this move the window?
|
// this will not move the window in my tests, so we're good
|
||||||
gtk_window_resize(w->window, width, height);
|
gtk_window_resize(w->window, winWidth, winHeight);
|
||||||
|
|
||||||
dbgPrintSizes(w, "AFTER SET");
|
dbgPrintSizes(w, "AFTER SET");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue