mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Cursor changes size and shape in Wayland

Open mypetbirdrules opened this issue 10 years ago • 6 comments

For some reason, when I hover over the MPV window in GNOME Wayland, the cursor becomes enlarged. I am also unable to resize the window with the cursor, and I am forced to use keyboard shortcuts. The window also doesn't seem to resize with the video's aspect ratio like it did in X11, creating black boxes to the left and right of the video.

mypetbirdrules avatar Jun 01 '16 11:06 mypetbirdrules

All of those are known bugs. Currently mpv picks the default cursor theme and size which doesn't match the non-gnome default. Resizing with the mouse won't work because there is no border (wontfix, we'd have to include the entire GTK). The black border strangely happens only on 1920x1080 (or probably the monitor's apect ratio) after a fullscreen mode exit, so it might be a compositor bug. mutter has some wayland problems right now.

ghost avatar Jun 02 '16 12:06 ghost

I am also unable to resize the window with the cursor

Isn't client-side decoration great? There are maybe some things you could try to coax the compositor into drawing decorations on the mpv window or something.

haasn avatar Jun 02 '16 21:06 haasn

Why not break mpv into a Wayland/GNOME/GTK branch to fix client side decoration problems? GTK can be included easily without annoying others with dependencies.

mypetbirdrules avatar Jun 03 '16 17:06 mypetbirdrules

May as well leave this to a frontend instead.

ghost avatar Jun 03 '16 17:06 ghost

@mypetbirdrules You should take a look at gnome-mpv, which is pretty much just that, but implemented on top of the client API. (I don't know if it works on Wayland.)

rossy avatar Jun 04 '16 07:06 rossy

Its not our bug, the wayland code requests the "default" cursor which is usually the system one, not the toolking one (e.g. libgtk). Gnome doesn't set the system cursor theme but kde does hence it works fine in kde.

ghost avatar Oct 03 '17 19:10 ghost