Re: Limiting Xwayland to only one screen
On Wed, 6 Feb 2019 19:05:15 + "Singh, Satyeshwar" wrote: > Hi Pekka, > Yes I am aware of the rootless mode as well, but seeing the black > screen is only one of the issues. I would also like the apps to only > run on a single screen. Some apps are written such that they find out > how big of a buffer would fit the entire screen and then create an > image which spans it (in my case both screens). I guess I can use > xdotool to resize the app but that happens after the surface has been > created and I would rather have the app only create one screen buffer > to begin with. So is there an option that doesn't require modifying > each app? -Satyeshwar There is another major difference between rootful and rootless modes. In rootful mode, you need to run a traditional X11 window manager or your own choice. But it won't know about the actual monitors, because right now Xwayland's rootful mode only makes a single window and that is all there is. In rootless mode, the Wayland compositor provides a special X11 window manager that is tightly integrated with the compositor, and could in theory manage the X11 windows to be only on the monitor you want. But I suppose that policy is not implemented anywhere yet. If your X11 app is written to make its own decisions and override any window manager actions and ignore RandR information, then the only fix is indeed to patch Xwayland to set up its rootful Wayland window differently, like Adam said. In any case, it seems you will have to do some real coding instead of just configuring. Thanks, pq pgpbAVAhcFgJ1.pgp Description: OpenPGP digital signature ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel
RE: Limiting Xwayland to only one screen
Hi Pekka, Yes I am aware of the rootless mode as well, but seeing the black screen is only one of the issues. I would also like the apps to only run on a single screen. Some apps are written such that they find out how big of a buffer would fit the entire screen and then create an image which spans it (in my case both screens). I guess I can use xdotool to resize the app but that happens after the surface has been created and I would rather have the app only create one screen buffer to begin with. So is there an option that doesn't require modifying each app? -Satyeshwar -Original Message- From: Pekka Paalanen [mailto:ppaala...@gmail.com] Sent: Wednesday, February 6, 2019 12:16 AM To: Singh, Satyeshwar Cc: wayland-devel@lists.freedesktop.org Subject: Re: Limiting Xwayland to only one screen On Tue, 5 Feb 2019 19:51:41 + "Singh, Satyeshwar" wrote: > Hi, > I have a 2 screen configuration running Weston. When I run XWayland on > top, it initially shows a black screen on both the screens. I am > wondering if there is a way to limit XWayland to only using one > screen? Is there a config file or command line option that allows me > to do so? Hi, getting a black screen sounds like you are starting Xwayland manually in rootful mode, where all X11 apps will show up inside the one Xwayland window. Usually people use the Xwayland rootless mode instead, where Xwayland is started automatically by the compositor, and the X11 windows integrate seamlessly with other native Wayland windows. There is no one window for all of Xwayland. Do you intentionally use the rootful mode, or were you just not aware of the rootless mode? For more information on rootful vs. rootless, see https://wayland.freedesktop.org/docs/html/ch05.html Thanks, pq ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: Limiting Xwayland to only one screen
On Tue, 2019-02-05 at 19:51 +, Singh, Satyeshwar wrote: > Hi, > I have a 2 screen configuration running Weston. When I run XWayland > on top, it initially shows a black screen on both the screens. I am > wondering if there is a way to limit XWayland to only using one > screen? Is there a config file or command line option that allows me > to do so? There is not an Xwayland option for this yet. Wouldn't be hard to add though, patches would be gratefully accepted. - ajax ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: Limiting Xwayland to only one screen
On Tue, 5 Feb 2019 19:51:41 + "Singh, Satyeshwar" wrote: > Hi, > I have a 2 screen configuration running Weston. When I run XWayland > on top, it initially shows a black screen on both the screens. I am > wondering if there is a way to limit XWayland to only using one > screen? Is there a config file or command line option that allows me > to do so? Hi, getting a black screen sounds like you are starting Xwayland manually in rootful mode, where all X11 apps will show up inside the one Xwayland window. Usually people use the Xwayland rootless mode instead, where Xwayland is started automatically by the compositor, and the X11 windows integrate seamlessly with other native Wayland windows. There is no one window for all of Xwayland. Do you intentionally use the rootful mode, or were you just not aware of the rootless mode? For more information on rootful vs. rootless, see https://wayland.freedesktop.org/docs/html/ch05.html Thanks, pq pgpnrjQ1SCILx.pgp Description: OpenPGP digital signature ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel