Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
4780bb28
Commit
4780bb28
authored
Oct 06, 2017
by
Aleksi Suomalainen
Committed by
eekkelund
Apr 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Overlay stuffsies
parent
e5c0a690
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
35 deletions
+28
-35
compositor_new.qml
src/qml/compositor_new.qml
+17
-18
src.pro
src/src.pro
+11
-17
No files found.
src/qml/compositor_new.qml
View file @
4780bb28
...
...
@@ -25,9 +25,16 @@ import org.nemomobile.devicelock 1.0
import
"
compositor
"
import
"
scripts/desktop.js
"
as
Desktop
Item
{
id
:
root
property
bool
isShaderUsed
:
false
property
bool
isAlarmWindow
:
false
property
alias
wrapperMystic
:
mysticWrapper
// Qt::WindowType enum has no option for an Input Method window type. This is a magic value
// used by ubuntumirclient QPA for special clients to request input method windows from Mir.
property
int
inputMethodWindowType
:
2
;
Connections
{
target
:
comp
.
quickWindow
onActiveFocusItemChanged
:
{
...
...
@@ -267,6 +274,7 @@ Item {
Component
{
id
:
mysticWrapper
WindowWrapperMystic
{
id
:
innerMystic
}
}
Compositor
{
...
...
@@ -288,21 +296,12 @@ Item {
var
window
=
null
var
wi
=
null
if
(
o
)
window
=
o
.
userData
window
=
o
if
(
window
==
null
)
window
=
homeWindow
setCurrentWindow
(
window
)
if
(
isAlarmWindow
){
comp
.
topmostAlarmWindow
=
window
wi
=
mysticWrapper
.
createObject
(
parent
,
{
window
:
window
})
window
.
userData
=
wi
setCurrentWindow
(
wi
)
}
else
{
if
(
!
comp
.
topmostAlarmWindow
)
{
wi
=
mysticWrapper
.
createObject
(
parent
,
{
window
:
window
})
}
}
}
function
setCurrentWindow
(
w
,
skipAnimation
)
{
...
...
@@ -318,9 +317,7 @@ Item {
topmostApplicationWindow
.
visible
=
false
topmostApplicationWindow
=
topmostWindow
topmostApplicationWindow
.
visible
=
true
if
(
!
skipAnimation
)
topmostApplicationWindow
.
animateIn
()
w
.
window
.
takeFocus
()
if
(
w
.
window
)
w
.
window
.
takeFocus
()
}
}
onSensorOrientationChanged
:
{
...
...
@@ -332,14 +329,14 @@ Item {
onWindowAdded
:
{
console
.
log
(
"
Compositor: Window added
\"
"
+
window
.
title
+
"
\"
"
+
"
category:
"
+
window
.
category
)
+
"
category:
"
+
window
.
category
+
"
flags
"
+
window
.
windowFlags
)
var
isHomeWindow
=
window
.
isInProcess
&&
comp
.
homeWindow
==
null
&&
window
.
title
===
"
Home
"
var
isDialogWindow
=
window
.
category
===
"
dialog
"
var
isNotificationWindow
=
window
.
category
==
"
notification
"
var
isOverlayWindow
=
window
.
category
==
"
overlay
"
var
isAlarmWindow
=
window
.
category
==
"
alarm
"
var
isOverlayWindow
=
window
.
category
==
"
overlay
"
||
window
.
windowFlags
===
inputMethodWindowType
isAlarmWindow
=
window
.
category
==
"
alarm
"
var
parent
=
null
if
(
window
.
category
==
"
cover
"
||
window
.
title
==
"
_CoverWindow
"
)
{
window
.
visible
=
false
...
...
@@ -358,10 +355,12 @@ Item {
}
var
w
if
(
isOverlayWindow
)
if
(
isOverlayWindow
)
{
console
.
debug
(
"
Have overlay
"
)
w
=
alphaWrapper
.
createObject
(
parent
,
{
window
:
window
})
}
else
w
=
windowWrapper
.
createObject
(
parent
,
{
window
:
window
...
...
src/src.pro
View file @
4780bb28
...
...
@@ -12,16 +12,15 @@ styles.path = /usr/share/lipstick-glacier-home-qt5
styles
.
files
=
nemovars
.
conf
images
.
path
=
/
usr
/
share
/
lipstick
-
glacier
-
home
-
qt5
/
qml
/
images
images
.
files
=
qml
/
images
/*
.png
\
qml/images
/*
.jpg
\
qml/images
/*
.svg
images
.
files
=
$$
files
(
qml
/
images
/*
.png,false)
\
$$files(qml/images
/*
.jpg,false)
\
$$files(qml/images
/*
.svg,false)
theme.path = /usr/share/lipstick-glacier-home-qt5/qml/theme
theme.files =
qml/theme
/*
.png
theme.files =
$$files(qml/theme
/*
.png,false)
qml.path = /usr/share/lipstick-glacier-home-qt5/qml
qml.files = qml/MainScreen.qml \
qml/compositor.qml \
qml/LauncherItemDelegate.qml \
qml/Lockscreen.qml \
qml/LockscreenClock.qml \
...
...
@@ -30,25 +29,19 @@ qml.files = qml/MainScreen.qml \
qml/ToolBarLayoutExample.qml \
qml/SwitcherItem.qml \
qml/CloseButton.qml \
qml/NotificationPreview.qml \
qml/FeedsPage.qml \
qml/Statusbar.qml \
qml/StatusbarItem.qml \
qml/WifiPanel.qml \
qml/SimPanel.qml \
qml/NumButton.qml \
qml/USBModeSelector.qml \
qml/Pager.qml \
qml/VolumeControl.qml \
qml/BatteryPanel.qml \
qml/CommonPanel.qml \
qml/ShutdownScreen.qml \
qml/GlacierRotation.qml \
qml/DeviceLockUI.qml \
qml/LauncherItemWrapper.qml \
qml/LauncherItemFolder.qml \
qml/SearchListView.qml \
qml/compositor_new.qml
qml/compositor_new.qml \
qml/compositor.qml \
qml/LayerManager.qml
qmlcompositor.path = /usr/share/lipstick-glacier-home-qt5/qml/compositor
qmlcompositor.files = qml/compositor/WindowWrapperMystic.qml \
...
...
@@ -57,8 +50,7 @@ qmlcompositor.files = qml/compositor/WindowWrapperMystic.qml \
qml/compositor/ScreenGestureArea.qml
scripts.path = /usr/share/lipstick-glacier-home-qt5/qml/scripts
scripts.files = qml/scripts/desktop.js \
qml/scripts/rotation.js
scripts.files = qml/scripts/desktop.js
system.path = /usr/share/lipstick-glacier-home-qt5/qml/system
system.files = qml/ShutdownScreen.qml
...
...
@@ -155,4 +147,6 @@ DISTFILES += \
settings-plugins
/*/*
.qml \
settings-plugins
/*/*
.json \
settings-plugins
/*/*
.svg
qml/connectivity/ConnectionSelector.qml \
qml/statusbar/BatteryIndicator.qml \
qml/LayerManager.qml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment