Skip to content

linuxcnc: default GDK_GL to software-draw-surface - #4777

Open
rene-dev wants to merge 1 commit into
LinuxCNC:masterfrom
rene-dev:gmoccapy-x11-glitch
Open

rene-dev wants to merge 1 commit into
LinuxCNC:masterfrom
rene-dev:gmoccapy-x11-glitch

Conversation

@rene-dev

@rene-dev rene-dev commented Nov 5, 2026

Copy link
Copy Markdown
Member

Since the GTK preview is a Gtk.GLArea, GTK on X11 draws any window holding it through GL, and brings in the other widgets' pixmaps with GLX texture-from-pixmap. On some Mesa setups that reads a pixmap before the X server finished drawing it, so labels, buttons and the G-code editor glitch sporadically, also on pages without the preview. 2.9 has no GLArea and is not affected.

software-draw-surface makes GTK upload the changed parts of the window with a plain copy instead. The reporter confirmed it removes the glitching. A value the user set is kept.

Fixes #4754

Since the GTK preview is a Gtk.GLArea, GTK on X11 draws any window
holding it through GL, and brings in the other widgets' pixmaps with
GLX texture-from-pixmap. On some Mesa setups that reads a pixmap
before the X server finished drawing it, so labels, buttons and the
G-code editor glitch sporadically, also on pages without the preview.
2.9 has no GLArea and is not affected.

software-draw-surface makes GTK upload the changed parts of the window
with a plain copy instead. The reporter confirmed it removes the
glitching. A value the user set is kept.

Fixes LinuxCNC#4754
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

Successfully merging this pull request may close these issues.

Graphics glitching on Gmoccapy

1 participant