diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-09 23:39:22 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-09 23:39:22 +0000 |
commit | 1296bd805b7dcab36aee74cc4213e1397a26bae4 (patch) | |
tree | 8d1222fe06b8e645de1a752a4d8bf8afd2fee756 /sysutils/lineakd/files/patch-lineakd__main.cpp | |
parent | - Update to 3.01 (diff) |
- Update to 0.8.3
PR: ports/79487
Submitted by: Kay Lehmann <kay_lehmann@web.de> (maintainer)
Notes
Notes:
svn path=/head/; revision=132846
Diffstat (limited to 'sysutils/lineakd/files/patch-lineakd__main.cpp')
-rw-r--r-- | sysutils/lineakd/files/patch-lineakd__main.cpp | 97 |
1 files changed, 81 insertions, 16 deletions
diff --git a/sysutils/lineakd/files/patch-lineakd__main.cpp b/sysutils/lineakd/files/patch-lineakd__main.cpp index 246f0bccbf8b..b90c9bb74524 100644 --- a/sysutils/lineakd/files/patch-lineakd__main.cpp +++ b/sysutils/lineakd/files/patch-lineakd__main.cpp @@ -1,6 +1,32 @@ ---- lineakd/main.cpp.orig Wed Dec 29 11:55:13 2004 -+++ lineakd/main.cpp Wed Dec 29 11:55:15 2004 -@@ -288,7 +288,7 @@ +--- lineakd/main.cpp.orig Mon Feb 21 20:26:38 2005 ++++ lineakd/main.cpp Sat Apr 2 18:20:50 2005 +@@ -134,19 +134,19 @@ + /** Load the plugins */ + plugins->loadPlugins(pluginlist); + if (verbose) { +- msg(""); +- msg("Listing Plugins"); ++ lineak_core_functions::msg(""); ++ lineak_core_functions::msg("Listing Plugins"); + plugins->listPlugins(); + } + +- msg(""); +- msg("Defining Macro Lists"); ++ lineak_core_functions::msg(""); ++ lineak_core_functions::msg("Defining Macro Lists"); + /** Define the list of macros we support */ + plugins->defineMacroLists(); + //if (verbose) plugins->listPlugins(); + /** Define the configurate directives we support */ +- msg(""); +- msg("Defining Directives Lists"); ++ lineak_core_functions::msg(""); ++ lineak_core_functions::msg("Defining Directives Lists"); + plugins->defineDirectivesLists(); + //if (verbose) plugins->listPlugins(); + /** Get a list of macros we support so that we can inform other classes */ +@@ -307,7 +307,7 @@ watch_messages(); /* init X/Xkb with our EAK keycodes/keysyms */ @@ -9,16 +35,64 @@ if (!X->initialize(myKbd)) { cerr << "Could not initialize all keys. Retrying.\n"; -@@ -345,7 +345,7 @@ +@@ -329,7 +329,7 @@ + myDisplay = new displayCtrl(myConfig); + myDisplay->init(); + } +- msg("Initializing Plugin Display"); ++ lineak_core_functions::msg("Initializing Plugin Display"); + plugins->initializePluginsDisplay(*myDisplay); + + /* alright, we're going to loop forever now. only signals can interrupt us. */ +@@ -362,23 +362,23 @@ + // like VMWare. + if (xev.type == MappingNotify) { + // if (!X->xkbRemapped()) { +- msg("Setting xkbRemapped flag"); ++ lineak_core_functions::msg("Setting xkbRemapped flag"); + X->xkbRemapped(true); // =1; +- msg("Cleaning up key mappings from MappingNotify event"); ++ lineak_core_functions::msg("Cleaning up key mappings from MappingNotify event"); + X->cleanup(myKbd); +- msg("Cleaning up the on screen display."); ++ lineak_core_functions::msg("Cleaning up the on screen display."); + myDisplay->cleanup(); + // } + // If we are getting the display back. + // Get out modifiers and grab our keys again. + // Reinitialize the OSD. + // else { +- msg("Clearing xkbRemapped flag"); ++ lineak_core_functions::msg("Clearing xkbRemapped flag"); + X->xkbRemapped(false); + //X->getModifiers(); +- msg("Reclaiming keyboard map from MappingNotify event"); ++ lineak_core_functions::msg("Reclaiming keyboard map from MappingNotify event"); + X->initialize(myKbd); +- msg("Restarting the OSD."); ++ lineak_core_functions::msg("Restarting the OSD."); + myDisplay = plugins->getDisplay(myConfig); + if (myDisplay != NULL) { + if (very_verbose) cout << "Reiniting plugin provided On Screen Display" << endl; +@@ -390,7 +390,7 @@ + myDisplay->init(); + } + // Initialize the plugin displays again. +- msg("Initializing Plugin Display"); ++ lineak_core_functions::msg("Initializing Plugin Display"); + plugins->initializePluginsDisplay(*myDisplay); + // set exec.setDisplayCtrl(myDisplay) again. + exec.setDisplayCtrl(myDisplay); +@@ -414,7 +414,7 @@ } if (obj != NULL) { - msg("Got an object!"); + lineak_core_functions::msg("Got an object!"); if (obj->getType() == SYM && obj->getEventType() == PRESS) { - if (xev.xkey.keycode == XKeysymToKeycode (display, obj->getKeySym()) - && obj->hasModifier(xev.xkey.state)) -@@ -366,21 +366,21 @@ + cout << "xev.xkey.keycode = " << xev.xkey.keycode << endl; + cout << "obj->getKeyCode() = " << obj->getKeyCode() << endl; +@@ -435,21 +435,21 @@ } } else { @@ -44,12 +118,3 @@ execute = plugins->exec(obj,xev); if (execute != NULL) execute(obj,xev); -@@ -515,7 +515,7 @@ - if (!X->xkbRemapped()) - X->xkbRemapped(true); // =1; - else { -- msg("Reclaiming keyboard map from MappingNotify event"); -+ lineak_core_functions::msg("Reclaiming keyboard map from MappingNotify event"); - X->xkbRemapped(false); - //X->getModifiers(); - X->initialize(myKbd); |