~jaapz-b/slingshot/position-fix

« back to all changes in this revision

Viewing changes to src/SlingshotView.vala

  • Committer: Jaap Broekhuizen
  • Date: 2012-11-15 12:47:33 UTC
  • Revision ID: jaapz.b@gmail.com-20121115124733-5trfhzp79k3pq3i3
Fix positioning bug on dual monitors when right monitor is primary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
 
289
289
        private void reposition () {
290
290
 
291
 
            debug("Repositioning");
 
291
            stdout.printf ("Repositioning");
292
292
 
293
293
            if (Slingshot.settings.open_on_mouse)
294
294
                window_position = WindowPosition.MOUSE;
296
296
                Gdk.Rectangle monitor_dimensions;
297
297
                screen.get_monitor_geometry (this.screen.get_primary_monitor(), out monitor_dimensions);
298
298
 
299
 
                move_to_coords (monitor_dimensions.x, monitor_dimensions.y, false); // this would be coordinates 0,0 on the screen
 
299
                move_to_coords (monitor_dimensions.x+50, monitor_dimensions.y, false); // this would be coordinates 0,0 on the screen
300
300
            }
301
301
        }
302
302