1. 11 Jul, 2018 1 commit
  2. 20 May, 2018 2 commits
  3. 02 May, 2014 1 commit
    • 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
  4. 30 Jan, 2012 2 commits
  5. 03 Jul, 2011 1 commit
    • Martin Nordholts's avatar
      app: Make positioning of new dockables depend on window mode · 07556242
      Martin Nordholts authored
      Add GimpWindowingStrategy with create_dockable_dialog() and use it in
      dialogs_create_dockable_cmd_callback(). There are two implementations:
      GimpSingleWindowStrategy and GimpMultiWindowStrategy. Depending on the
      window mode, we want new dockables to appear in different places when
      created. In single-window mode, they should appear inside the single
      image window. In multi-window mode, a new dock window is created.
      07556242