Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [SOLVED] Maybe a bug... ?
Re: [SOLVED] Maybe a bug... ? [message #14396 is a reply to message #14379] |
Mon, 25 February 2008 12:29   |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
It was due to a missing
XUngrabPointer( Xdisplay, CurrentTime );
in that function :
void SizeGrip::LeftDown(Point p, dword flags)
{
TopWindow *q = dynamic_cast<TopWindow *>(GetTopCtrl());
if(!q || q->IsMaximized() || !q->IsSizeable()) return;
#ifdef PLATFORM_WIN32
HWND hwnd = q->GetHWND();
p = GetMousePos() - q->GetRect().TopLeft();
if(hwnd) {
::SendMessage(hwnd, WM_SYSCOMMAND, 0xf008, MAKELONG(p.x, p.y));
::SendMessage(hwnd, WM_LBUTTONUP, 0, MAKELONG(p.x, p.y));
}
#endif
#ifdef PLATFORM_X11
if(_NET_Supported().Find(XAtom("_NET_WM_MOVERESIZE")) >= 0) {
===>HERE XUngrabPointer( Xdisplay, CurrentTime );
XClientMessageEvent m;
Adding it solves not only the 'blue box' but also the grip resizing .
Ciao
Max
|
|
|
Goto Forum:
Current Time: Mon Jul 07 09:10:43 CEST 2025
Total time taken to generate the page: 0.03183 seconds
|