wayland: resize dockapp surface to fit dock tile
The owner's toplevel surface may be larger than icon_size. Resize it before reparenting into the dock tile frame_buf so it fits properly.
This commit is contained in:
parent
14db9aecb3
commit
5ead98b986
|
|
@ -817,8 +817,11 @@ static void set_dockapp_in_icon(WIcon *icon)
|
|||
* owner's main client_win instead so its surface appears in the tile. */
|
||||
{
|
||||
WNativeWindow reparent_win = (WNativeWindow)icon->icon_win;
|
||||
if (icon->owner && icon->owner->client_win)
|
||||
if (icon->owner && icon->owner->client_win) {
|
||||
reparent_win = icon->owner->client_win;
|
||||
/* Resize the toplevel surface to fit the dock tile */
|
||||
wm_backend->window_resize(reparent_win, w, h);
|
||||
}
|
||||
wm_backend->client_reparent(reparent_win, icon->core->window,
|
||||
(wPreferences.icon_size - w) / 2,
|
||||
(wPreferences.icon_size - h) / 2);
|
||||
|
|
|
|||
Loading…
Reference in New Issue