| 1005 *y = *y - requisition.height + 1; |
1005 *y = *y - requisition.height + 1; |
| 1006 } |
1006 } |
| 1007 |
1007 |
| 1008 *y = CLAMP (*y, monitor.y, |
1008 *y = CLAMP (*y, monitor.y, |
| 1009 monitor.y + monitor.height - requisition.height); |
1009 monitor.y + monitor.height - requisition.height); |
| 1010 } |
1010 } else { |
| 1011 else if (requisition.height > space_below && |
|
| 1012 requisition.height > space_above) |
|
| 1013 { |
|
| 1014 if (space_below >= space_above) |
1011 if (space_below >= space_above) |
| 1015 *y = monitor.y + monitor.height - requisition.height; |
1012 *y = monitor.y + monitor.height - requisition.height; |
| 1016 else |
1013 else |
| 1017 *y = monitor.y; |
1014 *y = monitor.y; |
| 1018 } |
|
| 1019 else |
|
| 1020 { |
|
| 1021 *y = monitor.y; |
|
| 1022 } |
1015 } |
| 1023 } |
1016 } |
| 1024 |
1017 |
| 1025 |
1018 |
| 1026 #if !GTK_CHECK_VERSION(3,22,0) |
1019 #if !GTK_CHECK_VERSION(3,22,0) |