mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xdg: Allow wayland applications to start in fullscreen
This commit is contained in:
parent
5f27356fc1
commit
8e9643a855
1 changed files with 3 additions and 8 deletions
11
src/xdg.c
11
src/xdg.c
|
|
@ -331,13 +331,6 @@ xdg_toplevel_view_map(struct view *view)
|
||||||
view->mapped = true;
|
view->mapped = true;
|
||||||
view->surface = view->xdg_surface->surface;
|
view->surface = view->xdg_surface->surface;
|
||||||
if (!view->been_mapped) {
|
if (!view->been_mapped) {
|
||||||
/*
|
|
||||||
* Start unmaximized to avoid padding/position complications
|
|
||||||
* and keep code simple
|
|
||||||
*/
|
|
||||||
view_maximize(view, false);
|
|
||||||
view_set_fullscreen(view, false, NULL);
|
|
||||||
|
|
||||||
foreign_toplevel_handle_create(view);
|
foreign_toplevel_handle_create(view);
|
||||||
|
|
||||||
view->ssd.enabled = has_ssd(view);
|
view->ssd.enabled = has_ssd(view);
|
||||||
|
|
@ -347,7 +340,9 @@ xdg_toplevel_view_map(struct view *view)
|
||||||
}
|
}
|
||||||
|
|
||||||
update_padding(view);
|
update_padding(view);
|
||||||
position_xdg_toplevel_view(view);
|
if (!view->maximized && !view->fullscreen) {
|
||||||
|
position_xdg_toplevel_view(view);
|
||||||
|
}
|
||||||
|
|
||||||
struct wlr_subsurface *subsurface;
|
struct wlr_subsurface *subsurface;
|
||||||
wl_list_for_each(subsurface, &view->surface->current.subsurfaces_below,
|
wl_list_for_each(subsurface, &view->surface->current.subsurfaces_below,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue