mpv top bar missing in Wayland

Bug #1829712 reported by corrado venturini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mpv (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Top bar missing running mpv in Ubuntu 19.10 Wayland
(same in Ubuntu 19.04)
attached picture shows the mpv window in Wayland and x11 for comparison

corrado@corrado-p7-ee-0507:~$ inxi -Fx
System: Host: corrado-p7-ee-0507 Kernel: 5.0.0-13-generic x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: Gnome 3.32.1
           Distro: Ubuntu 19.10 (Eoan Ermine)
Machine: Type: Desktop Mobo: ASRock model: H110M-G/M.2 serial: <root required> UEFI: American Megatrends v: P1.10
           date: 05/11/2017
CPU: Topology: Dual Core model: Intel Core i3-7100 bits: 64 type: MT MCP arch: Kaby Lake rev: 9 L2 cache: 3072 KiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31296
           Speed: 800 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800
Graphics: Device-1: Intel HD Graphics 630 vendor: ASRock driver: i915 v: kernel bus ID: 00:02.0
           Display: wayland server: X.Org 1.20.4 driver: i915 resolution: 1920x1080~60Hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2) v: 4.5 Mesa 19.0.2 direct render: Yes
Audio: Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASRock driver: snd_hda_intel v: kernel
           bus ID: 00:1f.3
           Device-2: Logitech QuickCam Pro 9000 type: USB driver: snd-usb-audio,uvcvideo bus ID: 1-10:5
           Sound Server: ALSA v: k5.0.0-13-generic
Network: Device-1: Intel Ethernet I219-V vendor: ASRock driver: e1000e v: 3.2.6-k port: f040 bus ID: 00:1f.6
           IF: enp0s31f6 state: up speed: 100 Mbps duplex: full mac: 70:85:c2:44:7b:86
Drives: Local Storage: total: 931.51 GiB used: 116.87 GiB (12.5%)
           ID-1: /dev/sda vendor: Toshiba model: DT01ACA100 size: 931.51 GiB
Partition: ID-1: / size: 31.25 GiB used: 10.67 GiB (34.2%) fs: ext4 dev: /dev/sda7
           ID-2: swap-1 size: 8.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2
Sensors: System Temperatures: cpu: 24.0 C mobo: 27.5 C
           Fan Speeds (RPM): fan-1: 0 fan-2: 2347 fan-3: 0 fan-4: 2195 fan-5: 0 fan-6: 0
           Voltages: 12v: N/A 5v: N/A 3.3v: 3.52 vbat: 3.15
Info: Processes: 218 Uptime: 54m Memory: 7.50 GiB used: 1.22 GiB (16.3%) Init: systemd runlevel: 5 Compilers: gcc: 8.3.0
           Shell: bash v: 5.0.3 inxi: 3.0.34
corrado@corrado-p7-ee-0507

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: mpv 0.29.1-1ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-13.14-generic 5.0.6
Uname: Linux 5.0.0-13-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon May 20 09:10:43 2019
ExecutablePath: /usr/bin/mpv
InstallationDate: Installed on 2019-05-07 (12 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190507)
SourcePackage: mpv
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
corrado venturini (corradoventu) wrote :
Revision history for this message
corrado venturini (corradoventu) wrote :
Download full text (8.0 KiB)

messages from mpv

corrado@corrado-p7-ee-0507:~$ cd Videos
corrado@corrado-p7-ee-0507:~/Videos$ mpv -v screencast.AVI --keep-open=yes
[cplayer] Command line options: '-v' 'screencast.AVI' '--keep-open=yes'
[cplayer] mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer] built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer] libavutil 56.14.100 (runtime 56.22.100)
[cplayer] libavcodec 58.18.100 (runtime 58.35.100)
[cplayer] libavformat 58.12.100 (runtime 58.20.100)
[cplayer] libswscale 5.1.100 (runtime 5.3.100)
[cplayer] libavfilter 7.16.100 (runtime 7.40.101)
[cplayer] libswresample 3.1.100 (runtime 3.3.100)
[cplayer] ffmpeg version: 4.1.3-1
[cplayer]
[cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-dvdread --enable-libmpv-shared --enable-libsmbclient --enable-sdl2 --enable-sndio --enable-zsh-comp --disable-build-date --enable-dvbin
[cplayer] List of enabled features: 52arch alsa asm atomics caca cdda cplayer cplugins debug-build drm drmprime dvbin dvdnav dvdread dvdread-common egl-drm egl-helpers egl-x11 fchmod ffmpeg gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack jpeg lcms2 libaf libarchive libass libass-osd libav-any libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband sdl2 sndio stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-glx vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h vulkan wayland wayland-protocols x11 xv zlib zsh-comp
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Reading config file /etc/mpv/mpv.conf
[cplayer] Waiting for scripts...
[stats] script-opts/stats.conf not found.
[stats] lua-settings/stats.conf not found.
[ytdl_hook] script-opts/ytdl_hook.conf not found.
[ytdl_hook] lua-settings/ytdl_hook.conf not found.
[osc] script-opts/osc.conf not found.
[osc] lua-settings/osc.conf not found.
[cplayer] Done loading scripts.
[cplayer] Playing: screencast.AVI
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook
[ytdl_hook] not a ytdl:// url
[ifo] Opening screencast.AVI
[ifo_dvdnav] Opening screencast.AVI
[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.4.0 (COMPLEX)
[osd/libass] Setting up fonts...
[bdmv/bluray] Opening screencast.AVI
[file] Opening screencast.AVI
[demux] Trying demuxers for level=normal.
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[lavf] Found 'avi' at score=100 size=2048.
[lavf] avformat_find_stream_info() finished after 38446 bytes.
[demux] Detected file format: avi (libavformat)
[cplayer] Opening done: screencast.AVI
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[cplayer] (+) Video --vid=1 (mpeg4 600x300 25.000fps)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu] Enabling event driven renderloop!
[vo/gpu/wayland] Re...

Read more...

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

mpv in Wayland is a pure native Wayland app. This means it has no "top bar" or other window decorations.

Wayland requires that apps paint their own custom top bar if they want one at all.

You can still move the window around with Super + left mouse button. And resize it with Super + middle mouse button.

This problem isn't very common, just because for Gnome/GTK apps it is solved by GTK providing a custom top bar. But 'mpv' is not a GTK app so must provide its own.

If you would like the old behaviour then you will need to use Xorg logins only. Sorry.

Changed in mpv (Ubuntu):
status: New → Invalid
Revision history for this message
corrado venturini (corradoventu) wrote :

But 'mpv' is not a GTK app so SHOULD provide its own.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I agree, and I complained too when I first saw it.

You may choose to raise the issue with the developers here:

  https://github.com/mpv-player/mpv/issues

But beware it is a complaint they have heard plenty of times before.

Other pure Wayland apps, like /usr/lib/weston/weston-* exhibit the same issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.