サイズ変更が可能に+ボタンで計算の修正

This commit is contained in:
2026-01-18 01:01:47 +09:00
parent 78a1c061a7
commit cf4a24cc74
4 changed files with 79 additions and 72 deletions

9
main.c
View File

@@ -41,6 +41,15 @@ int main() {
exit(1);
}
XSizeHints *sizeHint = XAllocSizeHints();
if (sizeHint) {
sizeHint->flags = PMinSize;
sizeHint->min_width = 382;
sizeHint->min_height = 534;
XSetWMNormalHints(ui.display, ui.xwindow, sizeHint);
XFree(sizeHint);
}
ui.backbuf = XCreatePixmap(ui.display, ui.xwindow,
ui.window.width, ui.window.height,
DefaultDepth(ui.display, screen));