Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphical glitch when using some shortcuts in Geany Preview #9

Closed
ralf3u opened this issue May 18, 2023 · 14 comments
Closed

Graphical glitch when using some shortcuts in Geany Preview #9

ralf3u opened this issue May 18, 2023 · 14 comments

Comments

@ralf3u
Copy link

ralf3u commented May 18, 2023

When using some special shortcuts (Toggle editor 1, Toggle editor 2 and both Switch Views), then one can see the scrollbar of the Preview for a part of the second somewhere else.

If for example the sidebar is on the right side, and if the widths of editor and sidebar are about 3:1 (see image 1), then, after having pressed some shortcuts, the sidebar is moving to the left side (see image 2), so that the scrollbar of the Preview is more on the left side, and then the content expands to the right side (see image 3). The images are screenshots from a video that I did with a digital camera.

image 1
1

image 2
2

image 3
3

History
The glitch was mentioned for the first time in #4 (comment) in point 3, and later in #7 (comment).

Environment
Lubuntu 23.04 with Geany 1.38.

Remark
Because you wrote that you don't see the graphical glitch at all (see #7 (comment)):
Maybe it would be good if you notice your environment like CPU, RAM, distribution name, Geany version number, and graphic card, so if someone feels too much disturbed by the graphical glitch, there is at least the possibility to change the environment. And maybe the values could help to find the cause of the issue.

@xiota
Copy link
Owner

xiota commented May 18, 2023

I doubt most people would see or be bothered by the glitch because normally people don't hide and show the sidebar as much as you do. What GPU are you using? Have you tried X11 vs Wayland? Does the glitch occur with different window managers or desktop environments?

@ralf3u
Copy link
Author

ralf3u commented May 18, 2023

What GPU are you using?

Intel UHD Graphics G4

Have you tried X11 vs Wayland? Does the glitch occur with different window managers or desktop environments?

I will try Wayland with a live-system of Ubuntu. I'm still using Lubuntu, so only LXQt and Openbox.

@xiota
Copy link
Owner

xiota commented May 18, 2023

I do remember seeing a glitch when I rapidly hid and showed the sidebar. Otherwise it wasn't noticeable. Try KDE Plasma too.

@ralf3u
Copy link
Author

ralf3u commented May 18, 2023

OK, I intend to try Ubuntu and Kubuntu, both as live-system. Is live-system OK, or should I install both systems?

@xiota
Copy link
Owner

xiota commented May 18, 2023

Try live first because it's easier. Sometimes live environments use "safe" drivers that may not perform as well. So you might want to install the distro if you didn't see the results you want. If you have a machine set up for distro testing, you could try Endeavour and Manjaro. They use a different package manager from Ubuntu, so installation would be different.

@ralf3u
Copy link
Author

ralf3u commented Oct 3, 2024

I just want to document that on Lubuntu 24.04 with Geany 2.0 with eink-display or TFT-display, there is still the graphical glitch.

@ralf3u
Copy link
Author

ralf3u commented Oct 5, 2024

I think that there are two possibilities to show "only sidebar":

  • disable editor
  • maximize sidebar

In "disable editor" the separation line between editor and sidebar can't be grabbed on one side of the window because there is no separation line any more.
In "maximize sidebar" there is still a separation line on one side of the window that can be grabbed.

This issue is using "disable editor" in the shortcut because I can't grab a separation line on one window-side. What about the idea to try "maximize sidebar" as shortcut to see if the graphical glitch is still there?

@xiota
Copy link
Owner

xiota commented Oct 5, 2024

"Maximize" sidebar would be troublesome. Would require saving current size, changing it, restoring it. I had a plugin that tried to do that to save different sidebar sizes for maximized and unmaximized windows. It got confused some small percentage the time (maybe around 5-10%). Then one day, it stopped working. I didn't bother to investigate the reason. Possibly some GTK or Geany change prevents plugins from changing sidebar size.

Would also be very confusing if editor had focus while hidden by "maximized" sidebar. User input could modify the document even though it's not visible. Don't know whether this could also be a problem when the document is hidden entirely. I think there's a Lua script attempting to implement this capability? What happens when document had focus, is hidden, user types something, then document is unhidden?

@xiota
Copy link
Owner

xiota commented Oct 5, 2024

I wonder whether the glitch (second screenshot) could be caused or mitigated by some animation effect.

@ralf3u
Copy link
Author

ralf3u commented Oct 5, 2024

I wonder whether the glitch (second screenshot) could be caused or mitigated by some animation effect.

I think that the change is just slow. The sidebar moves to the left. And then the sidebar will be extended to the right. If both steps would be executed much faster, then maybe one would not see the graphical glitch.

@ralf3u
Copy link
Author

ralf3u commented Oct 7, 2024

That is really strange:
If I deactivate the plugin Preview and the plugin Xi/Tweaks, if after restarting Geany I can see editor&sidebar while in the sidebar in the tab Documents there is a scrollbar, then if I press the geanylua- shortcut toggle-editor-1 then I can't see at all a graphical glitch.

Do you have an explication?

@ralf3u
Copy link
Author

ralf3u commented Oct 7, 2024

That is really strange:
If I deactivate the plugin Preview and the plugin Xi/Tweaks, if after restarting Geany I can see editor&sidebar while in the sidebar in the tab Documents there is a scrollbar, then if I press the geanylua- shortcut toggle-editor-1 then I can't see at all a graphical glitch.

It seems to be that geany-lua is not the problem, but preview.
Should I close this issue and open a new issue at preview?

@xiota
Copy link
Owner

xiota commented Oct 7, 2024

Should I close this issue and open a new issue at preview?

No. It's probably the webbrowser component is relatively slow to load. There's nothing I can do about it.

@ralf3u
Copy link
Author

ralf3u commented Oct 8, 2024

Because I can't reproduce the issue when the plugin Preview is deactivated, the issue should be assigned to the plugin Preview. I close this issue here at geanylua and I will open today a new issue at preview.

It's probably the webbrowser component is relatively slow to load. There's nothing I can do about it.

If you can't do nothing about it, you can close the issue at preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants