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 » U++ Library : Other (not classified elsewhere) » [FIXED] Full screen bug on additional screens. (GNU/Linux)
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux) [message #37632 is a reply to message #37357] Mon, 29 October 2012 21:19 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I have found solution for this bug. I have modified following file TopWinX11.cpp (CtrlCore):

void TopWindow::SyncSizeHints()
{
	GuiLock __; 
	Size min = GetMinSize();
	Size max = GetMaxSize();
	if(!sizeable)
		min = max = GetRect().Size();
	Window w = GetWindow();
	if(w && (min != xminsize || max != xmaxsize)) {
		xminsize = min;
		xmaxsize = max;
		size_hints->min_width = min.cx;
		size_hints->min_height = min.cy;
		size_hints->max_width = max.cx;
		size_hints->max_height = max.cy;
		size_hints->flags = PMinSize; // <- THIS LINE 
		XSetWMNormalHints(Xdisplay, w, size_hints);
	}
}


Instead of:

void TopWindow::SyncSizeHints()
{
        GuiLock __; 
	Size min = GetMinSize();
	Size max = GetMaxSize();
	if(!sizeable)
		min = max = GetRect().Size();
	Window w = GetWindow();
	if(w && (min != xminsize || max != xmaxsize)) {
		xminsize = min;
		xmaxsize = max;
		size_hints->min_width = min.cx;
		size_hints->min_height = min.cy;
		size_hints->max_width = max.cx;
		size_hints->max_height = max.cy;
		size_hints->flags = PMinSize|PMaxSize;
		XSetWMNormalHints(Xdisplay, w, size_hints);
	}
}


Now it works great.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Mon, 29 October 2012 21:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Missing Docs for some virtual Ctrl:: functions
Next Topic: [Drag & Drop] How to reject Clip on base of content of data?
Goto Forum:
  


Current Time: Fri May 10 11:42:59 CEST 2024

Total time taken to generate the page: 0.02038 seconds