Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small window size with multiple monitors #209

Open
delta-atk opened this issue Sep 2, 2023 · 0 comments
Open

Small window size with multiple monitors #209

delta-atk opened this issue Sep 2, 2023 · 0 comments

Comments

@delta-atk
Copy link

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant