Unverified Commit c2ca013f authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'uli42-pr/drop_ipaq' into 3.6.x

parents 1ebf7851 73868668
...@@ -153,7 +153,6 @@ Bool nxagentReportWindowIds = False; ...@@ -153,7 +153,6 @@ Bool nxagentReportWindowIds = False;
Bool nxagentReportPrivateWindowIds = False; Bool nxagentReportPrivateWindowIds = False;
Bool nxagentDoDirectColormaps = False; Bool nxagentDoDirectColormaps = False;
Window nxagentParentWindow = 0; Window nxagentParentWindow = 0;
Bool nxagentIpaq = False;
int nxagentLockDeferLevel = 0; int nxagentLockDeferLevel = 0;
...@@ -618,14 +617,6 @@ int ddxProcessArgument(int argc, char *argv[], int i) ...@@ -618,14 +617,6 @@ int ddxProcessArgument(int argc, char *argv[], int i)
nxagentChangeOption(AllScreens, True); nxagentChangeOption(AllScreens, True);
} }
else if (!strcmp(argv[i],"ipaq"))
{
nxagentChangeOption(Fullscreen, True);
nxagentChangeOption(AllScreens, True);
nxagentIpaq = True;
}
else else
{ {
if (nxagentUserGeometry.flag == 0) if (nxagentUserGeometry.flag == 0)
......
...@@ -82,7 +82,6 @@ extern Bool nxagentDoDirectColormaps; ...@@ -82,7 +82,6 @@ extern Bool nxagentDoDirectColormaps;
extern Window nxagentParentWindow; extern Window nxagentParentWindow;
extern int nxagentMaxAllowedReset; extern int nxagentMaxAllowedReset;
extern Bool nxagentResizeDesktopAtStartup; extern Bool nxagentResizeDesktopAtStartup;
extern Bool nxagentIpaq;
extern int nxagentLockDeferLevel; extern int nxagentLockDeferLevel;
......
...@@ -804,7 +804,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate) ...@@ -804,7 +804,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
ScreenPtr pScreen = NULL; ScreenPtr pScreen = NULL;
Bool minimize = False; Bool minimize = False;
Bool startKbd = False;
Bool closeSession = False; Bool closeSession = False;
Bool switchFullscreen = False; Bool switchFullscreen = False;
Bool switchAllScreens = False; Bool switchAllScreens = False;
...@@ -941,7 +940,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate) ...@@ -941,7 +940,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
viewportLastKeyPressResult = result; viewportLastKeyPressResult = result;
} }
if (result != doNothing && result != doStartKbd) if (result != doNothing)
{ {
pScreen = nxagentScreen(X.xkey.window); pScreen = nxagentScreen(X.xkey.window);
} }
...@@ -980,12 +979,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate) ...@@ -980,12 +979,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
break; break;
} }
case doStartKbd:
{
startKbd = TRUE;
break;
}
case doSwitchFullscreen: case doSwitchFullscreen:
{ {
switchFullscreen = TRUE; switchFullscreen = TRUE;
...@@ -1214,11 +1207,6 @@ FIXME: Don't enqueue the KeyRelease event if the key was ...@@ -1214,11 +1207,6 @@ FIXME: Don't enqueue the KeyRelease event if the key was
} }
} }
if (nxagentIpaq && nxagentClients <= 0)
{
closeSession = TRUE;
}
if (nxagentOption(DesktopResize) == False && if (nxagentOption(DesktopResize) == False &&
(X.xbutton.state & (ControlMask | Mod1Mask)) == (ControlMask | Mod1Mask)) (X.xbutton.state & (ControlMask | Mod1Mask)) == (ControlMask | Mod1Mask))
{ {
...@@ -2176,72 +2164,6 @@ FIXME: Don't enqueue the KeyRelease event if the key was ...@@ -2176,72 +2164,6 @@ FIXME: Don't enqueue the KeyRelease event if the key was
} }
} }
if (startKbd)
{
if (xkbdRunning)
{
#ifdef NXAGENT_XKBD_DEBUG
fprintf(stderr, "Events: nxkbd now is NOT running: %d, %d\n",
X.xkey.keycode, escapecode);
#endif
xkbdRunning = False;
kill(pidkbd, 9);
}
else
{
char kbddisplay[6];
char *kbdargs[6];
strcpy(kbddisplay,":");
/* FIXME: why limit to 4? */
strncat(kbddisplay, display, 4);
kbdargs[0] = "nxkbd";
kbdargs[1] = "-geometry";
kbdargs[2] = "240x70+0+250";
kbdargs[3] = "-display";
kbdargs[4] = kbddisplay;
kbdargs[5] = NULL;
switch (pidkbd = fork())
{
case 0:
{
execvp(kbdargs[0], kbdargs);
#ifdef NXAGENT_XKBD_DEBUG
fprintf(stderr, "Events: The execvp of nxkbd process failed.\n");
#endif
exit(1);
break;
}
case -1:
{
#ifdef NXAGENT_XKBD_DEBUG
fprintf(stderr, "Events: Can't fork to run the nxkbd process.\n");
#endif
break;
}
default:
{
break;
}
}
#ifdef NXAGENT_XKBD_DEBUG
fprintf(stderr, "Events: The nxkbd process now running with [%d][%d].\n",
X.xkey.keycode, escapecode);
#endif
xkbdRunning = True;
}
}
#ifdef BLOCKS #ifdef BLOCKS
fprintf(stderr, "[End read]\n"); fprintf(stderr, "[End read]\n");
#endif #endif
......
...@@ -39,7 +39,6 @@ enum HandleEventResult ...@@ -39,7 +39,6 @@ enum HandleEventResult
doMinimize, doMinimize,
doDebugTree, doDebugTree,
doCloseSession, doCloseSession,
doStartKbd,
doSwitchFullscreen, doSwitchFullscreen,
doSwitchAllScreens, doSwitchAllScreens,
doViewportMoveUp, doViewportMoveUp,
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#include <libxml/tree.h> #include <libxml/tree.h>
extern Bool nxagentWMIsRunning; extern Bool nxagentWMIsRunning;
extern Bool nxagentIpaq;
extern char *nxagentKeystrokeFile; extern char *nxagentKeystrokeFile;
#ifdef NX_DEBUG_INPUT #ifdef NX_DEBUG_INPUT
...@@ -507,13 +506,6 @@ Bool nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result) ...@@ -507,13 +506,6 @@ Bool nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
* here. * here.
*/ */
if (X -> keycode == 130 && nxagentIpaq)
{
*result = doStartKbd;
return True;
}
switch (stroke) { switch (stroke) {
#ifdef DEBUG_TREE #ifdef DEBUG_TREE
case KEYSTROKE_DEBUG_TREE: case KEYSTROKE_DEBUG_TREE:
......
...@@ -135,7 +135,6 @@ void nxagentFbRestoreArea(PixmapPtr pPixmap, WindowPtr pWin, int xSrc, int ySrc, ...@@ -135,7 +135,6 @@ void nxagentFbRestoreArea(PixmapPtr pPixmap, WindowPtr pWin, int xSrc, int ySrc,
#include "unistd.h" #include "unistd.h"
#endif #endif
extern Bool nxagentIpaq;
extern Pixmap nxagentIconPixmap; extern Pixmap nxagentIconPixmap;
extern Pixmap nxagentIconShape; extern Pixmap nxagentIconShape;
extern Bool useXpmIcon; extern Bool useXpmIcon;
...@@ -329,12 +328,6 @@ Bool nxagentIsParentOf(Display *d, XlibWindow possible_parent, XlibWindow candid ...@@ -329,12 +328,6 @@ Bool nxagentIsParentOf(Display *d, XlibWindow possible_parent, XlibWindow candid
void nxagentMinimizeFromFullScreen(ScreenPtr pScreen) void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
{ {
XUnmapWindow(nxagentDisplay, nxagentFullscreenWindow); XUnmapWindow(nxagentDisplay, nxagentFullscreenWindow);
if (nxagentIpaq)
{
XMapWindow(nxagentDisplay, nxagentIconWindow);
}
XIconifyWindow(nxagentDisplay, nxagentIconWindow, XIconifyWindow(nxagentDisplay, nxagentIconWindow,
DefaultScreen(nxagentDisplay)); DefaultScreen(nxagentDisplay));
} }
...@@ -349,14 +342,6 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen) ...@@ -349,14 +342,6 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
*/ */
void nxagentMaximizeToFullScreen(ScreenPtr pScreen) void nxagentMaximizeToFullScreen(ScreenPtr pScreen)
{ {
if (nxagentIpaq)
{
XUnmapWindow(nxagentDisplay, nxagentIconWindow);
XMapWindow(nxagentDisplay, nxagentFullscreenWindow);
}
else
{
/* /*
XUnmapWindow(nxagentDisplay, nxagentIconWindow); XUnmapWindow(nxagentDisplay, nxagentIconWindow);
*/ */
...@@ -428,7 +413,6 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after ...@@ -428,7 +413,6 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after
/* /*
XMapWindow(nxagentDisplay, nxagentIconWindow); XMapWindow(nxagentDisplay, nxagentIconWindow);
*/ */
}
} }
Window nxagentCreateIconWindow(void) Window nxagentCreateIconWindow(void)
...@@ -1922,17 +1906,6 @@ N/A ...@@ -1922,17 +1906,6 @@ N/A
{ {
nxagentFullscreenWindow = nxagentDefaultWindows[pScreen->myNum]; nxagentFullscreenWindow = nxagentDefaultWindows[pScreen->myNum];
} }
if (nxagentIpaq)
{
XWindowChanges ch;
unsigned int ch_mask;
ch.stack_mode = Below;
ch_mask = CWStackMode;
XConfigureWindow(nxagentDisplay, nxagentFullscreenWindow, ch_mask, &ch);
}
} }
if (nxagentOption(Fullscreen)) if (nxagentOption(Fullscreen))
......
...@@ -2662,12 +2662,6 @@ void nxagentMapDefaultWindows(void) ...@@ -2662,12 +2662,6 @@ void nxagentMapDefaultWindows(void)
#endif #endif
XMapWindow(nxagentDisplay, nxagentIconWindow); XMapWindow(nxagentDisplay, nxagentIconWindow);
if (nxagentIpaq != 0)
{
XIconifyWindow(nxagentDisplay, nxagentIconWindow,
DefaultScreen(nxagentDisplay));
}
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment