summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/window
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-20 13:16:51 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-20 22:19:32 +0100
commitf4fbdf7f9c8e657cccb679b341397daabee7079b (patch)
treeda5535c167fff13a0f692ee10cc47a8748e67060 /vcl/unx/generic/window
parent24f63831af82e71133fae0fc8309d1f752a402bf (diff)
unusedcode.easy: Remove SwProtocol::Snapshot()
And all implementations. Also unused and removed: ImplCreateFromXImage() ImplGetFrameBitmap()
Diffstat (limited to 'vcl/unx/generic/window')
-rw-r--r--vcl/unx/generic/window/salframe.cxx48
1 files changed, 0 insertions, 48 deletions
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index c88279017a1f..141289f3f00d 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -1805,54 +1805,6 @@ sal_Bool X11SalFrame::GetWindowState( SalFrameState* pState )
return sal_True;
}
-// ----------------------------------------------------------------------------
-// get a screenshot of the current frame including window manager decoration
-SalBitmap* X11SalFrame::SnapShot()
-{
- Display* pDisplay = GetXDisplay();
-
- // make sure the frame has been reparented and all paint timer have been
- // expired
- do
- {
- XSync(pDisplay, False);
- Application::Reschedule ();
- }
- while (XPending(pDisplay));
- TimeValue aVal;
- aVal.Seconds = 0;
- aVal.Nanosec = 50000000;
- osl_waitThread( &aVal );
- do
- {
- XSync(pDisplay, False);
- Application::Reschedule ();
- }
- while (XPending(pDisplay));
-
- // get the most outer window, usually the window manager decoration
- Drawable hWindow = None;
- if (IsOverrideRedirect())
- hWindow = GetDrawable();
- else
- if (hPresentationWindow != None)
- hWindow = hPresentationWindow;
- else
- hWindow = GetStackingWindow();
-
- // query the contents of the window
- if (hWindow != None)
- {
- X11SalBitmap *pBmp = new X11SalBitmap;
- if (pBmp->SnapShot (pDisplay, hWindow))
- return pBmp;
- else
- delete pBmp;
- }
-
- return NULL;
-}
-
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// native menu implementation - currently empty