Wayland window positioning. Apr 29, 2021 · The only option you have with Wayland is to make the toplevel as big as the screen, create a subsurface with the image and move that subsurface in the toplevel, as that is possible in Wayland. . Wayland is a replacement for the X11 window system protocol and architecture and is favored over X11 by default in SDL3 for communicating with desktop compositors. See for example. Apr 21, 2025 · Every new Wayland protocol is one less problem from the early days of the project and today it's a protocol called Top Level Tag involved in re spawning windows into there prior opened position Feb 22, 2022 · Hi Robert, I think we can't control or set the window position manually, there's nothing wrong with the imxcompositor_g2d plugin. I launch my application with the weston terminal and it works fine. Is that a wrong setting or a Wayland "feature"? Last edited by rricharz on Fri Feb 02, 2024 4:43 am, edited 1 time in total. Sep 3, 2020 · I have some issues getting child windows to move with their parents, despite this working fine in the mish-mash x/gtk emacs in master. > > > > Third, Wayland does not allow you to find out about other windows or > > desktop elements that you might want to stay clear of, nor about > > monitor edges (well not for this purpose). Everywhere I see, it says that Wayland clients can't know/set their position on screen. It might be an issue related to wayland. ), even worse they keep appearing at random locations. The question is "why"? What risks can it posses? Mar 12, 2025 · Wayland doesnt allow windows to position themselves. May 17, 2025 · I know that Wayland doesn’t support window positioning, so I want to run it with X11 through Xwayland. Presumably you're using a wayland compositor that you expect to listen for and act on window position events? I have two main issues with plasma 5. Dec 8, 2021 · The default is indeed to not provide any window decorations from the compositor. conf and it always open a really small window in the top left corner of the screen. On the Wayland desktop, all windows open at the same position (centered). From the source code, what should I do so that when this program runs in the wayland environment, its sub-windows and key-triggered messages First , My Program is made by QtWidget for Linux Desktop, with the X11 , it work perfectly. 23 Wayland session, the first is about remembering window position and size. But I really like having the System Monitor on the right-side of the screen kind of 'docked' there (as it is when you drag and release the window right on the edge of the screen), but it by default usually (sometimes in the past on previous installations I Jan 3, 2025 · Is there any hope that we may see this implemented reliably any time soon under Wayland? It’s an important part of any OS and only a handful of applications actually remember the geometry and location of their own windows. Nov 30, 2016 · Collabora's latest patch series for Wayland/Weston is implementing support for initial XWayland window positioning with the Weston compositor. Dec 8, 2021 · Do Wayland "windows" really have no decorations or ways to position/resize them? I have been experimenting with Wayland by writing some simple programs that render some basic OpenGL stuff to an EGL surface. It works well for the majority of applications, however, applications may encounter limitations or behavior that is different from other windowing systems. If my understanding is correct, when the waylandsink is fullscreen at the end you will have a scaled output. I tried to use the function wl_shell_surface_set_transient (wl_shell_surface, wl_surface, POS_X, POS Oct 29, 2022 · I try to use HEADERBAR, but cannot found information about how add it to non-toplevel-window/widget. Sep 27, 2025 · The approach taken by Wayland supports most of the windowing idioms recognised by users and can be extended to cover more without allowing clients complete freedom. Every window has its own local coordinate system, but they exist in a "vacuum" and independently of each other and of monitors. In this blog post, I will describe how KWin/Wayland manages window geometry, which can… With some help from the Wayland/Weston forums I made a workaround, which was to set my windows to fullscreen output dimensions with a transparent background, then offset my content within the full screen. From the source code, what should I do so that when this program runs in the wayland environment, its sub-windows and key-triggered messages Jun 15, 2022 · Can the position of a window be accessed from wayland? The only information available on this topic mentions accessing positional information based on a parent window, but this isn't always practical (when there are multiple top-level windows for example). Sep 20, 2022 · One of the target runs the X server while the other one runs Wayland/Weston. but if I turn My Ubuntu to Wayland, From a functional point of view, although it can also work normally, the positioning of its message popup window is messed up. But the position of my application is random on the screen. (Though some, like KWin, have a custom Wayland protocol that allows apps to request their windows to be decorated, or the other way around, but this is not universally supported. ) Expectations depend on whether you're using an UI toolkit or rolling your own from zero – I mean, most regular apps May 26, 2021 · So at most you can position a window > > respective to another window, but not globally or per-monitor. In the target running Weston, we are unable to set the position of child windows (Gtk::Window, Gtk::Dialog, Gtk::MessageDialog etc. Now I understand that while an application can request the window to be positioned anywhere on screen (or relative to the top level Second, Wayland does not define a coordinate system that would be useful for window positioning. On X11, application windows could position themselves independently anywhere on the screen, and used this to facilitate these interactions. Dec 12, 2023 · In Wayland, the composer (mutter/clutter in Gnome) controls the window position, not the graphics library (GTK) itself. (I really don’t want to switch DE just to run it) But, I don’t know how to? I can’t figure it out. While it may look a very trivial task at quick glance, unfortunately, it's not like that. Specify how the window should be positioned if the originally intended position caused the surface to be constrained, meaning at least partially outside positioning boundaries set by the compositor. Feb 11, 2024 · The Wayland approach allows for all of this to go away because the compositor applies one set of rules for how to handle positioning that all windows have to obey, which makes the positioning consistent and predictable. Nov 20, 2020 · Kivy's behaviour here is probably platform independent, I would guess that the SDL2 backend is failing to do something under wayland. The process actually works better under X11. First , My Program is made by QtWidget for Linux Desktop, with the X11 , it work perfectly. However, a deliberate design trait of Wayland makes application windows ignorant of their exact placement on screen or relative to other windows. This is quite confusing because one constantly has to rearrange them. So at most you can position a window respective to another window, but not globally or per-monitor. To interact with the composer it will be necessary to create something along the lines of a gnome shell extension. Jan 15, 2022 · It perhaps comes as no surprise that handling window position (or geometry, in general) is one of the most important responsibilities of the window manager. I need to allow user to move window, but only in certain condition (when user invokes specific w Aug 13, 2017 · However, under Wayland, there is no such feature due to how it is written for security. Jan 31, 2024 · I'm an experienced Raspberry Pi user, but new to the Raspberry Pi 5 and Wayland. It also allows you to disable the behavior if you’d prefer for the compositor to always position all windows. The adjustment is set by constructing a bitmask describing the adjustment to be made when the surface is constrained on that axis. this works fine for wayland, as the new windows are created as GTK_WINDOW_POPUP types with gtk_window_transient_for and are handled as subsurfaces of the parent, and get relocates as part of the surface being moved. I’ve tried these commands: If you don't specifically care about using gnome you can probably still run some gnome services but just use sway/wlroots as your window manager/wayland compositor and use command criteria to assign windows to specific workspace and resize and move them, and configure keybindings or use sway-msg cli tool to manually arrange. Nov 29, 2019 · Hi, I run an application using Wayland, EGL and Open GLES2 on IMX8qxp. Window placement in Wayland is not supported, not because of some arbitrary "Because security" that people assume, but because applications assuming global coordinates lead to some other issues, and made things less portable. “a deliberate design trait of Wayland makes application windows ignorant of their exact placement on screen or relative to other windows. Did try launching from terminal like kate /etc/pacman. The Wayland APIs just aren't meant for this kind of application level control as of now. 93edb c4i655 jnn61w x3hepj nc cecx xuufi fq qwf tt2