<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Do you need to do that for each window? Why don&#39;t you just listen for<br>

that signal in just the main activity window and stop everything when<br>
gtk.gdk.VISIBILITY_FULLY_OBSCURED and resume when otherwise?<br>
</blockquote><div><br>&nbsp;</div></div>Full screen modes in Record completely obscure the main activity window.<br><br>We don&#39;t just listen for visibility events on the video windows because sometimes these are fully obscured (when transcoding, for example).<br>
<br>Therefore we listen on both the main activity window and the video windows, and in consultation with the activity&#39;s current state (fullscreen, normal, transcoding), decide if Record is the current activity.<br><br>
I&#39;ve never fully understood the rationale for why the sugar api does not alert activities as to when they are active or not, thereby saving all activity authors these hassles.<br></div>