mirror of
https://github.com/elementary/gala.git
synced 2024-11-23 20:07:21 +03:00
* Fix minimize animation in HiDPI monitor (#164)
This commit is contained in:
parent
3ae100da4b
commit
1024813560
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user