Lines Matching refs:pFrame

60     void setNetWMState( X11SalFrame* pFrame ) const;
67 virtual void setWMName( X11SalFrame* pFrame, const String& rWMName ) const;
68 …virtual void maximizeFrame( X11SalFrame* pFrame, bool bHorizontal = true, bool bVertical = true ) …
69 virtual void shade( X11SalFrame* pFrame, bool bToShaded ) const;
70 …virtual void setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFl…
72 virtual void enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) const;
73 virtual int handlePropertyNotify( X11SalFrame* pFrame, XPropertyEvent* pEvent ) const;
74 virtual void showFullScreen( X11SalFrame* pFrame, bool bFullScreen ) const;
75 virtual void frameIsMapping( X11SalFrame* pFrame ) const;
76 virtual void setFrameStruts( X11SalFrame* pFrame,
90 void setGnomeWMState( X11SalFrame* pFrame ) const;
97 …virtual void maximizeFrame( X11SalFrame* pFrame, bool bHorizontal = true, bool bVertical = true ) …
98 virtual void shade( X11SalFrame* pFrame, bool bToShaded ) const;
99 virtual void enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) const;
100 virtual int handlePropertyNotify( X11SalFrame* pFrame, XPropertyEvent* pEvent ) const;
1073 void WMAdaptor::setWMName( X11SalFrame* pFrame, const String& rWMName ) const in setWMName() argument
1155 const SystemEnvData* pEnv = pFrame->GetSystemData(); in setWMName()
1191 void NetWMAdaptor::setWMName( X11SalFrame* pFrame, const String& rWMName ) const in setWMName() argument
1193 WMAdaptor::setWMName( pFrame, rWMName ); in setWMName()
1196 const SystemEnvData* pEnv = pFrame->GetSystemData(); in setWMName()
1225 void NetWMAdaptor::setNetWMState( X11SalFrame* pFrame ) const in setNetWMState()
1234 && pFrame->meWindowType == windowType_ModalDialogue ) in setNetWMState()
1244 if( pFrame->mbMaximizedVert in setNetWMState()
1247 if( pFrame->mbMaximizedHorz in setNetWMState()
1250 if( pFrame->bAlwaysOnTop_ && m_aWMAtoms[ NET_WM_STATE_STAYS_ON_TOP ] ) in setNetWMState()
1252 if( pFrame->mbShaded && m_aWMAtoms[ NET_WM_STATE_SHADED ] ) in setNetWMState()
1254 if( pFrame->mbFullScreen && m_aWMAtoms[ NET_WM_STATE_FULLSCREEN ] ) in setNetWMState()
1256 if( pFrame->meWindowType == windowType_Utility && m_aWMAtoms[ NET_WM_STATE_SKIP_TASKBAR ] ) in setNetWMState()
1262 pFrame->GetShellWindow(), in setNetWMState()
1273 pFrame->GetShellWindow(), in setNetWMState()
1275 if( pFrame->mbMaximizedHorz in setNetWMState()
1276 && pFrame->mbMaximizedVert in setNetWMState()
1277 && ! ( pFrame->nStyle_ & SAL_FRAME_STYLE_SIZEABLE ) ) in setNetWMState()
1286 pFrame->GetShellWindow(), in setNetWMState()
1294 pFrame->GetShellWindow(), in setNetWMState()
1312 const SalFrameGeometry& rGeom( pFrame->GetUnmirroredGeometry() ); in setNetWMState()
1322 pFrame->SetPosSize( aPosSize ); in setNetWMState()
1328 if( bHint && pFrame->nShowState_ != SHOWSTATE_UNKNOWN ) in setNetWMState()
1332 pFrame->GetShellWindow(), in setNetWMState()
1343 void GnomeWMAdaptor::setGnomeWMState( X11SalFrame* pFrame ) const in setGnomeWMState()
1349 if( pFrame->mbMaximizedVert ) in setGnomeWMState()
1351 if( pFrame->mbMaximizedHorz ) in setGnomeWMState()
1353 if( pFrame->mbShaded ) in setGnomeWMState()
1357 pFrame->GetShellWindow(), in setGnomeWMState()
1365 if( pFrame->mbMaximizedHorz in setGnomeWMState()
1366 && pFrame->mbMaximizedVert in setGnomeWMState()
1367 && ! ( pFrame->nStyle_ & SAL_FRAME_STYLE_SIZEABLE ) ) in setGnomeWMState()
1376 pFrame->GetShellWindow(), in setGnomeWMState()
1384 pFrame->GetShellWindow(), in setGnomeWMState()
1402 const SalFrameGeometry& rGeom( pFrame->GetUnmirroredGeometry() ); in setGnomeWMState()
1412 pFrame->SetPosSize( aPosSize ); in setGnomeWMState()
1418 if( bHint && pFrame->nShowState_ != SHOWSTATE_UNKNOWN ) in setGnomeWMState()
1422 pFrame->GetShellWindow(), in setGnomeWMState()
1435 void WMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecoration… in setFrameTypeAndDecoration() argument
1437 pFrame->meWindowType = eType; in setFrameTypeAndDecoration()
1438 pFrame->mnDecorationFlags = nDecorationFlags; in setFrameTypeAndDecoration()
1440 if( ! pFrame->mbFullScreen ) in setFrameTypeAndDecoration()
1485 pFrame->GetShellWindow(), in setFrameTypeAndDecoration()
1503 pFrame->GetShellWindow(), in setFrameTypeAndDecoration()
1506 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ) in setFrameTypeAndDecoration()
1509 pFrame->mbTransientForRoot = true; in setFrameTypeAndDecoration()
1514 setWMName( pFrame, String() ); in setFrameTypeAndDecoration()
1525 void NetWMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorat… in setFrameTypeAndDecoration() argument
1527 WMAdaptor::setFrameTypeAndDecoration( pFrame, eType, nDecorationFlags, pReferenceFrame ); in setFrameTypeAndDecoration()
1529 setNetWMState( pFrame ); in setFrameTypeAndDecoration()
1574 pFrame->GetShellWindow(), in setFrameTypeAndDecoration()
1587 pFrame->GetShellWindow(), in setFrameTypeAndDecoration()
1588 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ) ); in setFrameTypeAndDecoration()
1589 pFrame->mbTransientForRoot = true; in setFrameTypeAndDecoration()
1597 void WMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool bVertical ) const in maximizeFrame() argument
1599 pFrame->mbMaximizedVert = bVertical; in maximizeFrame()
1600 pFrame->mbMaximizedHorz = bHorizontal; in maximizeFrame()
1602 const SalFrameGeometry& rGeom( pFrame->GetUnmirroredGeometry() ); in maximizeFrame()
1608 pFrame->GetShellWindow(), in maximizeFrame()
1613 pFrame->GetWindow(), in maximizeFrame()
1620 Size aScreenSize( m_pSalDisplay->GetScreenSize( pFrame->GetScreenNumber() ) ); in maximizeFrame()
1642 pFrame->maRestorePosSize.IsEmpty() ? in maximizeFrame()
1643 rGeom.nWidth : pFrame->maRestorePosSize.GetWidth(), in maximizeFrame()
1648 pFrame->maRestorePosSize.IsEmpty() ? in maximizeFrame()
1649 rGeom.nX : pFrame->maRestorePosSize.Left(); in maximizeFrame()
1656 pFrame->maRestorePosSize.IsEmpty() ? in maximizeFrame()
1657 rGeom.nHeight : pFrame->maRestorePosSize.GetHeight() in maximizeFrame()
1661 pFrame->maRestorePosSize.IsEmpty() ? in maximizeFrame()
1662 rGeom.nY : pFrame->maRestorePosSize.Top(); in maximizeFrame()
1666 if( pFrame->bMapped_ ) in maximizeFrame()
1669 pFrame->GetShellWindow(), in maximizeFrame()
1685 if( pFrame->maRestorePosSize.IsEmpty() ) in maximizeFrame()
1686 pFrame->maRestorePosSize = aRestore; in maximizeFrame()
1688 pFrame->SetPosSize( aTarget ); in maximizeFrame()
1689 pFrame->nWidth_ = aTarget.GetWidth(); in maximizeFrame()
1690 pFrame->nHeight_ = aTarget.GetHeight(); in maximizeFrame()
1692 pFrame->GetShellWindow() in maximizeFrame()
1694 if( pFrame->GetStackingWindow() ) in maximizeFrame()
1696 pFrame->GetStackingWindow() in maximizeFrame()
1702 pFrame->SetPosSize( pFrame->maRestorePosSize ); in maximizeFrame()
1703 pFrame->maRestorePosSize = Rectangle(); in maximizeFrame()
1704 pFrame->nWidth_ = rGeom.nWidth; in maximizeFrame()
1705 pFrame->nHeight_ = rGeom.nHeight; in maximizeFrame()
1706 if( m_aWMName.EqualsAscii( "Dtwm" ) && pFrame->bMapped_ ) in maximizeFrame()
1708 pFrame->maGeometry.nX += rGeom.nLeftDecoration; in maximizeFrame()
1709 pFrame->maGeometry.nY += rGeom.nTopDecoration; in maximizeFrame()
1719 void NetWMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool bVertical ) const in maximizeFrame() argument
1721 pFrame->mbMaximizedVert = bVertical; in maximizeFrame()
1722 pFrame->mbMaximizedHorz = bHorizontal; in maximizeFrame()
1727 && ( pFrame->nStyle_ & ~SAL_FRAME_STYLE_DEFAULT ) in maximizeFrame()
1730 if( pFrame->bMapped_ ) in maximizeFrame()
1736 aEvent.xclient.window = pFrame->GetShellWindow(); in maximizeFrame()
1745 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in maximizeFrame()
1756 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in maximizeFrame()
1766 setNetWMState( pFrame ); in maximizeFrame()
1769 pFrame->maRestorePosSize = Rectangle(); in maximizeFrame()
1770 else if( pFrame->maRestorePosSize.IsEmpty() ) in maximizeFrame()
1772 const SalFrameGeometry& rGeom( pFrame->GetUnmirroredGeometry() ); in maximizeFrame()
1773 pFrame->maRestorePosSize = in maximizeFrame()
1778 WMAdaptor::maximizeFrame( pFrame, bHorizontal, bVertical ); in maximizeFrame()
1786 void GnomeWMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool bVertical ) const in maximizeFrame() argument
1788 pFrame->mbMaximizedVert = bVertical; in maximizeFrame()
1789 pFrame->mbMaximizedHorz = bHorizontal; in maximizeFrame()
1792 && ( pFrame->nStyle_ & ~SAL_FRAME_STYLE_DEFAULT ) in maximizeFrame()
1795 if( pFrame->bMapped_ ) in maximizeFrame()
1801 aEvent.xclient.window = pFrame->GetShellWindow(); in maximizeFrame()
1812 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in maximizeFrame()
1820 setGnomeWMState( pFrame ); in maximizeFrame()
1823 pFrame->maRestorePosSize = Rectangle(); in maximizeFrame()
1824 else if( pFrame->maRestorePosSize.IsEmpty() ) in maximizeFrame()
1826 const SalFrameGeometry& rGeom( pFrame->GetUnmirroredGeometry() ); in maximizeFrame()
1827 pFrame->maRestorePosSize = in maximizeFrame()
1832 WMAdaptor::maximizeFrame( pFrame, bHorizontal, bVertical ); in maximizeFrame()
1866 void NetWMAdaptor::enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) const in enableAlwaysOnTop() argument
1868 pFrame->bAlwaysOnTop_ = bEnable; in enableAlwaysOnTop()
1871 if( pFrame->bMapped_ ) in enableAlwaysOnTop()
1877 aEvent.xclient.window = pFrame->GetShellWindow(); in enableAlwaysOnTop()
1886 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in enableAlwaysOnTop()
1893 setNetWMState( pFrame ); in enableAlwaysOnTop()
1900 void GnomeWMAdaptor::enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) const in enableAlwaysOnTop() argument
1902 pFrame->bAlwaysOnTop_ = bEnable; in enableAlwaysOnTop()
1905 if( pFrame->bMapped_ ) in enableAlwaysOnTop()
1911 aEvent.xclient.window = pFrame->GetShellWindow(); in enableAlwaysOnTop()
1920 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in enableAlwaysOnTop()
1930 pFrame->GetShellWindow(), in enableAlwaysOnTop()
1945 void WMAdaptor::changeReferenceFrame( X11SalFrame* pFrame, X11SalFrame* pReferenceFrame ) const in changeReferenceFrame() argument
1947 if( ! ( pFrame->nStyle_ & SAL_FRAME_STYLE_PLUG ) in changeReferenceFrame()
1948 && ! pFrame->IsOverrideRedirect() in changeReferenceFrame()
1949 && ! pFrame->IsFloatGrabWindow() in changeReferenceFrame()
1952 XLIB_Window aTransient = pFrame->pDisplay_->GetRootWindow( pFrame->GetScreenNumber() ); in changeReferenceFrame()
1953 pFrame->mbTransientForRoot = true; in changeReferenceFrame()
1957 pFrame->mbTransientForRoot = false; in changeReferenceFrame()
1960 pFrame->GetShellWindow(), in changeReferenceFrame()
1976 int NetWMAdaptor::handlePropertyNotify( X11SalFrame* pFrame, XPropertyEvent* pEvent ) const in handlePropertyNotify() argument
1981 pFrame->mbMaximizedHorz = pFrame->mbMaximizedVert = false; in handlePropertyNotify()
1982 pFrame->mbShaded = false; in handlePropertyNotify()
2011 pFrame->mbMaximizedVert = true; in handlePropertyNotify()
2013 pFrame->mbMaximizedHorz = true; in handlePropertyNotify()
2015 pFrame->mbShaded = true; in handlePropertyNotify()
2027 if( ! (pFrame->mbMaximizedHorz || pFrame->mbMaximizedVert ) ) in handlePropertyNotify()
2028 pFrame->maRestorePosSize = Rectangle(); in handlePropertyNotify()
2031 const SalFrameGeometry& rGeom = pFrame->GetUnmirroredGeometry(); in handlePropertyNotify()
2034 pFrame->maRestorePosSize = in handlePropertyNotify()
2041 pFrame->m_nWorkArea = getWindowWorkArea( pFrame->GetShellWindow() ); in handlePropertyNotify()
2052 int GnomeWMAdaptor::handlePropertyNotify( X11SalFrame* pFrame, XPropertyEvent* pEvent ) const in handlePropertyNotify() argument
2057 pFrame->mbMaximizedHorz = pFrame->mbMaximizedVert = false; in handlePropertyNotify()
2058 pFrame->mbShaded = false; in handlePropertyNotify()
2083 pFrame->mbMaximizedVert = true; in handlePropertyNotify()
2085 pFrame->mbMaximizedHorz = true; in handlePropertyNotify()
2087 pFrame->mbShaded = true; in handlePropertyNotify()
2093 if( ! (pFrame->mbMaximizedHorz || pFrame->mbMaximizedVert ) ) in handlePropertyNotify()
2094 pFrame->maRestorePosSize = Rectangle(); in handlePropertyNotify()
2097 const SalFrameGeometry& rGeom = pFrame->GetUnmirroredGeometry(); in handlePropertyNotify()
2100 pFrame->maRestorePosSize = in handlePropertyNotify()
2107 pFrame->m_nWorkArea = getWindowWorkArea( pFrame->GetShellWindow() ); in handlePropertyNotify()
2125 void NetWMAdaptor::shade( X11SalFrame* pFrame, bool bToShaded ) const in shade() argument
2129 && ( pFrame->nStyle_ & ~SAL_FRAME_STYLE_DEFAULT ) in shade()
2132 pFrame->mbShaded = bToShaded; in shade()
2133 if( pFrame->bMapped_ ) in shade()
2139 aEvent.xclient.window = pFrame->GetShellWindow(); in shade()
2148 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in shade()
2157 setNetWMState( pFrame ); in shade()
2165 void GnomeWMAdaptor::shade( X11SalFrame* pFrame, bool bToShaded ) const in shade() argument
2169 pFrame->mbShaded = bToShaded; in shade()
2170 if( pFrame->bMapped_ ) in shade()
2176 aEvent.xclient.window = pFrame->GetShellWindow(); in shade()
2185 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in shade()
2192 setGnomeWMState( pFrame ); in shade()
2199 void WMAdaptor::showFullScreen( X11SalFrame* pFrame, bool bFullScreen ) const in showFullScreen() argument
2201 pFrame->mbFullScreen = bFullScreen; in showFullScreen()
2202 maximizeFrame( pFrame, bFullScreen, bFullScreen ); in showFullScreen()
2208 void NetWMAdaptor::showFullScreen( X11SalFrame* pFrame, bool bFullScreen ) const in showFullScreen() argument
2212 pFrame->mbFullScreen = bFullScreen; in showFullScreen()
2218 pFrame->GetShellWindow(), in showFullScreen()
2222 if( pFrame->bMapped_ ) in showFullScreen()
2228 aEvent.xclient.window = pFrame->GetShellWindow(); in showFullScreen()
2237 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in showFullScreen()
2246 setNetWMState( pFrame ); in showFullScreen()
2257 m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ), in showFullScreen()
2266 pFrame->maGeometry.nX = rScreens[i].Left(); in showFullScreen()
2267 pFrame->maGeometry.nY = rScreens[i].Top(); in showFullScreen()
2268 pFrame->maGeometry.nWidth = rScreens[i].GetWidth(); in showFullScreen()
2269 pFrame->maGeometry.nHeight = rScreens[i].GetHeight(); in showFullScreen()
2276 Size aSize = m_pSalDisplay->GetScreenSize( pFrame->GetScreenNumber() ); in showFullScreen()
2277 pFrame->maGeometry.nX = 0; in showFullScreen()
2278 pFrame->maGeometry.nY = 0; in showFullScreen()
2279 pFrame->maGeometry.nWidth = aSize.Width(); in showFullScreen()
2280 pFrame->maGeometry.nHeight = aSize.Height(); in showFullScreen()
2282 pFrame->CallCallback( SALEVENT_MOVERESIZE, NULL ); in showFullScreen()
2285 else WMAdaptor::showFullScreen( pFrame, bFullScreen ); in showFullScreen()
2408 void NetWMAdaptor::frameIsMapping( X11SalFrame* pFrame ) const in frameIsMapping()
2410 setNetWMState( pFrame ); in frameIsMapping()
2426 void NetWMAdaptor::setFrameStruts( X11SalFrame* pFrame, in setFrameStruts() argument
2462 pFrame->GetShellWindow(), in setFrameStruts()