magnifier: Use the new get_client_content_rect API
As we have removed is_client_decorated from Mutter in the last release. Instead of re-adding it and re-exposing SSD/CSD differences and making gnome-shell deal with that, we created a new API that does exactly what is_client_decorated was used for, so switch to using that. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7984 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3522>
This commit is contained in:
parent
8a80dbec9e
commit
d92f8daf62
@ -864,10 +864,7 @@ class ZoomRegion {
|
||||
if (!focusWindow)
|
||||
return null;
|
||||
|
||||
let windowRect = focusWindow.get_frame_rect();
|
||||
if (!focusWindow.is_client_decorated())
|
||||
windowRect = focusWindow.frame_rect_to_client_rect(windowRect);
|
||||
|
||||
const windowRect = focusWindow.get_client_content_rect();
|
||||
const scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
|
||||
const screenSpaceExtents = new Atspi.Rect({
|
||||
x: windowRect.x + (scaleFactor * extents.x),
|
||||
|
Loading…
x
Reference in New Issue
Block a user