mirror of
https://github.com/labwc/labwc.git
synced 2026-03-08 05:33:52 -04:00
xdg: remove useless view_set_ssd_mode() in xdg_toplevel_new()
The desired SSD mode is not known at this point. When it is known, kde-deco/xdg-deco will call view_set_ssd_mode() themselves.
This commit is contained in:
parent
2b7d0e17fc
commit
a75301dae5
1 changed files with 0 additions and 11 deletions
11
src/xdg.c
11
src/xdg.c
|
|
@ -651,10 +651,6 @@ xdg_toplevel_view_map(struct view *view)
|
||||||
if (!view->been_mapped) {
|
if (!view->been_mapped) {
|
||||||
init_foreign_toplevel(view);
|
init_foreign_toplevel(view);
|
||||||
|
|
||||||
/*
|
|
||||||
* FIXME: is this needed or is the earlier logic in
|
|
||||||
* xdg_surface_new() enough?
|
|
||||||
*/
|
|
||||||
if (view_wants_decorations(view)) {
|
if (view_wants_decorations(view)) {
|
||||||
view_set_ssd_mode(view, LAB_SSD_MODE_FULL);
|
view_set_ssd_mode(view, LAB_SSD_MODE_FULL);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -907,13 +903,6 @@ xdg_toplevel_new(struct wl_listener *listener, void *data)
|
||||||
CONNECT_SIGNAL(xdg_surface, xdg_toplevel_view, new_popup);
|
CONNECT_SIGNAL(xdg_surface, xdg_toplevel_view, new_popup);
|
||||||
|
|
||||||
wl_list_insert(&server->views, &view->link);
|
wl_list_insert(&server->views, &view->link);
|
||||||
|
|
||||||
/* FIXME: is view_wants_decorations() reliable this early? */
|
|
||||||
if (view_wants_decorations(view)) {
|
|
||||||
view_set_ssd_mode(view, LAB_SSD_MODE_FULL);
|
|
||||||
} else {
|
|
||||||
view_set_ssd_mode(view, LAB_SSD_MODE_NONE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue