Skip to content

ClientDC not working on Wayland #743

@DietmarSchwertberger

Description

@DietmarSchwertberger

Operating system: Ubuntu 17.10
wxPython version: 4.0.1
Stock or custom build: Stock
Python version: 3.6.3
Stock or custom build: Stock

Description of the problem: When using ClientDC, the screen content is not updated. It will only update with a large delay or on resizing etc.
As workaround, an additional Refresh() solves the problem.
Switching from Wayland to X also solves the problem.

The oxboxes Ubuntu 17.10 VM is fine for reproducing the issue.

For verification, try the ScrolledWindow.py demo with BUFFERED = False.
On Python 2.7 / wxPython 3.0.2 (gtk3.0) everything works fine.
On Python 3.6 / wxPython 4.0.1, when drawing with the mouse, the screen is not updated before it is resized.

This was reported on wxpython-dev by Riccardo Borgani who has problems with the Matplotlib WxAgg backend: https://groups.google.com/d/msg/wxpython-dev/8E4jtTjEmjI/5H3CboaNAAAJ

When trying with Python 2.7 and wxPython 3.0.2 (gtk3.0) his example worked as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions