FLTK logo

Re: [fltk.general] Window maximizing with Fl_Gl_Window

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Window maximizing with Fl_Gl_Window Albrecht Schlosser Jan 30, 2023  
 
On 1/30/23 11:56 imm wrote:
On Mon, 30 Jan 2023 at 10:18, Ian MacArthur wrote:
... I have one laptop, with Ubuntu 22.04 with an Intel GPU, that behaves as the OP showed, when running in X11 mode. Running in Wayland mode it is fine, no problem.
So... here's an additional observation: on the "failing" laptop, the
mis-behaviour "often" (most times but not always) appears if the view
is in double-buffered mode when I switch it to fullscreen. If the view
is in single-buffer mode, it "usually" works fine.
So it may be an issue with flipping the buffers in the Intel GLX or some such?

Don't really know...

FWIW, I tried a few things, and so long as the GL view is
single-buffered, it basically seems to work OK; if the GL view is
double-buffered, the front buffer does not get consistently updated -
not just resizing to fullscreen, but some other refreshes seem to get
missed too.
And: This may be an alternate explanation for why the test/cube demo
is unaffected, since it is single-buffered.

I also have Intel graphics and I can not see the switch to fullscreen failing. I tried all combinations with double buffered on and off:

- hybrid build, running Wayland backend
- hybrid build, running X11 backend (which uses Cairo graphics)
- pure X11 build (which uses X11 graphics)

Here are my system details, in case it helps (Linux Mint 20 is based on Ubuntu 20.04 LTS):
$ inxi -SG
System:    Host: xxx Kernel: 5.4.0-135-generic x86_64 bits: 64 Desktop: Gnome 3.36.9 Distro: Linux Mint 20 Ulyana 
Graphics:  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
           Display: wayland server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.2.6

FWIW, if you like to compare or post your own details: 'inxi' can be installed on Ubuntu with `apt install inxi` and I believe it's in Debian as well.

Note that I'm currently running the Gnome/Wayland desktop ("Gnome 3.36.9"). Switching to "fullscreen" shows a kind of "animation", obviously updating the screen many times. Maybe this animation makes it work? Ian, how does your failing system(s) switch to fullscreen, is it all in one step, or is it animated?

BTW: I just checked that the OP's animated GIF shows the switch to fullscreen in one step (not animated), maybe the (mis)behavior depends on the desktop (WM)?

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/18db366a-8940-fd10-47a6-d8571529efef%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.