karlch/vimiv

Issue with window in Wayland

Opened this issue · 6 comments

I'm not entirely sure if this is a Wayland issue, but it only cropped after I had to switch to Wayland on my F27 Gnome-shell system.

Now, when I click the title bar of vimiv to try to move the window, it seems to be registered as a click, and the image changes. I cannot move the bar at all. I need to use alt + spacebar, use the arrow keys down to "move" and then it lets me move the window. It's really weird.

It's the same for other window options too. For instance, if I move the mouse to the bottom window border to try and make the window bigger, the mouse changes, but if I click, it's registered by the application and the image changes, and I can't drag the window border.

Is anyone else seeing this? If yes, I'll try to look into what this weirdness is! Probably a Wayland related issue, since I didn't see it on Xorg. I'm not seeing it in other applications yet, though.

As I don't use Wayland, I have never encountered this issue. I find it weird though, as I don't have any X specific code in vimiv itself, only the unit tests run in Xvfb. Other Gtk based programs obviously run fine?

Yeh, others seem to be OK. I'll have to double check. I made a screencast here to show how it is (ignore the blinking please, that seems to be a gnome-screen-recorder issue). I click on the top bar again and again to move the the window, but as you can see, it is registered as a click on the image and the image changes to the next image.

https://ankursinha.fedorapeople.org/vimiv-65/vimiv-wayland.webm

This indeed should not happen. As already mentioned, I am confused as to how this can happen and am unsure how to debug. Might happen that I just leave this alone and continue working on the Qt port as soon as I have time again. Sorry for this!

👍 I think that's a good way to go. Thanks again :)

If this works fine in the Qt port and you are happy with it, feel free to close the issue :)

Not tested the QT port out just yet. Just commented on karlch/vimiv-qt#21 there :)