Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/Utils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,14 @@ namespace Gala {
return Utils.scale_to_int (BUTTON_SIZE, monitor_scale);
}

#if !HAS_MUTTER50
private static bool? framebuffer_is_logical = null;
Comment thread
garaevdi marked this conversation as resolved.
#endif
public static bool get_framebuffer_is_logical () {
#if HAS_MUTTER50
// Since mutter-50 all framebuffers are logical by default
return true;
#else
if (framebuffer_is_logical != null) {
return framebuffer_is_logical;
}
Expand All @@ -348,6 +354,7 @@ namespace Gala {
}

return framebuffer_is_logical;
#endif
}

public static float get_ui_scaling_factor (Meta.Display display, int monitor_index) {
Expand Down