Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [BUG & Patch] TopWindow::CenterRect under X11 may lead to crash!!!
[BUG & Patch] TopWindow::CenterRect under X11 may lead to crash!!! [message #40635] |
Sun, 25 August 2013 01:26 |
|
Klugier
Messages: 1077 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I have noticed that method TopWindow::CenterRect can creat window outside screen. This behaviour can lead to crash on some windows managers like Kwin.
What we need to do is omit the code that is calculating absolut center position if new window is partially or fully outside screen. So the new "if" look like this:
if (p.x <= wr.Width() && p.y <= wr.Height()) {
// Find the absolut position of new window
// ....
}
I enclosed corrected source file (CtrlCore/X11Top.cpp).
Sincerley,
Klugier
-
Attachment: X11Top.cpp
(Size: 13.28KB, Downloaded 331 times)
U++ - one framework to rule them all.
[Updated on: Sat, 31 August 2013 00:31] Report message to a moderator
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Jun 15 22:37:45 CEST 2024
Total time taken to generate the page: 0.02273 seconds
|