[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scratch/ns/refactor cc9dbaf 4/6: Fix macOS live resize drawing
From: |
Robert Pluim |
Subject: |
Re: scratch/ns/refactor cc9dbaf 4/6: Fix macOS live resize drawing |
Date: |
Wed, 23 Jun 2021 16:32:47 +0200 |
>>>>> On Wed, 23 Jun 2021 15:05:32 +0100, Alan Third <alan@idiocy.org> said:
Alan> Hi Robert, can you try uncommenting the code in layoutSublayersOfLayer
Alan> and see if that fixes it?
Hi Alan, this seems to do the job:
diff --git i/src/nsterm.m w/src/nsterm.m
index b5bfb242d5..5298466f27 100644
--- i/src/nsterm.m
+++ w/src/nsterm.m
@@ -8056,14 +8056,14 @@ - (void)layoutSublayersOfLayer:(CALayer *)layer
however I can't understand why it would be different from
viewWillDraw. I'll leave this commented out for now, but if
nobody reports a crash it can be removed. */
- // bool owfi = waiting_for_input;
- // waiting_for_input = 0;
- // block_input ();
+ bool owfi = waiting_for_input;
+ waiting_for_input = 0;
+ block_input ();
redisplay ();
- // unblock_input ();
- // waiting_for_input = owfi;
+ unblock_input ();
+ waiting_for_input = owfi;
}
}
#endif
Robert
--