Giter Site home page Giter Site logo

Comments (10)

SvenDowideit avatar SvenDowideit commented on May 8, 2024

I'm also seeing a non-drawn canvas on Linux using i3wm for the "Hello" example - though I presumed it was due to the simplified window manager?

is there a "force redraw"?

from fyne.

SvenDowideit avatar SvenDowideit commented on May 8, 2024

mmm, so I added a aboutWindow.Canvas().Refresh(aboutWindow.Content()) and that appears to work for my issue.

from fyne.

andydotxyz avatar andydotxyz commented on May 8, 2024

Thanks for the information. That code will indeed for a complete redraw, but including it in the right place is the trick I guess - where did your addition go to resolve it at your end?

from fyne.

andydotxyz avatar andydotxyz commented on May 8, 2024

@sbinet Can you confirm what window manager you are using for this? I cannot replicate on my Arch machine...

from fyne.

andydotxyz avatar andydotxyz commented on May 8, 2024

This is stumping me. Has the content been drawn and then covered, then on reveal it is not drawing correctly? In X11 I think that the window surfaces should be cached.

@SvenDowideit for some reason I could not replicate with i3 either.

Can you please confirm it's the latest fyne and possibly the steps to reproduce the issue?
Thanks!

from fyne.

sbinet avatar sbinet commented on May 8, 2024

I am using openbox:

$> yay -Qi openbox 
Name            : openbox
Version         : 3.6.1-4
Description     : Highly configurable and lightweight X11 window manager
Architecture    : x86_64
URL             : http://openbox.org
Licenses        : GPL
Groups          : lxde  lxde-gtk3  lxqt
Provides        : libobrender.so=32-64
Depends On      : startup-notification  libxml2  libxinerama  libxrandr
                  libxcursor  pango  imlib2  librsvg  libsm
Optional Deps   : plasma-workspace: for the KDE/Openbox xsession
                  python2-xdg: for the openbox-xdg-autostart script
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1215.00 KiB
Packager        : Florian Pritz <[email protected]>
Build Date      : Mon 25 Jun 2018 11:51:42 AM CEST
Install Date    : Mon 25 Jun 2018 08:08:12 PM CEST

I am using:

from fyne.

niaow avatar niaow commented on May 8, 2024

So this may be openbox/i3wm specific or GPU-driver specific. I am unable to replicate with latest Manjaro (Arch-fork) on amd64 with Cinnamon on an AMD GCN based GPU running on Mesa. I will try on openbox on my system when i get a chance.

from fyne.

sbinet avatar sbinet commented on May 8, 2024

let me know if there's something I can do on my side to help you track this down.

from fyne.

niaow avatar niaow commented on May 8, 2024

I have managed to replicate this with these commands:

Xephyr -br -ac -noreset -screen 800x600 :1 &
DISPLAY=:1 openbox &
DISPLAY=:1 fyne_demo &

image

This will open a nested display with Xephyr, run openbox in it, and run the fyne demo in it.

from fyne.

andydotxyz avatar andydotxyz commented on May 8, 2024

Thanks so much for all of this.
It seems that, whilst we had hooked in to the callbacks, it was not refreshing all the time.
This would have affected any Linux WM that does not composite or back buffer windows.

from fyne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.