mpv icon indicating copy to clipboard operation
mpv copied to clipboard

wayland: window has not border and title bar

Open Nikoli opened this issue 13 years ago • 22 comments

When using with weston-1.2.0 mpv has no window borders, no title bar with filename and buttons.

Nikoli avatar Jul 16 '13 15:07 Nikoli

I like to implement client side decorations, but for that I have to use the subsurfaces protocoll in weston. I will look into it once I have more time.

giselher avatar Jul 16 '13 15:07 giselher

Also, doesn't it depend on the compositor whether client side decorations are required or not?

ghost avatar Jul 18 '13 17:07 ghost

Yes. I guess once it becomes mainstream there will be server side decorations, just like in x11, to have a more consistent look.

giselher avatar Jul 18 '13 18:07 giselher

I won't add client side decorations in the near future, because the subsurface protocol extension is still not in the core protocol and it would add dependencies on cairo or any other toolkit I might use for drawing decorations.

giselher avatar Aug 05 '13 18:08 giselher

I also heard they want to deprecate client side decorations?

In any case, depending on cairo or gtk or qt just for decorations would be major bloat.

ghost avatar Aug 05 '13 18:08 ghost

GTK/Qt is very unlikely, but cairo or any other drawing library would be sufficient for just border and buttons.

They also won't deprecate client side decorations. I guess in the future the will there will be a gnome compositor and a kde compositor that will provide server side decorations that will look native. The gtk client side decorations are already themeable which would make mixing gtk and qt applications also painless.

giselher avatar Aug 05 '13 19:08 giselher

The gtk client side decorations are already themeable which would make mixing gtk and qt applications also painless.

Always requiring server-side decorations would get them rid of this non-sense.

ghost avatar Aug 05 '13 20:08 ghost

I think using cairo is fine: weston example apps use it, gtk+2,3 require it, most users of wayland most likely have it installed.

Nikoli avatar Aug 06 '13 08:08 Nikoli

I will probably have time in October to add a prototype of client side rendering, but no promises. I also still have a barely working code for Wayland/SHM backend which I could also pick up again. The problem still remains that this will add further dependencies, but we could add a switch --enable-wayland-csd to solve this.

Resizing, moving and closing is already possible without any decorations.

Anyway, I am going to wait for the first KDE and Gnome releases with their own compositor to see how the server side decorations will work and if client side decorations have any use at all.

giselher avatar Aug 06 '13 08:08 giselher

Never going to happen until there is some really basic library for adding window borders and other stuff. Because this needs some serious work for input regions and drawing the borders. i don't feel like investing the work needed for this.

giselher avatar Jan 04 '14 16:01 giselher

mpv on Fedora 24 with Gnome 3.20 under Wayland still lacks a border and title bar. I don't know if anything has changed since 2014 that would make it easier to implement now?

DanOpcode avatar Jun 29 '16 06:06 DanOpcode

I don't know if anything has changed since 2014 that would make it easier to implement now?

No. You can use the mpv X11 backend instead.

ghost avatar Jun 29 '16 08:06 ghost

wontfix? Ok, in two years, mpv is a dead project...

ghost avatar Nov 08 '16 22:11 ghost

In two years, every compositor will be able to draw server-side decorations.

haasn avatar Nov 08 '16 22:11 haasn

So far, still nothing :-P so ~10 month left

But so far MPV is the only software, that has this issue for me.

DooMMasteR avatar Jan 15 '18 13:01 DooMMasteR

@DooMMasteR update your garbage compositor, GTK implemented the server side decoration protocol. Guess haasn was right, huh?

CounterPillow avatar Jan 15 '18 14:01 CounterPillow

yeah, but the current state on an Ubuntu 17.10 machine ist still: no decorations unless gnome-mpv is used which still has no OSD-Control-UI

DooMMasteR avatar Jan 15 '18 14:01 DooMMasteR

You can enable OSD in gnome-mpv in settings (you can pass options to mpv), just google it.

ghost avatar Jan 15 '18 14:01 ghost

but not disable the slider again :-P it is still crippled for me with Gnome 3.26.1 compared to Xorg

also the windows are still click through :-P

DooMMasteR avatar Jan 15 '18 14:01 DooMMasteR

yeah, but the current state on an Ubuntu 17.10 machine ist still: no decorations unless gnome-mpv is used which still has no OSD-Control-UI

You using outdated software is not upstream mpv's problem.

CounterPillow avatar Jan 15 '18 14:01 CounterPillow