Clemens Koller
2017-02-13 20:25:28 UTC
Hello!
I was always wondering why gerbv starts by default with a good width (1500pix) but very limited height (450pix) window on my dual-monitor desktop (2x 2048 x 1152, horizontally aligned).
After some digging, I found that some multi monitor detection code does some odd math, messing up if nmonitors >1 aligned horizontally, touching the height as well.
Attached patch might fix that for the assumption that monitors are usually placed next to each other and not stacked on top of each other.
This is off course just an improvisational fix.
It seems that the GTK3 code would be a better solution, but I couldn't verify that code yet. Is there an configure option to build against GTK 3+?
Please comment if the patch is basically ok and how to test gerbv against GTK3.
Regards,
Clemens
I was always wondering why gerbv starts by default with a good width (1500pix) but very limited height (450pix) window on my dual-monitor desktop (2x 2048 x 1152, horizontally aligned).
After some digging, I found that some multi monitor detection code does some odd math, messing up if nmonitors >1 aligned horizontally, touching the height as well.
Attached patch might fix that for the assumption that monitors are usually placed next to each other and not stacked on top of each other.
This is off course just an improvisational fix.
It seems that the GTK3 code would be a better solution, but I couldn't verify that code yet. Is there an configure option to build against GTK 3+?
Please comment if the patch is basically ok and how to test gerbv against GTK3.
Regards,
Clemens