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++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » small bug on 2444 Uvs on Linux
small bug on 2444 Uvs on Linux [message #14430] Tue, 26 February 2008 14:40
mdelfede is currently offline  mdelfede
Messages: 1259
Registered: September 2007
Senior Contributor
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) {
		XUngrabPointer(Xdisplay, CurrentTime); // 2008-02-25 cxl/mdelfe... compiz fix... who has grabbed it anyway?...
		XClientMessageEvent m;
		m.type = ClientMessage;
		m.serial = 0;
===>>		m.send_event = True;  <==== SHOULD BE 'true', lower case 't'


ciao

Max
Previous Topic: [Fix] Build error (WinXP, Mingw)
Next Topic: Ultimate++ on Arch Linux?
Goto Forum:
  


Current Time: Sun Nov 17 10:53:16 CET 2019

Total time taken to generate the page: 0.01270 seconds