After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 120701 - Metacity 2.5.3 way of handling fullscreen video windows is broken
Metacity 2.5.3 way of handling fullscreen video windows is broken
Status: VERIFIED INCOMPLETE
Product: metacity
Classification: Other
Component: general
2.5.x
Other Linux
: High normal
: METACITY2.6.x
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on: 123838
Blocks:
 
 
Reported: 2003-08-25 21:03 UTC by sdiconov
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description sdiconov 2003-08-25 21:03:23 UTC
I have metacity 2.5.3, xine and Mplayer (versions irrelevant) installed in
the same system. Since upgrade from metacity 2.5.2 it became difficult to
watch any video titles. The issues are related: 

1) It is impossible to control video playback in xine because the WM fails
to place pull-down menu (righ-click) or the video control bar
(middle-click) of xine-ui above the video window when requested. As soon as
I switch the video output window to fullscreen there is no way to make the
playback controls visible again. 

2) Analogous issues plague Mplayer. Fullsreen mode does not work because
the upper panel still hovers above the fullscreen window. The lower panel
sits below as expected though.

Downgrading to metacity 2.5.2 solves the problem completely. Please, make
future versions work as 2.5.2 in this respect again.
Comment 1 Rob Adams 2003-08-25 22:02:14 UTC
Code went in on 08/14 to fix issues with constraints for "pretend"
fullscreen windows like mplayer.  This would fix your perceived
problem that the top panel show up above the full screen window.

The xine menus I guess must have been broken by:
        * src/stack.c (get_standalone_layer): a window should be in the
        fullscreen layer if it or any of its transient descendants are
        focused or expecting the focus and it is either fullscreen or
        fullscreen sized.  Fix for #104369.
                                                                     
                                         
But I suspect that the real problem is something else and it was only
revealed to be an issue by this code.  Can't say more without looking
at it in more detail.  Regardless, this will, unfortunately, not be
fixed in time for Gnome 2.6, since hard code freeze starts today.

The permanent solution is for xine to simply support the standard EWMH
hints.

Setting high priority.
Comment 2 Havoc Pennington 2003-09-26 02:49:41 UTC
Which problems still remain with 2.6.1?
Comment 3 Frederic Crozat 2003-09-30 14:48:44 UTC
Well, I've been playing with mplayer + metacity 2.6.1 today and here
is my "report" :
mplayer 0.91 wrongly (in my opinion) sets _NET_WM_STATE_ABOVE for
fullscreen window, instead of using _NET_WM_STATE_FULLSCREEN (which it
supports, go figure...). With this behaviour, mplayer fullscreen
window is truncated (only 2/3 of its height is correctly displayed) on
initial creation and after doing a normal window/fullscreen switch,
fullscreen window is correctly display, except for panel which is
above it (but I'm not sure it is wrong, since mplayer doesn't use
_NET_WM_STATE_FULLSCREEN).

After patching mplayer to prefer _NET_WM_STATE_FULLSCREEN when it is
available, I get almost correct fullscreen mode but on initial window
creation but its get resized to let panel be displayed :from metacity
log, it is constrainted to 1280x990 (screen is 1280x1024).
Comment 4 Rob Adams 2003-10-04 20:32:02 UTC
mplayer should work correctly with the patch on Bug 123838.  I've
investigated Xine's fullscreen mode and the problem is that it sets
the fullscreen hint on itself but a WM_TYPE_NORMAL hint on the menu. 
Xine should be fixed to set _NET_WM_WINDOW_TYPE_MENU instead of
NORMAL.  According to a comment in stack.c:

  /* We can only do promotion-due-to-group for dialogs and other
   * transients, or weird stuff happens like the desktop window and
   * nautilus windows getting in the same layer, or all gnome-terminal
   * windows getting in fullscreen layer if any terminal is
   * fullscreen.
   */
Comment 5 Frederic Crozat 2003-10-06 09:37:10 UTC
Reopening : patch from bug 123838 doesn't fix mplayer fullscreen mode
at all..

Comment 6 Rob Adams 2003-10-06 15:49:27 UTC
works for me, even without the patch.  What problem exactly are you
having?
Comment 7 Frederic Crozat 2003-10-06 16:07:36 UTC
when not using mplayer patch (or when running mplayer without -fstype
fullscreen), mplayer fullscreen window is not fullscreen, it is only
2/3 of its height.
when using patched mplayer (or with -fstype fullscreen flags), it is
fullscreen BUT gnome-panel is still on top of it, when using "click to
focus" style, because metacity doesn't seem to push it on top of stack
(but mplayer have keyboard focus..). 

This is with mplayer 0.91.
Comment 8 Rob Adams 2003-10-06 16:44:07 UTC
OK, it sounds like somehow the fullscreen heuristic is breaking on
your system.  Does your patched mplayer that sets _FULLSCREEN instead
of _ABOVE work?  That would narrow it down to the heuristic being the
problem.

Also, what is your desktop configuration? (panel positions, screen
resolutions and positions, xinerama configuration if any, etc).
Comment 9 Rob Adams 2003-10-07 02:35:55 UTC
the fact that the window was randomly filling like 2/3 of the screen
is now fixed in CVS.  Hopefully we can work out what's going wrong
with the fullscreen heuristic before the Gnome 2.4.1 release.  Be sure
to post your X config information ASAP
Comment 10 Frederic Crozat 2003-10-07 08:29:21 UTC
Hmm, latest constraint fixes don't fix mplayer not beeing fullscreen
when it uses _NET_WM_STATE_ABOVE. (I've just tested HEAD cvs)

when mplayer is using -fstype fullscreen (which is equivalent to use a
patched mplayer), there is :
1 panel on bottom of screen (I also have the same problem when using
standard GNOME layout with two panels, which are not hidden by mplayer
fullscreen)
no xinerama
click to focus style
1280x1024 16bpp
Comment 11 Rob Adams 2003-11-09 20:33:27 UTC
I can't for the life of me get mplayer's fullscreen mode to not work.
 I've tried putting panels all over the place, and it always goes
fullscreen for me.  I've tried switching to sloppy or click to focus
mode.  I've tried passing -fstype fullscreen and not.  I've tried
activating fullscreen either on the command line or using the "f"
keyboard shortcut.  Invariably, mplayer is displayed correctly
fullscreen, above the panels.
Comment 12 Frederic Crozat 2004-02-02 17:54:12 UTC
Hmm, I've updated metacity to latest gnome 2.4 branch and I can't get
anymore problem with mplayer.. I suggest we close this bug now..
Comment 13 Rob Adams 2004-02-02 18:09:58 UTC
done and done.  Thanks for the report.