mvourlakos added a comment.
In D10344#299042 <https://phabricator.kde.org/D10344#299042>, @hoffmannrobert wrote: > In D10344#297751 <https://phabricator.kde.org/D10344#297751>, @hoffmannrobert wrote: > > > > > > Still looking where these screen numbers come from... working in Latte I had to understand how Plasma is working with screens, it might help you to understand it... There is a **plasma-workspace/app/screenpool.h** class which is responsible for the ids you are mentioning. This class keeps a record the creates a table which is: ScreenName=id (e.g. 1,2,3,4, ... etc.) That table can be found at **~/.config/plasmashellrc** e.g.: [ScreenConnectors] 0=HDMI-1 1=eDP-1 2=eDP-1-unknown 3=eDP-1-1 4=:0.0 5=Screen26 6=Screen36 screenpool class is responsible to maintain that table and also to inform applets, containments, coronas etc for associations between ids and screens the Corona class has a **screenForContainment()** function that helps at that communication between applets<->screens screen() and lastScreen() : functions usually return the id of the screen based on ScreenConnectors REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D10344 To: hoffmannrobert, #plasma Cc: mvourlakos, mart, ngraham, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
