Hello, Sergey!

On 2017-02-14 06:32, Sergey Alyoshin wrote:> On Mon, Feb 13, 2017 at 11:25 PM, 
Clemens Koller <clemens...@gmx.net> wrote:
>> 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.
> 
> Maybe we should just save/restore (via GtkSettings?) last used gerbv
> window screen position and size?

My GTK knowledge is very limited. I am not sure if GtkSettings is useful here 
to save/restore settings.
https://people.gnome.org/~ryanl/gtk/html/GtkSettings.html

However having settings stored in ~/.config/gerbv/gerbv.conf definitely makes 
sense and the capability to choose config files -c, --config <filename> would 
increase productivity to work with different projects, IMO.

I.e. the configure switch and the new command line switch -u, --units would not 
be necessary anymore.

Regards,

Clemens
-- 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to