4 ms·
You can use positioners to request a location for your popup window relative to your toplevel window: https://wayland-book.com/xdg-shell-in-depth/popups.html h
by ATsch 6y ago
You can use positioners to request a location for your popup window relative to your toplevel window:
https://wayland-book.com/xdg-shell-in-depth/popups.html https://wayland-book.com/xdg-shell-in-depth/popups.html
You just don't get to set the absolute position of your window. The precise position and making sure it isn't going off of the edge of the screen is the responsibility of the compositor.
This is good because it ensures proper security sandboxing and makes sure clients still work even when the windowing paradigm changes, e.g. with multiple desktops or window tiling. Developers hardcoding such assumptions is what caused much of the pain of Xorg so it's understandable that they want to make sure it does not happen again.