fix comp bug where focus+urgency states were not applied to windows on startup

SVN revision: 82769
This commit is contained in:
Mike Blumenkrantz 2013-01-14 17:03:52 +00:00
parent 4d97230dfd
commit c088474ba6
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-01-14 Mike Blumenkrantz
* compositor now applies focus/urgency state to windows on first show
2013-01-12 Mike Blumenkrantz
* split comp window match settings into separate dialog

1
NEWS
View File

@ -67,6 +67,7 @@ Improvements:
* composite settings dialog is now accessible from Settings menu
* added focus-out color class and functionality to default theme
* added fallback timer for system actions
* compositor now applies focus/urgency state to windows on first show
Fixes:
* Force check changed upon confirmation dialog closure for engine settings.

View File

@ -1826,12 +1826,16 @@ _e_comp_win_shadow_setup(E_Comp_Win *cw)
edje_object_signal_emit(cw->shobj, "e,state,shadow,off", "e");
}
if (cw->bd || focus || urgent)
if (cw->bd)
{
if (focus || (cw->bd && cw->bd->focused))
edje_object_signal_emit(cw->shobj, "e,state,focus,on", "e");
else
edje_object_signal_emit(cw->shobj, "e,state,focus,off", "e");
if (urgent || (cw->bd && cw->bd->client.icccm.urgent))
edje_object_signal_emit(cw->shobj, "e,state,urgent,on", "e");
else
edje_object_signal_emit(cw->shobj, "e,state,urgent,off", "e");
}
if (cw->visible)
edje_object_signal_emit(cw->shobj, "e,state,visible,on", "e");