File gcin-bnc858193-fixes-frozen-gnome-shell.patch of Package gcin.openSUSE_13.1_Update
diff --git a/eve.cpp b/eve.cpp
index 7a37666..510bd2c 100755
--- a/eve.cpp
+++ b/eve.cpp
@@ -1486,24 +1486,6 @@ int xim_ForwardEventHandler(IMForwardEventStruct *call_data)
void gcin_reset();
-#if UNIX
-gboolean is_tip_window(Window inpwin)
-{
- // Dirty fix for chrome, doesn't work well.
- if (!inpwin)
- return FALSE;
- XWindowAttributes att;
- XGetWindowAttributes(dpy, inpwin, &att);
-
- dbg("%d, %d\n", att.width, att.height);
-// chrome window is override_redirect
-// if (att.override_redirect)
-// return;
-
- return att.override_redirect && att.height < 24;
-}
-#endif
-
int gcin_FocusIn(ClientState *cs)
{
dbg("gcin_FocusIn %p\n", cs);
@@ -1517,11 +1499,7 @@ int gcin_FocusIn(ClientState *cs)
Window win = cs->client_win;
if (!win)
return FALSE;
-#if UNIX
- if (is_tip_window(win)) {
- return FALSE;
- }
-#endif
+
reset_current_in_win_xy();
if (cs) {
@@ -1615,13 +1593,6 @@ int gcin_FocusOut(ClientState *cs)
if (!cs->client_win)
return FALSE;
-#if UNIX
- if (is_tip_window(cs->client_win)) {
- return FALSE;
- }
-#endif
-
-
if (t - last_focus_out_time < 100000) {
last_focus_out_time = t;
return FALSE;