gnome-sushi does not center preview on screen

Bug #964192 reported by Makario Lewis on 2012-03-24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-sushi (Ubuntu)

Bug Description

Whenever I display a preview with gnome-sushi, instead of being centered on the screen, it's a little to the left.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gnome-sushi 0.3.92-1
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Sat Mar 24 23:29:34 2012
EcryptfsInUse: Yes
SourcePackage: gnome-sushi
UpgradeStatus: No upgrade log present (probably fresh install)

Makario Lewis (makariolewis) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-sushi (Ubuntu):
status: New → Confirmed
Vadim Rutkovsky (roignac) wrote :

Could you please try to reproduce this on latest version available in 12.04?
Ubuntu Bug Squad volunteer triager

Chow Loong Jin (hyperair) wrote :

Happens on 12.04 as well.

Matt Fischer (mfisch) on 2012-09-26
Changed in gnome-sushi (Ubuntu):
importance: Undecided → Low

in Ubuntu 13.04, changing the following in /usr/share/sushi/ui/mainWindow.js worked for me

    gravity: Gdk.Gravity.NORTH_WEST,
    windowPosition: Gtk.WindowPosition.CENTER_ALWAYS,


  this._gtkWindow = new Gtk.Window({ type: Gtk.WindowType.TOPLEVEL,
                                             focusOnMap: true,
                                             decorated: !this._clientDecorated,
                                             hasResizeGrip: false,
                                             skipPagerHint: true,
                                             skipTaskbarHint: true,
                                             gravity: Gdk.Gravity.NORTH_WEST,
                                             windowPosition: Gtk.WindowPosition.CENTER_ALWAYS,
                                             application: this._application });

For me the block started on line 77.

I don't know anything about gtk+, so I hope that someone that knows how to do this kind of things well finds the better solution. I believe that part of the problem might have to do with the window from were this one could be getting its relative "origin" position (hope that makes ANY sense...), since a little centered window seems to appear just before the actual sushi normal window shows, right when I hit space, and when playing with the different possible values I was able to find for "gravity" and "windowPosition", it appeared as if this little window was being the one to which the normal one related its positioning.

Hope that helps a little at least

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers