summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-08-12 02:50:45 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-08-12 02:50:45 +0200
commitd306f1c84fe46a5b205358a5944f2c944a5eead0 (patch)
treee567b2248929e59031b62a0a7c3aee9f202d1e7d /src
parentb9ae0ccfa9b99668dd0ba058a20ace07a99779b8 (diff)
downloadkmplayer-d306f1c84fe46a5b205358a5944f2c944a5eead0.tar.gz
kmplayer-d306f1c84fe46a5b205358a5944f2c944a5eead0.zip
Removed window changes when switching normal / minimal mode
This partially resolves Bug 1032
Diffstat (limited to 'src')
-rw-r--r--src/kmplayerapp.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/kmplayerapp.cpp b/src/kmplayerapp.cpp
index a1bd243..b1bc729 100644
--- a/src/kmplayerapp.cpp
+++ b/src/kmplayerapp.cpp
@@ -1222,7 +1222,6 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
unsigned long props = NET::WMWindowType;
NETWinInfo winfo (tqt_xdisplay (), winId (), tqt_xrootwin (), props);
if (m_minimal_mode) {
- winfo.setWindowType (NET::Normal);
readOptions ();
if (by_user)
disconnect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ()));
@@ -1234,21 +1233,8 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
statusBar()->hide();
if (by_user)
connect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ()));
- if (by_user)
-#if KDE_IS_VERSION(3, 1, 90)
- winfo.setWindowType (NET::Utility);
-#else
- winfo.setWindowType (NET::Menu);
-#endif
}
m_view->viewArea ()->minimalMode ();
- if (by_user) {
- TQRect rect = m_view->viewArea ()->topWindowRect ();
- hide ();
- TQTimer::singleShot (0, TQT_TQOBJECT(this), TQT_SLOT (zoom100 ()));
- show ();
- move (rect.x (), rect.y ());
- }
m_minimal_mode = !m_minimal_mode;
}