[wx-dev] #9569: wx.Display yields overlapping results

wxTrac noreply at wxsite.net
Thu Jun 12 21:50:52 PDT 2008


Ticket URL: <http://trac.wxwidgets.org/ticket/9569>

#9569: wx.Display yields overlapping results
------------------------+---------------------------------------------------
 Reporter:  sijben      |       Owner:         
     Type:  defect      |      Status:  new    
 Priority:  normal      |   Milestone:         
Component:  wxGTK       |     Version:  2.8.7.1
 Keywords:  wx.display  |   Blockedby:         
    Patch:  0           |    Blocking:         
------------------------+---------------------------------------------------
 I am running into something weird. Depending on the X/Gnome settings
 wx.Display delivers something different. I am comparing 2 Ubuntu 8.04
 setups but with different X configs.

 On the one system wx.Display knows I have two monitors each 1680x1050
 pixels one next to the other, however wx.Display does not tell me the
 space reserved for the menubars on Gnome.

 On the other (which also has two physical monitors of the same size)
 wx.Display gives the following:

 >>> >>> wx.Display(0).GetClientArea()
 wx.Rect(0, 25, 3360, 1000)
 >>> >>> wx.Display(1).GetClientArea()
 wx.Rect(1680, 0, 1680, 1050)

 So monitor 0 as far as wx.Display is concerned is the full screen MINUS
 the menubars
 Monitor 1 is the full second monitor. However this is overlapping with
 what was returned for display 0.

 GetGeometry is correct:
 >>> >>> wx.Display(0).GetGeometry()
 wx.Rect(0, 0, 1680, 1050)
 >>> >>> wx.Display(1).GetGeometry()
 wx.Rect(1680, 0, 1680, 1050)


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9569>


More information about the wx-dev mailing list