mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
xwayland: Default geometry for undecorated rootful
We specify a sensible default geometry for decorated rootful windows, but not for undecorated ones. Make the default geometry apply to rootful windows in general. Signed-off-by: Kenny Levinsen <kl@kl.wtf>
This commit is contained in:
@@ -816,14 +816,13 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
if (use_fixed_size) {
|
||||
if (xwl_screen->rootless) {
|
||||
ErrorF("error, cannot set a geometry when running rootless\n");
|
||||
return FALSE;
|
||||
} else {
|
||||
xwl_screen->width = xwl_width;
|
||||
xwl_screen->height = xwl_height;
|
||||
}
|
||||
if (!xwl_screen->rootless) {
|
||||
use_fixed_size = 1;
|
||||
xwl_screen->width = xwl_width;
|
||||
xwl_screen->height = xwl_height;
|
||||
} else if (use_fixed_size) {
|
||||
ErrorF("error, cannot set a geometry when running rootless\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifdef XWL_HAS_GLAMOR
|
||||
|
||||
Reference in New Issue
Block a user