Skip to content

Commit

Permalink
Fix combined monitors size detection for vertical dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
jliljebl committed Apr 2, 2024
1 parent 6ffcf4e commit b2eb4e9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions flowblade-trunk/Flowblade/utilsgtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@ def get_display_monitors_size_data():
def get_combined_monitors_size():
monitor_data = get_display_monitors_size_data()
combined_w, combined_h = 0, 0

# We are using largest screen height
disp_h_largest = 0
for disp_w, disp_h in monitor_data:
combined_w += disp_w
combined_h += disp_h

return (combined_w, combined_h)

if disp_h > disp_h_largest:
disp_h_largest = disp_h

return (combined_w, disp_h_largest)

def get_media_source_file_filter(include_audio=True):
# No idea if these actually play or not, except images mime types
f = Gtk.FileFilter()
Expand Down

0 comments on commit b2eb4e9

Please sign in to comment.