screenshot-window-size: Update for mutter API changes
This commit is contained in:
@@ -80,7 +80,7 @@ function cycleScreenshotSizes(display, screen, window, binding) {
|
||||
window.unmaximize(Meta.MaximizeFlags.HORIZONTAL | Meta.MaximizeFlags.VERTICAL);
|
||||
|
||||
let workArea = window.get_work_area_current_monitor();
|
||||
let outerRect = window.get_outer_rect();
|
||||
let outerRect = window.get_frame_rect();
|
||||
|
||||
// Find the nearest 16:9 size for the current window size
|
||||
let nearestIndex;
|
||||
@@ -118,7 +118,7 @@ function cycleScreenshotSizes(display, screen, window, binding) {
|
||||
|
||||
window.move_resize_frame(true, newX, newY, newWidth, newHeight);
|
||||
|
||||
let newOuterRect = window.get_outer_rect();
|
||||
let newOuterRect = window.get_frame_rect();
|
||||
let message = newOuterRect.width + 'x' + newOuterRect.height;
|
||||
|
||||
// The new size might have been constrained by geometry hints (e.g. for
|
||||
|
||||
Reference in New Issue
Block a user