• Michael Natterer's avatar
    app: make things behave more reasonable with multiple monitors · 843866e7
    Michael Natterer authored
    There is now a preference option that determines whether windows
    should be opened on the same monitor as before. It should be disabled
    when the machine gets monitors plugged/unplugged dynamically ("laptop")
    and enabled when there is a static multi-monitor setup ("wokstation").
    This is merely the current simplistic policy on top of the newly added
    underlying infrastructure:
    
    - pass integer monitor numbers around in all places where we already
      pass around a GdkScreen. Pass the "current" monitor to these changed
      APIs, where "current" is either the monitor where the action-triggering
      widget is, or if that is unavailable the monitor where the mouse is.
    
    - add gimp_widget_get_monitor() in order to easily get to the monitor,
      just like gtk_widget_get_screen().
    
    - add screen and monitor parameters in some places that were missed
      before.
    
    - in sessionrc, save all window positions relative to the window's
      monitor, and save the monitor separately, if it's not the screen's
      primary monitor.
    
    - when restoring window positions, use the stored monitor when the new
      prefs options says so (use the screen's primary monitor if there is
      no stored monitor), otherwise use current monitor that is now passed
      around.
    843866e7
Name
Last commit
Last update
..
actions Loading commit data...
config Loading commit data...
core Loading commit data...
dialogs Loading commit data...
display Loading commit data...
file Loading commit data...
gegl Loading commit data...
gui Loading commit data...
menus Loading commit data...
operations Loading commit data...
paint Loading commit data...
pdb Loading commit data...
plug-in Loading commit data...
tests Loading commit data...
text Loading commit data...
tools Loading commit data...
vectors Loading commit data...
widgets Loading commit data...
xcf Loading commit data...
.gitignore Loading commit data...
Makefile.am Loading commit data...
about.h Loading commit data...
app.c Loading commit data...
app.h Loading commit data...
batch.c Loading commit data...
batch.h Loading commit data...
errors.c Loading commit data...
errors.h Loading commit data...
gimp-debug.c Loading commit data...
gimp-debug.h Loading commit data...
gimp-intl.h Loading commit data...
gimp-log.c Loading commit data...
gimp-log.h Loading commit data...
gimpcore.def Loading commit data...
language.c Loading commit data...
language.h Loading commit data...
main.c Loading commit data...
sanity.c Loading commit data...
sanity.h Loading commit data...
signals.c Loading commit data...
signals.h Loading commit data...
tests.c Loading commit data...
tests.h Loading commit data...
unique.c Loading commit data...
unique.h Loading commit data...
units.c Loading commit data...
units.h Loading commit data...
version.c Loading commit data...
version.h Loading commit data...