|
|
@ -1142,6 +1142,7 @@ frame_resize_handler(struct widget *widget, |
|
|
|
struct rectangle allocation; |
|
|
|
struct rectangle allocation; |
|
|
|
int decoration_width, decoration_height; |
|
|
|
int decoration_width, decoration_height; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (widget->window->type == TYPE_TOPLEVEL) { |
|
|
|
decoration_width = 20 + frame->margin * 2; |
|
|
|
decoration_width = 20 + frame->margin * 2; |
|
|
|
decoration_height = 60 + frame->margin * 2; |
|
|
|
decoration_height = 60 + frame->margin * 2; |
|
|
|
|
|
|
|
|
|
|
@ -1149,6 +1150,15 @@ frame_resize_handler(struct widget *widget, |
|
|
|
allocation.y = 50 + frame->margin; |
|
|
|
allocation.y = 50 + frame->margin; |
|
|
|
allocation.width = width - decoration_width; |
|
|
|
allocation.width = width - decoration_width; |
|
|
|
allocation.height = height - decoration_height; |
|
|
|
allocation.height = height - decoration_height; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
decoration_width = 0; |
|
|
|
|
|
|
|
decoration_height = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
allocation.x = 0; |
|
|
|
|
|
|
|
allocation.y = 0; |
|
|
|
|
|
|
|
allocation.width = width; |
|
|
|
|
|
|
|
allocation.height = height; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
widget_set_allocation(child, allocation.x, allocation.y, |
|
|
|
widget_set_allocation(child, allocation.x, allocation.y, |
|
|
|
allocation.width, allocation.height); |
|
|
|
allocation.width, allocation.height); |
|
|
@ -1174,6 +1184,9 @@ frame_redraw_handler(struct widget *widget, void *data) |
|
|
|
int width, height, shadow_dx = 3, shadow_dy = 3; |
|
|
|
int width, height, shadow_dx = 3, shadow_dy = 3; |
|
|
|
struct window *window = widget->window; |
|
|
|
struct window *window = widget->window; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (window->type == TYPE_FULLSCREEN) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
width = widget->allocation.width; |
|
|
|
width = widget->allocation.width; |
|
|
|
height = widget->allocation.height; |
|
|
|
height = widget->allocation.height; |
|
|
|
|
|
|
|
|
|
|
|