Skip to content

Commit

Permalink
shorten getting scale factor
Browse files Browse the repository at this point in the history
  • Loading branch information
Valent-in committed Jun 17, 2021
1 parent c144b82 commit ede62a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ var MyDash = GObject.registerClass({

let switchTimerId = { id: 0 };
let isDndTarget = false;
let scale = St.ThemeContext.get_for_stage(Meta.get_backend().get_stage()).scale_factor;
let scale = St.ThemeContext.get_for_stage(global.stage).scale_factor;

// Detect dragging over icon (Wayland)
appIcon.connect('motion-event', (obj, event) => {
Expand Down

0 comments on commit ede62a8

Please sign in to comment.