Home » Developing U++ » Bugs (& fixes) » problems with splitter and layouts
Re: problems with splitter and layouts [message #17185 is a reply to message #17184] |
Fri, 01 August 2008 16:54 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
Well.. a solution is found, but I don't know why behaviour changed. In X11Wnd.cpp, from line 963 :
// Synchronizes the native windows inside ctrls
void Ctrl::SyncNativeWindows(void)
{
ArrayMap<Window, Ctrl::XWindow>& xwindows = Xwindow();
for(int i = 0; i < xwindows.GetCount(); i++)
{
XWindow &xw = xwindows[i];
Window w = xwindows.GetKey(i);
if(xw.ctrl && xw.ctrl->parent && w)
{
Window dummy;
int x, y;
unsigned int width, height, border, depth;
XGetGeometry(Xdisplay, w, &dummy, &x, &y, &width, &height, &border, &depth);
Rect r = xw.ctrl->GetRectInParentWindow();
if( (x != r.left || y != r.top) && ((int)width == r.Width() && (int)height == r.Height()))
XMoveWindow(Xdisplay, w, r.left, r.top);
else if( (x == r.left || y == r.top) && ((int)width != r.Width() || (int)height != r.Height()))
===> HERE XMoveResizeWindow(Xdisplay, w, r.left, r.top, r.Width(), r.Height());
// XResizeWindow(Xdisplay, w, r.Width(), r.Height());
else if( x != r.left || y != r.top || (int)width != r.Width() || (int)height != r.Height())
XMoveResizeWindow(Xdisplay, w, r.left, r.top, r.Width(), r.Height());
}
}
} // END Ctrl::SyncNativeWindows()
I had to replace the XResizeWindow() with XMoveResizeWindow() (the one commented out). That's weird, but no time now to investigate more
Ciao
Max
[Updated on: Fri, 01 August 2008 16:55] Report message to a moderator
|
|
|
|
|
problems with splitter and layouts
By: cocob on Tue, 17 June 2008 14:57
|
|
|
Re: problems with splitter and layouts
By: mrjt on Tue, 17 June 2008 17:03
|
|
|
Re: problems with splitter and layouts
By: cocob on Tue, 17 June 2008 17:11
|
|
|
Re: problems with splitter and layouts
By: mrjt on Tue, 17 June 2008 17:17
|
|
|
Re: problems with splitter and layouts
By: unodgs on Tue, 17 June 2008 17:27
|
|
|
Re: problems with splitter and layouts
By: mirek on Tue, 17 June 2008 20:03
|
|
|
Re: problems with splitter and layouts
By: tojocky on Wed, 18 June 2008 12:29
|
|
|
Re: problems with splitter and layouts
By: cocob on Tue, 17 June 2008 17:22
|
|
|
Re: problems with splitter and layouts
By: cocob on Mon, 21 July 2008 19:48
|
|
|
Re: problems with splitter and layouts
By: mrjt on Tue, 22 July 2008 11:57
|
|
|
Re: problems with splitter and layouts
By: cocob on Wed, 23 July 2008 20:05
|
|
|
Re: problems with splitter and layouts
By: kodos on Thu, 24 July 2008 16:25
|
|
|
Re: problems with splitter and layouts
By: cocob on Thu, 24 July 2008 19:48
|
|
|
Re: problems with splitter and layouts
By: kodos on Thu, 24 July 2008 20:30
|
|
|
Re: problems with splitter and layouts
By: cocob on Thu, 24 July 2008 21:40
|
|
|
Re: problems with splitter and layouts
By: cocob on Tue, 29 July 2008 16:18
|
|
|
Re: problems with splitter and layouts
By: cocob on Tue, 29 July 2008 16:37
|
|
|
Re: problems with splitter and layouts
By: mirek on Fri, 01 August 2008 09:07
|
|
|
Re: problems with splitter and layouts
By: mdelfede on Fri, 01 August 2008 16:38
|
|
|
Re: problems with splitter and layouts
By: mdelfede on Fri, 01 August 2008 16:54
|
|
|
Re: problems with splitter and layouts
By: mdelfede on Fri, 01 August 2008 20:54
|
|
|
Re: problems with splitter and layouts
By: mirek on Fri, 01 August 2008 21:36
|
|
|
Re: problems with splitter and layouts
By: mdelfede on Sat, 02 August 2008 16:55
|
|
|
Re: problems with splitter and layouts
By: mirek on Sun, 03 August 2008 10:56
|
|
|
Re: problems with splitter and layouts
By: cocob on Sat, 02 August 2008 11:43
|
Goto Forum:
Current Time: Sun Apr 28 09:12:07 CEST 2024
Total time taken to generate the page: 0.04353 seconds
|