[Bugs] #1118 UNSP: Terminal window offset on the XO

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Fri Aug 14 10:20:15 EDT 2009


#1118: Terminal window offset on the XO
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  sayamindu        
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.86             
   Component:  Terminal                   |        Version:  Git as of bugdate
    Severity:  Major                      |     Resolution:                   
    Keywords:                             |   Distribution:  Unspecified      
Status_field:  New                        |  
------------------------------------------+---------------------------------

Comment(by sayamindu):

 I could reproduce this with Pippy, and the following patch in sugar-
 toolkit seems to fix this:

 {{{
 diff --git a/src/sugar/graphics/window.py b/src/sugar/graphics/window.py
 index 0d53776..aba2e21 100644
 --- a/src/sugar/graphics/window.py
 +++ b/src/sugar/graphics/window.py
 @@ -182,6 +182,7 @@ class Window(gtk.Window):
          group = gtk.Window()
          group.realize()
          window.window.set_group(group.window)
 +        self.set_position(gtk.WIN_POS_CENTER_ALWAYS)

      def __window_state_event_cb(self, window, event):
          if not (event.changed_mask & gtk.gdk.WINDOW_STATE_FULLSCREEN):
 }}}

 Could you try and verify ?

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/1118#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list