all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#10002: frame-visible-p reporting t instead of 'icon
@ 2011-11-09  9:41 Antoine Levitt
  2011-11-09 10:42 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Antoine Levitt @ 2011-11-09  9:41 UTC (permalink / raw)
  To: 10002

Hi,

Has there been any recent changes to the code that detects when a frame
is visible or not on GTK? I didn't find anything in bzr log, but I can't
be sure.

The following snippet sometimes (erratically) reports "t" when it should
report "icon". That started happening one, maybe two weeks ago.

(defun blah (&rest args)
  (pp(frame-visible-p (selected-frame))))

(run-with-timer 2 nil 'blah)

(eval the run-with-timer, switch virtual desktops for two seconds, come
back)

I'm using frame-visible-p to handle notifications (notify me when I
don't see what's happening in emacs), so this bug is pretty annoying.

It might be a bug in my display environment, but I haven't changed
anything in a while.

(for reference, I'm using gnome-panel with metacity on ubuntu 11.10)





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#10002: frame-visible-p reporting t instead of 'icon
  2011-11-09  9:41 bug#10002: frame-visible-p reporting t instead of 'icon Antoine Levitt
@ 2011-11-09 10:42 ` Andreas Schwab
  2011-11-09 11:28   ` Antoine Levitt
  2011-11-09 15:18 ` Jan D.
  2014-07-21 14:58 ` Oleh
  2 siblings, 1 reply; 9+ messages in thread
From: Andreas Schwab @ 2011-11-09 10:42 UTC (permalink / raw)
  To: Antoine Levitt; +Cc: 10002

Antoine Levitt <antoine.levitt@gmail.com> writes:

> The following snippet sometimes (erratically) reports "t" when it should
> report "icon". That started happening one, maybe two weeks ago.

I get t also in 23.3, and 'icon when iconified.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#10002: frame-visible-p reporting t instead of 'icon
  2011-11-09 10:42 ` Andreas Schwab
@ 2011-11-09 11:28   ` Antoine Levitt
  0 siblings, 0 replies; 9+ messages in thread
From: Antoine Levitt @ 2011-11-09 11:28 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 10002

09/11/11 11:42, Andreas Schwab
> Antoine Levitt <antoine.levitt@gmail.com> writes:
>
>> The following snippet sometimes (erratically) reports "t" when it should
>> report "icon". That started happening one, maybe two weeks ago.
>
> I get t also in 23.3, and 'icon when iconified.
>
> Andreas.

What do you mean? That's what it's supposed to do. The point is I
sometimes get t when it's iconified (different virtual desktop), and
that's recent. Can you try the code snippet on trunk a bunch of times
and see if you get t when it's iconified?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#10002: frame-visible-p reporting t instead of 'icon
  2011-11-09  9:41 bug#10002: frame-visible-p reporting t instead of 'icon Antoine Levitt
  2011-11-09 10:42 ` Andreas Schwab
@ 2011-11-09 15:18 ` Jan D.
  2011-11-09 15:33   ` Antoine Levitt
  2014-07-21 14:58 ` Oleh
  2 siblings, 1 reply; 9+ messages in thread
From: Jan D. @ 2011-11-09 15:18 UTC (permalink / raw)
  To: Antoine Levitt; +Cc: 10002

Hi.

Are you running Gnome 3 or Unity by any chance?
See here: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9893.

	Jan D.



Antoine Levitt skrev 2011-11-09 10:41:
> Hi,
>
> Has there been any recent changes to the code that detects when a frame
> is visible or not on GTK? I didn't find anything in bzr log, but I can't
> be sure.
>
> The following snippet sometimes (erratically) reports "t" when it should
> report "icon". That started happening one, maybe two weeks ago.
>
> (defun blah (&rest args)
>    (pp(frame-visible-p (selected-frame))))
>
> (run-with-timer 2 nil 'blah)
>
> (eval the run-with-timer, switch virtual desktops for two seconds, come
> back)
>
> I'm using frame-visible-p to handle notifications (notify me when I
> don't see what's happening in emacs), so this bug is pretty annoying.
>
> It might be a bug in my display environment, but I haven't changed
> anything in a while.
>
> (for reference, I'm using gnome-panel with metacity on ubuntu 11.10)
>
>






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#10002: frame-visible-p reporting t instead of 'icon
  2011-11-09 15:18 ` Jan D.
@ 2011-11-09 15:33   ` Antoine Levitt
  2011-11-29  9:38     ` Antoine Levitt
  0 siblings, 1 reply; 9+ messages in thread
From: Antoine Levitt @ 2011-11-09 15:33 UTC (permalink / raw)
  To: Jan D.; +Cc: 10002

09/11/11 16:18, Jan D.
> Hi.
>
> Are you running Gnome 3 or Unity by any chance?
> See here: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9893.
>
> 	Jan D.

I'm using Gnome 3 (libgtk is 3.2.0), but with the "old" gnome desktop
environment (metacity and gnome-panel). My bug did start happening
around the time you made the fix, so your fix is probably what caused
the bug.

Can you take a look as to why that would happen? If you tell me where to
look, I'll be happy to send you the GTK messages in the buggy case.

Antoine





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#10002: frame-visible-p reporting t instead of 'icon
  2011-11-09 15:33   ` Antoine Levitt
@ 2011-11-29  9:38     ` Antoine Levitt
  2011-11-29 18:09       ` Jan Djärv
  0 siblings, 1 reply; 9+ messages in thread
From: Antoine Levitt @ 2011-11-29  9:38 UTC (permalink / raw)
  To: 10002

09/11/11 16:33, Antoine Levitt
> 09/11/11 16:18, Jan D.
>> Hi.
>>
>> Are you running Gnome 3 or Unity by any chance?
>> See here: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9893.
>>
>> 	Jan D.
>
> I'm using Gnome 3 (libgtk is 3.2.0), but with the "old" gnome desktop
> environment (metacity and gnome-panel). My bug did start happening
> around the time you made the fix, so your fix is probably what caused
> the bug.
>
> Can you take a look as to why that would happen? If you tell me where to
> look, I'll be happy to send you the GTK messages in the buggy case.

Hi,

Any news on this? It's still an issue for me, and I'm holding back on
updating emacs because of this bug.






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#10002: frame-visible-p reporting t instead of 'icon
  2011-11-29  9:38     ` Antoine Levitt
@ 2011-11-29 18:09       ` Jan Djärv
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Djärv @ 2011-11-29 18:09 UTC (permalink / raw)
  To: Antoine Levitt; +Cc: 10002-done

Hello.

29 nov 2011 kl. 10:38 skrev Antoine Levitt:

> 09/11/11 16:33, Antoine Levitt
>> 09/11/11 16:18, Jan D.
>>> Hi.
>>> 
>>> Are you running Gnome 3 or Unity by any chance?
>>> See here: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9893.
>>> 
>>> 	Jan D.
>> 
>> I'm using Gnome 3 (libgtk is 3.2.0), but with the "old" gnome desktop
>> environment (metacity and gnome-panel). My bug did start happening
>> around the time you made the fix, so your fix is probably what caused
>> the bug.
>> 
>> Can you take a look as to why that would happen? If you tell me where to
>> look, I'll be happy to send you the GTK messages in the buggy case.
> 
> Hi,
> 
> Any news on this? It's still an issue for me, and I'm holding back on
> updating emacs because of this bug.

This has been fixed now.

	Jan D.






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#10002: frame-visible-p reporting t instead of 'icon
  2011-11-09  9:41 bug#10002: frame-visible-p reporting t instead of 'icon Antoine Levitt
  2011-11-09 10:42 ` Andreas Schwab
  2011-11-09 15:18 ` Jan D.
@ 2014-07-21 14:58 ` Oleh
  2014-09-10 17:03   ` Jan Djärv
  2 siblings, 1 reply; 9+ messages in thread
From: Oleh @ 2014-07-21 14:58 UTC (permalink / raw)
  To: 10002

Hi,

This bug is still active for me, reproducible with `emacs -Q`.
Ubuntu 13.10, Emacs 24.4.50.1.

regards,
Oleh





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#10002: frame-visible-p reporting t instead of 'icon
  2014-07-21 14:58 ` Oleh
@ 2014-09-10 17:03   ` Jan Djärv
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Djärv @ 2014-09-10 17:03 UTC (permalink / raw)
  To: Oleh; +Cc: 10002

Hello.

21 jul 2014 kl. 16:58 skrev Oleh <ohwoeowho@gmail.com>:

> Hi,
> 
> This bug is still active for me, reproducible with `emacs -Q`.
> Ubuntu 13.10, Emacs 24.4.50.1.

It is hard to detect if Emacs is not on the active desktop with Unity (Compiz really).  One could try to calculate the geometries but it would probably be complicated and error prone.
It is a shame that Emacs has exposed these kind of low level details in its Lisp, it is very hard to support when the world moves on to another implementation.

Emacs did not detect iconification correctly in Unity, I fixed that at least.

	Jan D.






^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-09-10 17:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09  9:41 bug#10002: frame-visible-p reporting t instead of 'icon Antoine Levitt
2011-11-09 10:42 ` Andreas Schwab
2011-11-09 11:28   ` Antoine Levitt
2011-11-09 15:18 ` Jan D.
2011-11-09 15:33   ` Antoine Levitt
2011-11-29  9:38     ` Antoine Levitt
2011-11-29 18:09       ` Jan Djärv
2014-07-21 14:58 ` Oleh
2014-09-10 17:03   ` Jan Djärv

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.