Fullscreen linux

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
alvise2
In need of some credit
In need of some credit
Posts: 5
Joined: Fri Sep 01, 2017 1:05 pm

Fullscreen linux

Post by alvise2 »

Hi everyone. I'm developing a gui app for windows/linux. I have multiple frames and i switch between them with the Idle event.
The questions is: on windows, when I do

Code: Select all

frame->ShowFullscreen(true)
then I get my frame fullscreen, instead in linux it doesn't float over the task bar and the bar with the program names.
How to solve this?
(Windows 10 - Linux 16 GTK3+, wxWidgets 3.0.1 )
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Fullscreen linux

Post by ONEEYEMAN »

Hi,
What is exact GTK+ version?
Can you reproduce it in the display sample?

Are you running "Ubuntu Unity"?

Thank you.
alvise2
In need of some credit
In need of some credit
Posts: 5
Joined: Fri Sep 01, 2017 1:05 pm

Re: Fullscreen linux

Post by alvise2 »

Hi ONEEYEMAN,
GTK: gtk+3.0 Version: 3.18.9-1ubuntu3.3
Im running Ubuntu 16.04 (with unity, the default one)
wxWidgets version: 3.0.3

Does this help?
I noticed that even trying a super simple example (derive wxFrame, create wxApp, override OnInit and show the frame with wxFrame.ShowFullscreen(true)...) doesn't work: the bar on the left (with the icons) and the menu bar at the top stay there.

Possible solutions?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Fullscreen linux

Post by ONEEYEMAN »

Hi,
Please compile and run the official "display" sample and try to switch to the fullscreen mode.

If it doesn't work - submit a ticket at trac.wxwidgets.org.

Thank you.
alvise2
In need of some credit
In need of some credit
Posts: 5
Joined: Fri Sep 01, 2017 1:05 pm

Re: Fullscreen linux

Post by alvise2 »

Awesome! Thanks a lot ONEEYEMAN!

The problem was a combination of two things (or at least this is what I found):
- hintSize
At the start of the frame, I would always set the size like this, made by default by wxFormBuilder, commented out.
- style = 0
The style for the frame was set to 0, changed to wxDEFAULT_FRAME_STYLE.

With these two fixes now fullscreen works as expected, thanks!
Post Reply