mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
PluginSystem: refactored CurrentScreenDetector so it can be used by core IPC calls AND plugins IPC calls.
This commit is contained in:
@@ -121,15 +121,25 @@ ShellRoot {
|
||||
// Settings window mode (single window across all monitors)
|
||||
SettingsPanelWindow {}
|
||||
|
||||
// Shared screen detector for IPC and plugins
|
||||
CurrentScreenDetector {
|
||||
id: screenDetector
|
||||
}
|
||||
|
||||
// IPCService is treated as a service but it must be in graphics scene.
|
||||
IPCService {}
|
||||
IPCService {
|
||||
id: ipcService
|
||||
screenDetector: screenDetector
|
||||
}
|
||||
|
||||
// Container for plugins Main.qml instances (must be in graphics scene)
|
||||
Item {
|
||||
id: pluginContainer
|
||||
visible: false
|
||||
|
||||
Component.onCompleted: {
|
||||
PluginService.pluginContainer = pluginContainer;
|
||||
PluginService.screenDetector = screenDetector;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user