}
if (cw->counter)
{
- printf("nosync\n");
if (cw->bd)
- ecore_x_e_comp_sync_cancel_send(cw->bd->client.win);
+ {
+ ecore_x_e_comp_sync_cancel_send(cw->bd->client.win);
+ }
else
- ecore_x_e_comp_sync_cancel_send(cw->win);
+ {
+ ecore_x_e_comp_sync_cancel_send(cw->win);
+ }
ecore_x_sync_counter_inc(cw->counter, 1);
}
// ecore_x_window_hide(cw->win);
if (cw->counter)
{
if (cw->bd)
- ecore_x_e_comp_sync_begin_send(cw->bd->client.win);
+ {
+ ecore_x_e_comp_sync_begin_send(cw->bd->client.win);
+ }
else
- ecore_x_e_comp_sync_begin_send(cw->win);
+ {
+ ecore_x_e_comp_sync_begin_send(cw->win);
+ }
}
}
}
if (cw->counter)
{
if (cw->bd)
- ecore_x_e_comp_sync_cancel_send(cw->bd->client.win);
+ {
+ ecore_x_e_comp_sync_cancel_send(cw->bd->client.win);
+ }
else
- ecore_x_e_comp_sync_cancel_send(cw->win);
+ {
+ ecore_x_e_comp_sync_cancel_send(cw->win);
+ }
ecore_x_sync_counter_inc(cw->counter, 1);
}
eina_hash_del(borders, e_util_winid_str_get(cw->bd->client.win), cw);
(_comp_mod->conf->loose_sync))
cw->counter = ecore_x_e_comp_sync_counter_get(win);
else
- ecore_x_e_comp_sync_cancel_send(win);
+ {
+ ecore_x_e_comp_sync_cancel_send(win);
+ }
}
else
cw->counter = ecore_x_e_comp_sync_counter_get(win);
eina_hash_add(borders, e_util_winid_str_get(cw->bd->client.win), cw);
cw->dfn = e_object_delfn_add(E_OBJECT(cw->bd),
_e_mod_comp_object_del, cw);
- _e_mod_comp_win_sync_setup(cw, cw->bd->client.win);
+// setup on show
+// _e_mod_comp_win_sync_setup(cw, cw->bd->client.win);
}
else
{
cw->primary_type = ECORE_X_WINDOW_TYPE_UNKNOWN;
}
}
- _e_mod_comp_win_sync_setup(cw, cw->win);
+// setup on show
+// _e_mod_comp_win_sync_setup(cw, cw->win);
}
// printf("CW ADD %x\n", cw->win);
if (!cw->counter)
cw->win, cw->redirected, cw->pixmap, cw->dmg_updates);
_e_mod_comp_win_configure(cw, cw->hidden.x, cw->hidden.y, cw->w, cw->h, cw->border);
if ((cw->input_only) || (cw->invalid)) return;
+
+// setup on show
+ if (cw->bd)
+ _e_mod_comp_win_sync_setup(cw, cw->bd->client.win);
+ else
+ _e_mod_comp_win_sync_setup(cw, cw->win);
+
if (cw->real_hid)
{
DBG(" [0x%x] real hid - fix\n", cw->win);