Skip to content

Small window size with multiple monitors #209

@delta-atk

Description

@delta-atk

With multiple monitors the window size is too small by default, if i use two side by side the height is only half of what it should be. This is because the height is divided by the number of monitors, but of course the height is only of one in this case.

I used to patch this by removing the division of height, but i guess this does not produce the desired behavior for every setup. Also the gtk functions are deprecated. There are some monitor-defined functions since 3.22. Maybe this could be fixed with gtk3 port?

gerbv/src/interface.c

Lines 1639 to 1648 in d5283c4

} else {
GdkScreen* screen;
int nmonitors;
screen = gdk_screen_get_default();
nmonitors = gdk_screen_get_n_monitors(screen);
width = gdk_screen_get_width(screen) * 3 / 4 / nmonitors;
height = gdk_screen_get_height(screen) * 3 / 4 / nmonitors;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions