summaryrefslogtreecommitdiffstats
path: root/ui/gfx/win
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/win')
-rw-r--r--ui/gfx/win/hwnd_util.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/gfx/win/hwnd_util.cc b/ui/gfx/win/hwnd_util.cc
index a986e66..e28398a 100644
--- a/ui/gfx/win/hwnd_util.cc
+++ b/ui/gfx/win/hwnd_util.cc
@@ -207,9 +207,10 @@ void CheckWindowCreated(HWND hwnd) {
void ShowSystemMenu(HWND window) {
RECT rect;
GetWindowRect(window, &rect);
- Point point = Point(rect.left, rect.top);
+ Point point = Point(base::i18n::IsRTL() ? rect.right : rect.left, rect.top);
static const int kSystemMenuOffset = 10;
- point.Offset(kSystemMenuOffset, kSystemMenuOffset);
+ point.Offset(base::i18n::IsRTL() ? -kSystemMenuOffset : kSystemMenuOffset,
+ kSystemMenuOffset);
ShowSystemMenuAtPoint(window, point);
}