diff options
author | Slávek Banko <[email protected]> | 2012-07-11 03:36:42 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-07-11 03:47:55 +0200 |
commit | 8fe6f08227059c8cddc686888fb3e402b83c9eff (patch) | |
tree | 8966907d5b5cc3ecdd6bb86bc845e605f07926b8 /src/kmplayerview.cpp | |
parent | efeb4d69d6d954caeb700e0a33ca0a8ae7d4e166 (diff) | |
download | kmplayer-8fe6f08227059c8cddc686888fb3e402b83c9eff.tar.gz kmplayer-8fe6f08227059c8cddc686888fb3e402b83c9eff.zip |
Changed screen saver control to use fake events
This closes Bug 1031
Diffstat (limited to 'src/kmplayerview.cpp')
-rw-r--r-- | src/kmplayerview.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/kmplayerview.cpp b/src/kmplayerview.cpp index 0696826..61b5dfa 100644 --- a/src/kmplayerview.cpp +++ b/src/kmplayerview.cpp @@ -599,27 +599,12 @@ bool View::isFullScreen () const { void View::fullScreen () { if (!m_view_area->isFullScreen()) { - m_sreensaver_disabled = false; - TQByteArray data, replydata; - TQCString replyType; - if (kapp->dcopClient ()->call ("kdesktop", "KScreensaverIface", - "isEnabled()", data, replyType, replydata)) { - bool enabled; - TQDataStream replystream (replydata, IO_ReadOnly); - replystream >> enabled; - if (enabled) - m_sreensaver_disabled = kapp->dcopClient()->send - ("kdesktop", "KScreensaverIface", "enable(bool)", TQString("false")); - } //if (m_keepsizeratio && m_viewer->aspect () < 0.01) // m_viewer->setAspect (1.0 * m_viewer->width() / m_viewer->height()); m_view_area->fullScreen(); m_control_panel->popupMenu ()->setItemVisible (ControlPanel::menu_zoom, false); m_widgetstack->visibleWidget ()->setFocus (); } else { - if (m_sreensaver_disabled) - m_sreensaver_disabled = !kapp->dcopClient()->send - ("kdesktop", "KScreensaverIface", "enable(bool)", TQString("true")); m_view_area->fullScreen(); m_control_panel->popupMenu ()->setItemVisible (ControlPanel::menu_zoom, true); } |