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 |
|
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
|
|
|
|
|
[FIXED] Full screen bug on additional screens. (GNU/Linux)
By: Klugier on Wed, 26 September 2012 14:21
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: mirek on Mon, 01 October 2012 19:30
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: kohait00 on Wed, 10 October 2012 21:20
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: mirek on Wed, 10 October 2012 21:28
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: kohait00 on Wed, 10 October 2012 21:30
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: mirek on Wed, 10 October 2012 21:35
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: Klugier on Mon, 29 October 2012 21:19
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: mirek on Mon, 29 October 2012 21:35
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: Klugier on Mon, 29 October 2012 22:01
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: mirek on Tue, 30 October 2012 18:08
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: mirek on Tue, 30 October 2012 18:09
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux)
By: mirek on Tue, 30 October 2012 18:38
|
Goto Forum:
Current Time: Fri May 10 11:42:59 CEST 2024
Total time taken to generate the page: 0.02038 seconds
|