summaryrefslogtreecommitdiff
path: root/src/gui/shortcutwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r--src/gui/shortcutwindow.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp
index a051705b8..7c450855a 100644
--- a/src/gui/shortcutwindow.cpp
+++ b/src/gui/shortcutwindow.cpp
@@ -59,16 +59,8 @@ ShortcutWindow::ShortcutWindow(const std::string &title,
Window("Window", false, nullptr, skinFile)
{
setWindowName(title);
- // no title presented, title bar is padding so window can be moved.
- if (mSkin)
- {
- gcn::Window::setTitleBarHeight(gcn::Window::getPadding()
- + mSkin->getTitlePadding());
- }
- else
- {
- gcn::Window::setTitleBarHeight(gcn::Window::getPadding());
- }
+ setTitleBarHeight(getPadding() + getTitlePadding());
+
setShowTitle(false);
setResizable(true);
setDefaultVisible(false);