parent
6a546d4e9c
commit
28981f6fd3
@ -300,6 +300,9 @@ libdecor_configuration_get_content_size(struct libdecor_configuration *configura
|
||||
if (frame_has_visible_client_side_decoration(frame) &&
|
||||
plugin->priv->iface->frame_get_border_size) {
|
||||
int left, right, top, bottom;
|
||||
|
||||
/* Update window state for correct border size calculation */
|
||||
frame->priv->window_state = configuration->window_state;
|
||||
if (!plugin->priv->iface->frame_get_border_size(
|
||||
plugin, frame, configuration, &left, &right, &top, &bottom))
|
||||
return false;
|
||||
|
||||
@ -1728,6 +1728,9 @@ libdecor_plugin_gtk_frame_get_border_size(struct libdecor_plugin *plugin,
|
||||
if (bottom)
|
||||
*bottom = 0;
|
||||
if (top) {
|
||||
/* Redraw decoration to ensure size will be up-to-date */
|
||||
draw_decoration((struct libdecor_frame_gtk *) frame);
|
||||
|
||||
GtkWidget *header = ((struct libdecor_frame_gtk *)frame)->header;
|
||||
enum decoration_type type = window_state_to_decoration_type(window_state);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user