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 previous 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());
 
Read Message
Read Message
Read Message
Previous Topic: TrayIcon is driving me insane
Next Topic: BUG? EditInt / PromptOK not functioning as thought?
Goto Forum:
  


Current Time: Tue Jun 25 21:40:19 CEST 2024

Total time taken to generate the page: 0.01679 seconds