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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index ed2ec024..0dd248e6 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -405,6 +405,7 @@ void init_Window(iWindow *d, iRect rect) {
405 d->splitMode = d->pendingSplitMode = 0; 405 d->splitMode = d->pendingSplitMode = 0;
406 d->pendingSplitUrl = new_String(); 406 d->pendingSplitUrl = new_String();
407 d->hover = NULL; 407 d->hover = NULL;
408 d->lastHover = NULL;
408 d->mouseGrab = NULL; 409 d->mouseGrab = NULL;
409 d->focus = NULL; 410 d->focus = NULL;
410 iZap(d->cursors); 411 iZap(d->cursors);
@@ -421,7 +422,6 @@ void init_Window(iWindow *d, iRect rect) {
421 d->ignoreClick = iFalse; 422 d->ignoreClick = iFalse;
422 d->focusGainedAt = 0; 423 d->focusGainedAt = 0;
423 d->keyboardHeight = 0; 424 d->keyboardHeight = 0;
424// init_Anim(&d->rootOffset, 0.0f);
425 uint32_t flags = 0; 425 uint32_t flags = 0;
426#if defined (iPlatformAppleDesktop) 426#if defined (iPlatformAppleDesktop)
427 SDL_SetHint(SDL_HINT_RENDER_DRIVER, shouldDefaultToMetalRenderer_MacOS() ? "metal" : "opengl"); 427 SDL_SetHint(SDL_HINT_RENDER_DRIVER, shouldDefaultToMetalRenderer_MacOS() ? "metal" : "opengl");
@@ -1215,10 +1215,6 @@ iBool isOpenGLRenderer_Window(void) {
1215void setKeyboardHeight_Window(iWindow *d, int height) { 1215void setKeyboardHeight_Window(iWindow *d, int height) {
1216 if (d->keyboardHeight != height) { 1216 if (d->keyboardHeight != height) {
1217 d->keyboardHeight = height; 1217 d->keyboardHeight = height;
1218// if (height == 0) {
1219// setFlags_Anim(&d->rootOffset, easeBoth_AnimFlag, iTrue);
1220// setValue_Anim(&d->rootOffset, 0, 250);
1221// }
1222 postCommandf_App("keyboard.changed arg:%d", height); 1218 postCommandf_App("keyboard.changed arg:%d", height);
1223 postRefresh_App(); 1219 postRefresh_App();
1224 } 1220 }