Skip to content
Permalink
Browse files

Fix minimize animation in HiDPI monitor (#164) (#541)

* Fix minimize animation in HiDPI monitor (#164)
  • Loading branch information...
statiolake authored and donadigo committed May 31, 2019
1 parent 3ae100d commit 1024813560668152814a72fd93dc6a93b226eb04
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/WindowManager.vala
@@ -1018,6 +1018,12 @@ namespace Gala

Rectangle icon = {};
if (actor.get_meta_window ().get_icon_geometry (out icon)) {
// Fix icon position and size according to ui scaling factor.
int ui_scale = InternalUtils.get_ui_scaling_factor ();
icon.x *= ui_scale;
icon.y *= ui_scale;
icon.width *= ui_scale;
icon.height *= ui_scale;

float scale_x = (float)icon.width / actor.width;
float scale_y = (float)icon.height / actor.height;

0 comments on commit 1024813

Please sign in to comment.
You can’t perform that action at this time.