Limiting Xwayland to only one screen

Singh, Satyeshwar satyeshwar.singh at
Wed Feb 6 19:05:15 UTC 2019

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?

-----Original Message-----
From: Pekka Paalanen [mailto:ppaalanen at] 
Sent: Wednesday, February 6, 2019 12:16 AM
To: Singh, Satyeshwar <satyeshwar.singh at>
Cc: wayland-devel at
Subject: Re: Limiting Xwayland to only one screen

On Tue, 5 Feb 2019 19:51:41 +0000
"Singh, Satyeshwar" <satyeshwar.singh at> 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?


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


More information about the wayland-devel mailing list