diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-17 14:36:12 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-17 14:36:39 +0300 |
commit | 19a0d3cbb7ca5b12057b195051de4ae8000c7a32 (patch) | |
tree | 951bec59efbf606804d7dcdf39a661ace7a5cb44 /src/ui | |
parent | 253cbf6605bd30aac1825213c4fd48b4296804d7 (diff) |
Window: Redraw tweaks on MSYS
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 64dcd6f2..1727b988 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -219,9 +219,9 @@ static void updateSize_Window_(iWindow *d, iBool notifyAlways) { | |||
219 | size->y -= d->keyboardHeight; | 219 | size->y -= d->keyboardHeight; |
220 | if (notifyAlways || !isEqual_I2(oldSize, *size)) { | 220 | if (notifyAlways || !isEqual_I2(oldSize, *size)) { |
221 | windowSizeChanged_Window_(d); | 221 | windowSizeChanged_Window_(d); |
222 | const iBool isHoriz = (d->place.lastNotifiedSize.x != size->x); | ||
223 | const iBool isVert = (d->place.lastNotifiedSize.y != size->y); | ||
224 | if (!isEqual_I2(*size, d->place.lastNotifiedSize)) { | 222 | if (!isEqual_I2(*size, d->place.lastNotifiedSize)) { |
223 | const iBool isHoriz = (d->place.lastNotifiedSize.x != size->x); | ||
224 | const iBool isVert = (d->place.lastNotifiedSize.y != size->y); | ||
225 | postCommandf_App("window.resized width:%d height:%d horiz:%d vert:%d", | 225 | postCommandf_App("window.resized width:%d height:%d horiz:%d vert:%d", |
226 | size->x, | 226 | size->x, |
227 | size->y, | 227 | size->y, |
@@ -235,10 +235,6 @@ static void updateSize_Window_(iWindow *d, iBool notifyAlways) { | |||
235 | } | 235 | } |
236 | 236 | ||
237 | void drawWhileResizing_Window(iWindow *d, int w, int h) { | 237 | void drawWhileResizing_Window(iWindow *d, int w, int h) { |
238 | /* This is called while a window resize is in progress, so we can be pretty confident | ||
239 | the size has actually changed. */ | ||
240 | d->size = coord_Window(d, w, h); | ||
241 | windowSizeChanged_Window_(d); | ||
242 | draw_Window(d); | 238 | draw_Window(d); |
243 | } | 239 | } |
244 | 240 | ||