Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Line(s) | 70 | MouseArea { | |||
---|---|---|---|---|---|
149 | 149 | | |||
150 | 150 | | |||
151 | StackView { | 151 | StackView { | ||
152 | id: mainStack | 152 | id: mainStack | ||
153 | anchors { | 153 | anchors { | ||
154 | left: parent.left | 154 | left: parent.left | ||
155 | right: parent.right | 155 | right: parent.right | ||
156 | } | 156 | } | ||
157 | height: root.height | 157 | height: root.height + units.gridUnit * 3 | ||
158 | 158 | | |||
159 | focus: true //StackView is an implicit focus scope, so we need to give this focus so the item inside will have it | 159 | focus: true //StackView is an implicit focus scope, so we need to give this focus so the item inside will have it | ||
160 | 160 | | |||
161 | Timer { | 161 | Timer { | ||
162 | //SDDM has a bug in 0.13 where even though we set the focus on the right item within the window, the window doesn't have focus | 162 | //SDDM has a bug in 0.13 where even though we set the focus on the right item within the window, the window doesn't have focus | ||
163 | //it is fixed in 6d5b36b28907b16280ff78995fef764bb0c573db which will be 0.14 | 163 | //it is fixed in 6d5b36b28907b16280ff78995fef764bb0c573db which will be 0.14 | ||
164 | //we need to call "window->activate()" *After* it's been shown. We can't control that in QML so we use a shoddy timer | 164 | //we need to call "window->activate()" *After* it's been shown. We can't control that in QML so we use a shoddy timer | ||
165 | //it's been this way for all Plasma 5.x without a huge problem | 165 | //it's been this way for all Plasma 5.x without a huge problem | ||
▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines |