summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c8
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
237void drawWhileResizing_Window(iWindow *d, int w, int h) { 237void 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