make positioning work in wayland too

This commit is contained in:
Marco Martin 2015-06-04 17:01:08 -07:00
parent 9e3b4e46b3
commit 39b70c17a2

View file

@ -17,9 +17,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/ *********************************************************************/
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Window 2.0
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.kwin 2.0; import org.kde.kwin 2.0
PlasmaCore.Dialog { PlasmaCore.Dialog {
id: panel id: panel
@ -42,7 +43,9 @@ PlasmaCore.Dialog {
} }
} }
Component.onCompleted: { Component.onCompleted: {
// KWin.registerWindow(panel); KWin.registerWindow(panel);
panel.visible = true; panel.visible = true;
panel.y = workspace.virtualScreenSize.height - height
} }
} }