From: Paul Cornett Date: Tue, 4 Sep 2007 02:29:03 +0000 (+0000) Subject: use client size to avoid gdk_window_get_frame_extents, which returns the full width... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1dd7badd1ff93e390d6020a0ab5a6c48eca8ebaa use client size to avoid gdk_window_get_frame_extents, which returns the full width of the screen for wxTaskBarIconArea git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/taskbarx11.cpp b/src/unix/taskbarx11.cpp index b28971768a..ab82f80a49 100644 --- a/src/unix/taskbarx11.cpp +++ b/src/unix/taskbarx11.cpp @@ -132,7 +132,7 @@ wxTaskBarIconArea::wxTaskBarIconArea(wxTaskBarIcon *icon, const wxBitmap &bmp) // Set initial size to bitmap size (tray manager may and often will // change it): - SetSize(wxSize(bmp.GetWidth(), bmp.GetHeight())); + SetClientSize(wxSize(bmp.GetWidth(), bmp.GetHeight())); SetTrayIcon(bmp); @@ -149,7 +149,7 @@ void wxTaskBarIconArea::SetTrayIcon(const wxBitmap& bmp) m_bmp = bmp; // determine suitable bitmap size: - wxSize winsize(GetSize()); + wxSize winsize(GetClientSize()); wxSize bmpsize(m_bmp.GetWidth(), m_bmp.GetHeight()); wxSize iconsize(wxMin(winsize.x, bmpsize.x), wxMin(winsize.y, bmpsize.y));