mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland: Allow xorg applications to start in fullscreen
This commit is contained in:
parent
8dd3dc3e3b
commit
7a3cd6549e
1 changed files with 14 additions and 13 deletions
|
|
@ -255,10 +255,12 @@ static void
|
||||||
map(struct view *view)
|
map(struct view *view)
|
||||||
{
|
{
|
||||||
view->mapped = true;
|
view->mapped = true;
|
||||||
view->x = view->xwayland_surface->x;
|
if (!view->maximized && !view->fullscreen) {
|
||||||
view->y = view->xwayland_surface->y;
|
view->x = view->xwayland_surface->x;
|
||||||
view->w = view->xwayland_surface->width;
|
view->y = view->xwayland_surface->y;
|
||||||
view->h = view->xwayland_surface->height;
|
view->w = view->xwayland_surface->width;
|
||||||
|
view->h = view->xwayland_surface->height;
|
||||||
|
}
|
||||||
view->surface = view->xwayland_surface->surface;
|
view->surface = view->xwayland_surface->surface;
|
||||||
view->ssd.enabled = want_deco(view);
|
view->ssd.enabled = want_deco(view);
|
||||||
|
|
||||||
|
|
@ -268,22 +270,21 @@ map(struct view *view)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!view->been_mapped) {
|
if (!view->been_mapped) {
|
||||||
view_maximize(view, false);
|
|
||||||
view_set_fullscreen(view, false, NULL);
|
|
||||||
|
|
||||||
foreign_toplevel_handle_create(view);
|
foreign_toplevel_handle_create(view);
|
||||||
|
|
||||||
struct wlr_box box =
|
if (!view->maximized && !view->fullscreen) {
|
||||||
output_usable_area_from_cursor_coords(view->server);
|
struct wlr_box box =
|
||||||
view->x = box.x;
|
output_usable_area_from_cursor_coords(view->server);
|
||||||
view->y = box.y;
|
view->x = box.x;
|
||||||
view_center(view);
|
view->y = box.y;
|
||||||
|
view_center(view);
|
||||||
|
}
|
||||||
|
|
||||||
view_discover_output(view);
|
view_discover_output(view);
|
||||||
view->been_mapped = true;
|
view->been_mapped = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (view->ssd.enabled) {
|
if (view->ssd.enabled && !view->fullscreen && !view->maximized) {
|
||||||
top_left_edge_boundary_check(view);
|
top_left_edge_boundary_check(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue