#define WEBSOCKET_PORT 7681
+#ifdef WAYLAND
+#include <Ecore_Wayland.h>
+#endif
+
pthread_t g_ws_server_thread = (pthread_t)NULL;
pthread_mutex_t g_ws_server_mutex = PTHREAD_MUTEX_INITIALIZER;
LOGD("ISE_MESSAGE_COMMAND_SET_KEYBOARD_SIZES : %d %d %d %d",
portrait_width, portrait_height, landscape_width, landscape_height);
+
+#ifdef WAYLAND
+ /* Since the full screen IME makes the client application fully obscured,
+ * when it hides the client receives resume command and try to show IME again.
+ * So here we are adjusting the height value when the requested keyboard size
+ * is the same with the screen size, as a workaround */
+ int scr_w = 0, scr_h = 0;
+ ecore_wl_sync();
+ ecore_wl_screen_size_get(&scr_w, &scr_h);
+ if (scr_w == portrait_width && scr_h == portrait_height) {
+ portrait_height -= 1;
+ }
+ if (scr_h == landscape_width && scr_w == landscape_height) {
+ landscape_height -= 1;
+ }
+#endif
+
set_keyboard_sizes(
portrait_width, portrait_height, landscape_width, landscape_height);
}