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:
		
							parent
							
								
									53b6d4db7e
								
							
						
					
					
						commit
						8128a21554
					
				|  | @ -816,14 +816,13 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv) | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (use_fixed_size) { |     if (!xwl_screen->rootless) { | ||||||
|         if (xwl_screen->rootless) { |         use_fixed_size = 1; | ||||||
|             ErrorF("error, cannot set a geometry when running rootless\n"); |         xwl_screen->width = xwl_width; | ||||||
|             return FALSE; |         xwl_screen->height = xwl_height; | ||||||
|         } else { |     } else if (use_fixed_size) { | ||||||
|             xwl_screen->width = xwl_width; |         ErrorF("error, cannot set a geometry when running rootless\n"); | ||||||
|             xwl_screen->height = xwl_height; |         return FALSE; | ||||||
|         } |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| #ifdef XWL_HAS_GLAMOR | #ifdef XWL_HAS_GLAMOR | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue