aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-04-28 11:02:35 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-04-28 11:02:35 +0000
commit4c97eee72f1052eef1885a206df232b9075c5fa9 (patch)
treed0376466a44212c3afc92b0c9c824821f77570eb
parent194e4f6ebe085b333210690add64e8fb41503c05 (diff)
downloadqmmp-4c97eee72f1052eef1885a206df232b9075c5fa9.tar.gz
qmmp-4c97eee72f1052eef1885a206df232b9075c5fa9.tar.bz2
qmmp-4c97eee72f1052eef1885a206df232b9075c5fa9.zip
fixed playlist resizing on RTL locales
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4870 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/plugins/Ui/skinned/windowsystem.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/Ui/skinned/windowsystem.cpp b/src/plugins/Ui/skinned/windowsystem.cpp
index 4738f6f5f..b29548fd6 100644
--- a/src/plugins/Ui/skinned/windowsystem.cpp
+++ b/src/plugins/Ui/skinned/windowsystem.cpp
@@ -1,7 +1,7 @@
/***************************************************************************
* Based on Licq *
* Copyright (C) 2006-2009 Licq developers *
- * Copyright (C) 2011-2013 Ilya Kotov *
+ * Copyright (C) 2011-2015 Ilya Kotov *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -226,6 +226,11 @@ void WindowSystem::revertGravity(WId win)
return;
sh.win_gravity = NorthWestGravity;
XSetWMNormalHints(dsp, win, &sh);
+
+ XSetWindowAttributes xs;
+ memset(&xs, 0, sizeof(xs));
+ xs.bit_gravity = NorthWestGravity;
+ XChangeWindowAttributes(dsp, win, CWBitGravity, &xs);
}
#endif