summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-08 20:31:48 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-08 20:31:48 +0200
commitfd520c9cabdea03dbaa9edba4b8fdedd99ca75b3 (patch)
treeae5485f4cd7db2f3d327064352713bef95f24e61 /src/gui/windowmenu.cpp
parentb2ce88bae2b95adb612456d9659669d6b686de7b (diff)
downloadplus-fd520c9cabdea03dbaa9edba4b8fdedd99ca75b3.tar.gz
plus-fd520c9cabdea03dbaa9edba4b8fdedd99ca75b3.tar.bz2
plus-fd520c9cabdea03dbaa9edba4b8fdedd99ca75b3.tar.xz
plus-fd520c9cabdea03dbaa9edba4b8fdedd99ca75b3.zip
Fix showing buttons in up right corner.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 2a3ef51fa..1fa99e729 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -91,6 +91,12 @@ WindowMenu::WindowMenu():
addButton(N_("DR"), _("Drop"), x, h, KeyboardConfig::KEY_WINDOW_DROP);
addButton(N_("SET"), _("Setup"), x, h, KeyboardConfig::KEY_WINDOW_SETUP);
+ if (graphics)
+ {
+ setDimension(gcn::Rectangle(graphics->getWidth() - x - 3,
+ 3, x - 3, h));
+ }
+
loadButtons();
mTextPopup = new TextPopup;