Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
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 message
Klugier is currently offline  Klugier
Messages: 402
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.
Previous Topic: CursorImage() not called
Goto Forum:
  


Current Time: Tue Mar 28 00:21:05 CEST 2017

Total time taken to generate the page: 0.00693 seconds