Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » Bug: TopWindow::IsFullscreen is not working under GTK (TopWindow::FullScreen in GtkTop.cpp is not setting internal fullscreen property)
Bug: TopWindow::IsFullscreen is not working under GTK [message #47734] Wed, 15 March 2017 18:03 Go to next message
steffen is currently offline  steffen
Messages: 38
Registered: May 2007
Location: Denmark
Member

I was trying to make an application change to fullscreen mode and back by pressing F11. Unfortunately IsFullScreen() always returns false on Ubuntu.

This change to TopWindow::FullScreen() in GtkTop.cpp would fix both FullScreen() and IsFullScreen():
TopWindow& TopWindow::FullScreen(bool b)
{
	if (fullscreen = b)
		SetMode(FULLSCREEN);
	else
		SetMode(OVERLAPPED);
	return *this;
}

Now a simple toggle to/from full screen can be done like this:
FullScreen(!IsFullScreen());
Re: Bug: TopWindow::IsFullscreen is not working under GTK [message #47735 is a reply to message #47734] Wed, 15 March 2017 22:24 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1083
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I created redmine ticket (#1659) for your issue. We don't want to forget about it. Please wait for Mireks approval.

Sincerely and thanks for reporting,
Klugier


U++ - one framework to rule them all.
Re: Bug: TopWindow::IsFullscreen is not working under GTK [message #47908 is a reply to message #47735] Sat, 22 April 2017 10:37 Go to previous message
mirek is currently offline  mirek
Messages: 14050
Registered: November 2005
Ultimate Member
Should be now fixed. Sorry for the trouble and thanks for reporting.

I have used similar but a little bit different way (put setting fullscreen directly into SetMode).
Previous Topic: TrayIcon is driving me insane
Next Topic: BUG? EditInt / PromptOK not functioning as thought?
Goto Forum:
  


Current Time: Fri Oct 04 23:39:38 CEST 2024

Total time taken to generate the page: 0.02473 seconds