|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [FIXED] Full screen bug on additional screens. (GNU/Linux)
[FIXED] Full screen bug on additional screens. (GNU/Linux) [message #37357] |
Wed, 26 September 2012 14:21 |
|
Klugier
Messages: 1075 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I found a bug in all u++ applications, I have compiled on my GNU/Linux (Kubuntu 12.04 amd64). The proble is with all "fullscreen" aplication. When I moved my window to the additional display and I would like to make this window stretched to all screen surface. I can not do this. The window is marked as a resize to maksimum but it not fit to screen surface.
I enclose picture with this error.
Sincerely,
U++ - one framework to rule them all.
[Updated on: Fri, 28 June 2013 22:05] Report message to a moderator
|
|
|
|
|
|
|
|
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: 1075 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
|
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux) [message #37634 is a reply to message #37357] |
Mon, 29 October 2012 22:01 |
|
Klugier
Messages: 1075 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I am sorry. It is my fault. But in meantime, I have found another better solution (I don't know it's good, but it works):
CtrlPos.cpp:
Size Ctrl::GetMaxSize() const
{
return GetVirtualScreenArea().Size();
}
Instead of:
Size Ctrl::GetMaxSize() const
{
return GetVirtualWorkArea().Size();
}
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Mon, 29 October 2012 22:11] Report message to a moderator
|
|
|
Re: [Bug report] Full screen bug on additional screens. (GNU/Linux) [message #37648 is a reply to message #37634] |
Tue, 30 October 2012 16:27 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
I don't know if this directly related as this is for just a single screen.
nlneilson wrote on Sun, 08 July 2012 11:45 | When TheIDE is opened or started the file and even the place in that file is saved for the next time it is opened.
Is there a way to have TheIDE open where it is not in the full screen mode?
|
That was back in July and it is still the same after many updates of u++
5494 always opens the IDE in full screen
The box that opens to pick the package can be moved and that is saved.
[Updated on: Tue, 30 October 2012 16:51] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Mar 28 10:55:00 CET 2024
Total time taken to generate the page: 0.01541 seconds
|
|
|