GNOME Bugzilla – Bug 167471
Critical warning when switching to fullscreen
Last modified: 2005-07-27 15:59:51 UTC
Please describe the problem: When switching to fullscreen with F11 the following warning is printed (eog:30881): Gdk-CRITICAL **: gdk_window_get_origin: assertion `window != NULL' failed from a cursory look the warning is triggered by monitor = gdk_screen_get_monitor_at_window (screen, GTK_WIDGET (fs)->window); in eog-full-screen.c::eog_full_screen_instance_init and is pretty reasonable since fs has just been created and never realized so ->window is still null. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
I see this too.
took another quick look at this... just for reference, the problem was introduced when fixing this bug http://bugzilla.gnome.org/show_bug.cgi?id=137137 my take is the following: as said above the warning is triggered because GTK_WIDGET (fs)->window is NULL, since fs is not realized; this also explains the problem still remaining in bug #137137 (using always the first physical monitor, no matter where eog is), since gdk_screen_get_monitor_at_window returns the default. My suggested solution is to fetch the monitor of the non maximized eog window and pass it down to the eog_fullscreen_new() function, so that the right monitor is used. (no patchy patch, because I don't have a xinerama setup to test with)
There is a patch in bug #309100
this's been fixed by davyd's patch.