Hello Thomas,
Yesterday, I mentioned that disabling the timer resolved the issue, meaning the UI dragging problem disappeared. However, the layout functionality was affected. I suspect the problem lies in the run_layout function.
I also tried reducing the timer delay, but the issue still persists.
Today, I further traced the code and focused on the restoreFromLayout function in qt_layout.py. When I removed vr3 as shown below, the UI behaved normally:
if 0: # has_vr3At this point, the UI issue was resolved. I did some additional testing and found that enabling viewrendered.py in @enabled-plugins instead of viewrendered3.py prevented the UI's border dragging issue in Leo.
Therefore, the root cause seems to be related to vr3. My initial guess is that there might be an issue with the hierarchy or parent-child relationship set by vr3. I will investigate this further when I have more time.
Best regards
Hello Thomas,
Yesterday, I mentioned that disabling the timer resolved the issue, meaning the UI dragging problem disappeared. However, the layout functionality was affected. I suspect the problem lies in the run_layout function.
I also tried reducing the timer delay, but the issue still persists.
Today, I further traced the code and focused on the restoreFromLayout function in qt_layout.py. When I removed vr3 as shown below, the UI behaved normally:
if 0: # has_vr3
if (vr3 := self.find_widget('viewrendered3_pane')) is None:
import leo.plugins.viewrendered3 as vr3_mod
vr3 = vr3_mod.getVr3({'c': self.c})vr3.setParent(self)
At this point, the UI issue was resolved. I did some additional testing and found that enabling viewrendered.py in @enabled-plugins instead of viewrendered3.py prevented the UI's border dragging issue in Leo.
Therefore, the root cause seems to be related to vr3. My initial guess is that there might be an issue with the hierarchy or parent-child relationship set by vr3. I will investigate this further when I have more time.
The screenshot above was taken with a phone. If you use Alt + PrtSc, it will look like the one below.

At the moment, I’m not sure if this is a Qt issue or specific to my computer (I have 4 monitors). I’ll test it on another computer later to verify.
Additionally, I believe this should not affect Leo's next release.
Hello Thomas, Today, I traced the vr3 code further and have basically confirmed that this is an issue with QWebEngineView and not related to vr3.I wrote a simple standalone app, and the issue still occurs when dragging the window border to resize it on my computer.Below is a screenshot.
...
At the moment, I’m not sure if this is a Qt issue or specific to my computer (I have 4 monitors). I’ll test it on another computer later to verify.
Additionally, I believe this should not affect Leo's next release.