 Hello there, today we are doing a bit of bug fixing because I have been sent not this but this bug which is normal let's say pop up of widgets place on desktop have a visual glitch so okay what is this visual glitch it looks like this and here bottom right and we can see that these weird line should not in fact be there so the user is indeed right this is a bug steps to reproduce add users which are widget to desktop and click on it so let's go for it step one try to see if you can actually reproduce the bug it's a pretty important thing so users which are as we've set and then we just click on it and there is indeed a bug I had already checked so I knew about it so we have this vertical line that should not be there so in theory in theory I just look at this and say okay someone screwed up but it's not my fault so it's fine but I received a message and we can see here David Edmondson saying it's this compact applet draws a line between the applet dialogue and the panel blah blah blah I did that it's my line which means that it is indeed my fault and I screwed up which also means that I should fix this so let's try to do that so let's open up that particular line that apparently according to David Edmondson and I do trust David Edmondson on this these things is causing the bug so it's in KD source frameworks if I remember correctly plasma framework source and it was somewhere let's just compact no what was it again compact applet let's just run fine grab compact with capital C compact applet.qml where are you and what I got the wrong repository I was pretty sure it was there maybe it's KD workspace and plasma workspace okay let me say that it's been quite some time since I system tray what now this can't be it must be something else plasma desktop it has been some time since I last like work for KD and stuff oh it's this one so I don't remember like anything forgive me so what is going on CD desktop package consents applet right I need to go here and then we can open up compact applet the line is 202 look how pretty is the new we I think we need to revert something about this but in general how pretty is the new thingy with you know touch touch support so pretty I like it okay so let's get back to work draws a line okay so what is going on what is this line saying why is everything so first of all sorry first of all I'm saying top is either undefined or parent top depending if you're on the bottom edge in general what is this line the concept is if you open up this thingy you can see that there is a very small line between the widget and the panel which was recently added by me which is why I am here trying to fix stuff and apparently if none of the plasma location fit these such as when you were my when you have a widget on the desktop let's add it back kickoff also we called it launcher kickoff also have this bug so it's pretty big and let's see how to fix so the concept here is there's nowhere to actually draw the line between the applet and the panel which means that it draws a giant line on top of everything I guess let's try if this is let's check if it this is actually the bug we're if this is actually the fix so let's just hide the line all together if this fixes it well it means that David Edmondson here is right we could avoid this step entirely because I'm sure he already tried this and that's why he is saying that that line is at fault but let's just indeed see that something is wrong where is it caddy workspace plasma desktop desktop and then it was desktop I just need to make it stop so it will take potentially a while because it's compiling so and it's done it too a while like half an hour but we're back so maybe sorry about that so let's see if it works so we source the prefix and restart plasma shell like this but anyway are you still watch these little recording and stuff yes seems like so so that's gone nice as we were saying we should have restarted plasma shell by now well it's working on it no hurry whatsoever plasma okay okay but did it also restart the wallpaper stuff well I mean the bug is gone so it was clearly that so yes David was right this is the problem now of course we can just get rid of the line because it was supposed to be there but we can see in what case should we hide it and well we should hide it when there's no panel attached to it and the question therefore is how do we know when a panel is not attached to the line thankfully we don't have to like work it out ourselves completely because David Edmondson also suggested a solution here which is potentially just needs a visible plasmid location equals left or top and what does that mean so basically plasmid location has a value that could be like bottom left top and right depending on the panel position plus another value which I think is floating or something like that we'll check when it's on the desktop or something else so let's immediately check out what kind of values do we have in plasmid location again we've got these things in theory there should be another so plus my core types we'll just Google the documentation usually that works really well and we've got it here we are expecting left edge right edge top edge bottom edge and floating so left edge location yes floating desktop full screen makes sense and then top edge both okay so we've also got floating desktop full screen top edge okay so what we can do at this point is only show the line if we are in a edge so how do we know that what values are this where is it this is an enum so I guess it's what is this we can what's a pretty way to do that we could say I think it's so we only show this if plasmoid location has the flag plasmacore types bottom edge or plasmacore types top edge or you got idea plasmacore plasmacore types right edge or plasmacore type left edge this is messing with flags but I think it should work I don't remember the default behavior of enumeration so honestly I'm not a big C++ guy sorry about that and let's see if we can find this left edge okay so it just takes the default values floating in zero desktop then must be like one full screen two four eight sixteen something like that I don't remember though or is it just zero one two three four five and then I'm messing up mmm it must be zero one two three four five so I am not supposed to use flux here so is there a better way to do this it was also suggesting the form factor and let's see form factor form factor planner medicine horizontal vertically application is this this one is there a property form factor from the plasmide which I never used it so and KDA plasmide I think it's something like this form factor let's see if we get anything out of it mm-hmm applet interface sounds about right which indeed uses form factor variable so that makes sense and the values are planner that the applet lives in a plane and has two degrees of freedom to grow okay media center which is a weird value then horizontal vertical and the application I don't think this helps at all because just according to the documentation documentation sorry the applet should be planner both when it's on the desktop and attached to the panel so that probably doesn't help much and how can we so I mean I guess the only way is literally the very ugly but I mean if it works it works and plasmide gation equals plasma core dives left edge or this thing four times there's probably better with that honestly I can figure figure out right now I don't know if you have some suggestions I'll be open to your them right edge top edge and bottom edge let's see if this works right away so not that I need to compile first compile please do not take up an hour again okay that work then let's restart plasmash on yet again sorry about that plasmash on don't hit on me and let's wait for the panel to actually appear to know that everything is still working just fine and then if we pop up this thing there's no ugly line so that's good but is there a line if I open the calendar yes there is so this looks like it worked hopefully nothing's broken but I don't think there's like a chance that anything is broken this is such a small change that surely I won't have to do another video fixing other stuff about this and then we just take this and put it in the KD chat and we're done I was probably not supposed to put it in the VDG chat it's not that important and it's just a bug this but let's pretend it's actually meaningful and we're done so it only took like I think 15 minutes or so it was a small bug and David Edmondson had already done a great job finding it finding the issue there but I will try to do another devlog very soon so stay tuned subscribe blah blah blah blah it's compiling so