all repos — fluxbox @ 44f7069e1c80a61fb3ace2f6e155ec0e67c21a47

custom fork of the fluxbox windowmanager

some EMX fixes, thanks dave_yeo at paralynx
fluxgen fluxgen
commit

44f7069e1c80a61fb3ace2f6e155ec0e67c21a47

parent

66feb6dd892b7eab588d2d01b18e4309b1796f9d

2 files changed, 18 insertions(+), 9 deletions(-)

jump to
M src/FbCommands.ccsrc/FbCommands.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.24 2004/04/22 21:12:32 fluxgen Exp $ +// $Id: FbCommands.cc,v 1.25 2004/07/19 13:52:15 fluxgen Exp $ #include "FbCommands.hh" #include "fluxbox.hh"

@@ -37,6 +37,15 @@ #include <unistd.h>

#include <fstream> #include <iostream> + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif // HAVE_CONFIG_H + +#if defined(__EMX__) && defined(HAVE_PROCESS_H) +#include <process.h> // for P_NOWAIT +#endif // __EMX__ + using namespace std; namespace FbCommands {

@@ -46,7 +55,7 @@

} void ExecuteCmd::execute() { -#ifndef __EMX__ +#ifndef __EMX__ if (! fork()) { std::string displaystring("DISPLAY="); displaystring += DisplayString(FbTk::App::instance()->display());

@@ -70,7 +79,7 @@ execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0);

exit(0); } #else // __EMX__ - spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec().c_str(), 0); + spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), 0); #endif // !__EMX__ }

@@ -125,9 +134,9 @@ int rx, ry;

int wx, wy; unsigned int mask; - if ( XQueryPointer(FbTk::App::instance()->display(), - screen->rootWindow().window(), &root_ret, &window_ret, - &rx, &ry, &wx, &wy, &mask) ) { + if (XQueryPointer(FbTk::App::instance()->display(), + screen->rootWindow().window(), &root_ret, &window_ret, + &rx, &ry, &wx, &wy, &mask) ) { if ( rx - (screen->getRootmenu().width()/2) > 0 ) rx-= screen->getRootmenu().width()/2;
M src/FbTk/I18n.hhsrc/FbTk/I18n.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: I18n.hh,v 1.1 2004/06/07 11:46:05 rathnor Exp $ +// $Id: I18n.hh,v 1.2 2004/07/19 13:53:46 fluxgen Exp $ #ifndef I18N_HH #define I18N_HH

@@ -44,7 +44,7 @@ // this is needed for linux libc5 systems

extern "C" { #include <nl_types.h> } -#elif defined(__CYGWIN__) +#elif defined(__CYGWIN__) || defined(__EMX__) #ifdef __cplusplus extern "C" { #endif // __cplusplus

@@ -68,7 +68,7 @@

// ignore the description, it's for helping translators #define _FBTEXT(msgset, msgid, default_text, description) \ i18n.getMessage(FBNLS::msgset ## Set, FBNLS::msgset ## msgid, default_text) - + // This ensure that FbTk nls stuff is in a kind of namespace of its own #define _FBTKTEXT( msgset, msgid, default_text, description) \ i18n.getMessage(FBNLS::FbTk ## msgset ## Set, FBNLS::FbTk ## msgset ## msgid, default_text)