diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2004-11-08 00:34:12 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2004-11-08 00:34:12 +0000 |
commit | 14a1da27f45c47f56c03f100467c4145b22cc27f (patch) | |
tree | 1672be7254edbd4e14c07966ad43adbe5529db3b /x11/kdebase4-workspace/files | |
parent | 1bee8f44c60705f102471d2277b0c99dd759ea47 (diff) | |
download | ports-14a1da27f45c47f56c03f100467c4145b22cc27f.tar.gz ports-14a1da27f45c47f56c03f100467c4145b22cc27f.zip |
Notes
Diffstat (limited to 'x11/kdebase4-workspace/files')
-rw-r--r-- | x11/kdebase4-workspace/files/patch-kdm-backend-dm.c | 40 | ||||
-rw-r--r-- | x11/kdebase4-workspace/files/patch-kdm-kfrontend-genkdmconf.c | 12 | ||||
-rw-r--r-- | x11/kdebase4-workspace/files/patch-kxkb_rules.cpp | 33 |
3 files changed, 32 insertions, 53 deletions
diff --git a/x11/kdebase4-workspace/files/patch-kdm-backend-dm.c b/x11/kdebase4-workspace/files/patch-kdm-backend-dm.c deleted file mode 100644 index f92c07bdf95a..000000000000 --- a/x11/kdebase4-workspace/files/patch-kdm-backend-dm.c +++ /dev/null @@ -1,40 +0,0 @@ -Index: dm.c -=================================================================== -RCS file: /home/kde/kdebase/kdm/backend/dm.c,v -retrieving revision 1.90.2.3 -diff -u -3 -p -r1.90.2.3 dm.c ---- kdm/backend/dm.c 13 Aug 2004 19:21:11 -0000 1.90.2.3 -+++ kdm/backend/dm.c 23 Aug 2004 16:32:29 -0000 -@@ -1033,7 +1033,7 @@ static void - MainLoop (void) - { - struct display *d; -- struct timeval tv; -+ struct timeval *tvp, tv; - time_t to; - int nready; - char buf; -@@ -1055,12 +1055,17 @@ MainLoop (void) - to = serverTimeout; - if (utmpTimeout < to) - to = utmpTimeout; -- to -= now; -- if (to < 0) -- to = 0; -- tv.tv_sec = to; -- tv.tv_usec = 0; -- nready = select (WellKnownSocketsMax + 1, &reads, 0, 0, &tv); -+ if (to == TO_INF) -+ tvp = 0; -+ else { -+ to -= now; -+ if (to < 0) -+ to = 0; -+ tv.tv_sec = to; -+ tv.tv_usec = 0; -+ tvp = &tv; -+ } -+ nready = select (WellKnownSocketsMax + 1, &reads, 0, 0, tvp); - Debug ("select returns %d\n", nready); - time (&now); - #if !defined(ARC4_RANDOM) && !defined(DEV_RANDOM) diff --git a/x11/kdebase4-workspace/files/patch-kdm-kfrontend-genkdmconf.c b/x11/kdebase4-workspace/files/patch-kdm-kfrontend-genkdmconf.c index 7cdc766f794f..e3027efaa8d5 100644 --- a/x11/kdebase4-workspace/files/patch-kdm-kfrontend-genkdmconf.c +++ b/x11/kdebase4-workspace/files/patch-kdm-kfrontend-genkdmconf.c @@ -20,12 +20,14 @@ "\n" #ifdef _AIX "if [ -f /usr/lib/X11/xdm/sessreg ]; then\n" -@@ -668,7 +668,7 @@ +@@ -667,9 +667,7 @@ static const char def_session[] = + " */csh|*/tcsh)\n" " # [t]cshrc is always sourced automatically.\n" " # Note that sourcing csh.login after .cshrc is non-standard.\n" - " set -a\n" --" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|_)=\"'`\n" -+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; /usr/bin/env | egrep -v \"^(TERM|SHLVL)=\"'`\n" - " set +a\n" +-" set -a\n" +-" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n" +-" set +a\n" ++" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c export'`\n" " ;;\n" " *) # Plain sh, ksh, and anything we don't know.\n" + " [ -f /etc/profile ] && . /etc/profile\n" diff --git a/x11/kdebase4-workspace/files/patch-kxkb_rules.cpp b/x11/kdebase4-workspace/files/patch-kxkb_rules.cpp index d210eaf73139..00122a2b9898 100644 --- a/x11/kdebase4-workspace/files/patch-kxkb_rules.cpp +++ b/x11/kdebase4-workspace/files/patch-kxkb_rules.cpp @@ -1,11 +1,28 @@ --- kxkb/rules.cpp 2004/06/28 14:19:03 1.38 -+++ kxkb/rules.cpp 2004/08/29 19:05:04 1.39 -@@ -17,7 +17,7 @@ - #include "rules.h" ++++ kxkb/rules.cpp 2004/10/10 22:59:59 1.38.2.1 +@@ -1,3 +1,4 @@ ++#include <qwindowdefs.h> + #include <qfile.h> + #include <qtextstream.h> + #include <qregexp.h> +@@ -42,11 +43,19 @@ KeyRules::KeyRules(): + } - const char* X11DirList[2] = {"/usr/X11R6/lib/X11/", "/usr/local/X11R6/lib/X11/"}; --const char* rulesFileList[2] = {"xkb/rules/xfree86", "xkb/rules/xorg"}; -+const char* rulesFileList[2] = {"xkb/rules/xorg", "xkb/rules/xfree86"}; + QString rulesFile; +- for(int ii=0; ii<2; ii++) ++ Display *dpy = qt_xdisplay(); ++ XkbRF_VarDefsRec vd; ++ char *tmp= NULL; ++ if (XkbRF_GetNamesProp(dpy,&tmp,&vd) && tmp) ++ rulesFile = X11_DIR + QString("xkb/rules/%1").arg(tmp); ++ else { ++ // old way ++ for(int ii=0; ii<2; ii++) + if( QFile(X11_DIR + QString(rulesFileList[ii])).exists() ) { + rulesFile = X11_DIR + rulesFileList[ii]; + break; + } ++ } - KeyRules::KeyRules(): - m_layouts(90) + if( rulesFile.isEmpty() ) { + kdDebug() << "Cannot find rules file in " << X11_DIR << endl; |