Moving window and selecting screen does not work on Wayland
Specification
- pywebview version: 4.4.1
- operating system: Linux Wayland
- web renderer:
Description
The x, y and screen parameters do not work in the Wayland composer. Works correctly on Xorg
Practicalities
-
NO
-
NO
+!
Is this GTK or QT?
QT. Testing was carried out on KDE Plasma 5
I have been having the same issue on my own lately, this time using GTK on Wayland Gnome session
Both move_window or even the default position do not affect the window position.
Moreover, the easy_drag or even the pywebview-drag-region do not seem to work either on wayland
All these do work correctly when switching to a x11 Gnome session
edit: also confirming this on 4.4.1
It seems that you cannot programmatically move a window in Wayland. See for example https://stackoverflow.com/questions/72891037/work-arounds-for-lack-of-qwidgetmove-under-wayland
Window position handling in Wayland is the responsability of the Desktop Manager. This functionality is usually implemented in support libraries provided by the graphical shell. For example with Gnome, you would write an extension in JavaScript using the Shell API and invoke functions such as https://gjs-docs.gnome.org/meta14~14/meta.window#method-move_frame to set the window position, and communicate between your regular application and the extension using whatever means you want (sockets, dbus,...)
Unfortunately there doesn't seem to be a way to access this API from a regular application, so pywebview wouldn't be able to do it in a non intrusive fashion, much less in a desktop agnostic way.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The message to post on the issue when closing it. If none provided, will not comment when closing an issue.