From 11749eb17d545fd7737b69581e24d58964bd60cd Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 7 Mar 2013 01:24:55 -0500 Subject: [PATCH] ecere/XInterface: Turned things off for FreeBSD for things to work with twm - Wish we had a proper solution for these! --- ecere/src/gui/drivers/XInterface.ec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ecere/src/gui/drivers/XInterface.ec b/ecere/src/gui/drivers/XInterface.ec index a80b09d..b8516c8 100644 --- a/ecere/src/gui/drivers/XInterface.ec +++ b/ecere/src/gui/drivers/XInterface.ec @@ -2133,7 +2133,7 @@ class XInterface : Interface parentWindow ? atoms[_net_wm_window_type_menu] : atoms[_net_wm_window_type_normal], parentWindow ? atoms[_net_wm_window_type_popup_menu] : 0 }; -#if defined(__APPLE__) +#if defined(__APPLE__) || defined(__FreeBSD__) // Don't set this on non-interim windows for OS X... if(parentWindow && window.interim) #endif @@ -2313,7 +2313,7 @@ class XInterface : Interface //Logf("Position root window %s\n", window.name); if(window.windowHandle && (!window.parent || !window.parent.display)) { -#if defined(__APPLE__) +#if defined(__APPLE__) || defined(__FreeBSD__) bool visible = window.visible; if(window.visible) { @@ -2326,7 +2326,7 @@ class XInterface : Interface if(window.nativeDecorations) { XWindowData windowData = window.windowData; -#if !defined(__APPLE__) +#if !defined(__APPLE__) && !defined(__FreeBSD__) // TODO: How to handle frame extents not supported? if(!windowData.gotFrameExtents || window.state == maximized) return; #endif @@ -2392,7 +2392,7 @@ class XInterface : Interface if(visible) { XMapWindow(xGlobalDisplay, (X11Window)window.windowHandle); -#if defined(__APPLE__) +#if defined(__APPLE__) || defined(__FreeBSD__) WaitForViewableWindow(window); #endif if(window.creationActivation == activate && state != minimized) -- 1.8.3.1