commit 786e61c
chld
·
2026-07-12 14:07:43 +0000 UTC
parent 999f1d5
only resize pixmap if window gets bigger to prevent drawing loss
1 files changed,
+1,
-1
M
xd.c
M
xd.c
+1,
-1
1@@ -50,7 +50,7 @@ int main(void)
2 XCopyArea(d,p,w,gc,0,0,wi,hi,0,0);
3 break;
4 case ConfigureNotify:
5- if(ev.xconfigure.width!=wi||ev.xconfigure.height!=hi)
6+ if(ev.xconfigure.width>wi&&ev.xconfigure.height>hi)
7 {
8 Pixmap l=XCreatePixmap(d,w,
9 ev.xconfigure.width,ev.xconfigure.height,