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) » [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 Go to previous message
Klugier is currently offline  Klugier
Messages: 1075
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 316 times)


U++ - one framework to rule them all.

[Updated on: Sat, 31 August 2013 00:31]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WString0::Free() crashing
Next Topic: Some MSCx66 warnings and fixes
Goto Forum:
  


Current Time: Thu Mar 28 13:56:06 CET 2024

Total time taken to generate the page: 0.01455 seconds