forked from enlightenment/enlightenment
semi fix systray xembed refresh
This commit is contained in:
parent
8aa2829cdb
commit
a899322813
|
@ -436,7 +436,7 @@ _systray_xembed_activate(Instance_Xembed *xembed)
|
||||||
|
|
||||||
atom = _systray_xembed_atom_st_get(systray_manager_number_get(xembed->inst));
|
atom = _systray_xembed_atom_st_get(systray_manager_number_get(xembed->inst));
|
||||||
old_win = ecore_x_selection_owner_get(atom);
|
old_win = ecore_x_selection_owner_get(atom);
|
||||||
if (old_win != 0) return 0;
|
if (old_win && (old_win != e_comp_get(xembed->inst->con)->cm_selection)) return 0;
|
||||||
|
|
||||||
if (xembed->win.base == 0)
|
if (xembed->win.base == 0)
|
||||||
{
|
{
|
||||||
|
@ -445,6 +445,7 @@ _systray_xembed_activate(Instance_Xembed *xembed)
|
||||||
}
|
}
|
||||||
|
|
||||||
xembed->win.selection = e_comp_get(xembed->inst->con)->cm_selection;
|
xembed->win.selection = e_comp_get(xembed->inst->con)->cm_selection;
|
||||||
|
if (old_win) return 1;
|
||||||
if (!_systray_xembed_selection_owner_set_current(xembed))
|
if (!_systray_xembed_selection_owner_set_current(xembed))
|
||||||
{
|
{
|
||||||
xembed->win.selection = 0;
|
xembed->win.selection = 0;
|
||||||
|
|
Loading…
Reference in New Issue