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: 423
Registered: September 2012
Location: Poland, Kraków
Senior Member
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


Ultimate++ - 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: 10978
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: Linux dual monitor: Not showing a TopWindow on the task bar
Goto Forum:
  


Current Time: Wed Apr 26 07:58:03 CEST 2017

Total time taken to generate the page: 2.26652 seconds