mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Adapt to the new Mtk library
As we plan to slowly phase out Cairo where possible in libmutter https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2873>
This commit is contained in:
parent
533f3fe69d
commit
80237b1082
19 changed files with 99 additions and 82 deletions
|
|
@ -4,6 +4,7 @@ import Clutter from 'gi://Clutter';
|
|||
import Gio from 'gi://Gio';
|
||||
import GObject from 'gi://GObject';
|
||||
import Meta from 'gi://Meta';
|
||||
import Mtk from 'gi://Mtk';
|
||||
import Shell from 'gi://Shell';
|
||||
import St from 'gi://St';
|
||||
|
||||
|
|
@ -1052,7 +1053,7 @@ class WorkspacesDisplay extends St.Widget {
|
|||
|
||||
_getMonitorIndexForEvent(event) {
|
||||
let [x, y] = event.get_coords();
|
||||
let rect = new Meta.Rectangle({x, y, width: 1, height: 1});
|
||||
const rect = new Mtk.Rectangle({x, y, width: 1, height: 1});
|
||||
return global.display.get_monitor_index_for_rect(rect);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue