Skip to content

Commit c2ca013

Browse files
committed
Merge branch 'uli42-pr/drop_ipaq' into 3.6.x
Attributes GH PR #822: #822
2 parents 1ebf785 + 7386866 commit c2ca013

File tree

7 files changed

+6
-136
lines changed

7 files changed

+6
-136
lines changed

nx-X11/programs/Xserver/hw/nxagent/Args.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ Bool nxagentReportWindowIds = False;
153153
Bool nxagentReportPrivateWindowIds = False;
154154
Bool nxagentDoDirectColormaps = False;
155155
Window nxagentParentWindow = 0;
156-
Bool nxagentIpaq = False;
157156

158157
int nxagentLockDeferLevel = 0;
159158

@@ -618,14 +617,6 @@ int ddxProcessArgument(int argc, char *argv[], int i)
618617

619618
nxagentChangeOption(AllScreens, True);
620619
}
621-
else if (!strcmp(argv[i],"ipaq"))
622-
{
623-
nxagentChangeOption(Fullscreen, True);
624-
625-
nxagentChangeOption(AllScreens, True);
626-
627-
nxagentIpaq = True;
628-
}
629620
else
630621
{
631622
if (nxagentUserGeometry.flag == 0)

nx-X11/programs/Xserver/hw/nxagent/Args.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ extern Bool nxagentDoDirectColormaps;
8282
extern Window nxagentParentWindow;
8383
extern int nxagentMaxAllowedReset;
8484
extern Bool nxagentResizeDesktopAtStartup;
85-
extern Bool nxagentIpaq;
8685

8786
extern int nxagentLockDeferLevel;
8887

nx-X11/programs/Xserver/hw/nxagent/Events.c

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
804804
ScreenPtr pScreen = NULL;
805805

806806
Bool minimize = False;
807-
Bool startKbd = False;
808807
Bool closeSession = False;
809808
Bool switchFullscreen = False;
810809
Bool switchAllScreens = False;
@@ -941,7 +940,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
941940
viewportLastKeyPressResult = result;
942941
}
943942

944-
if (result != doNothing && result != doStartKbd)
943+
if (result != doNothing)
945944
{
946945
pScreen = nxagentScreen(X.xkey.window);
947946
}
@@ -980,12 +979,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
980979

981980
break;
982981
}
983-
case doStartKbd:
984-
{
985-
startKbd = TRUE;
986-
987-
break;
988-
}
989982
case doSwitchFullscreen:
990983
{
991984
switchFullscreen = TRUE;
@@ -1214,11 +1207,6 @@ FIXME: Don't enqueue the KeyRelease event if the key was
12141207
}
12151208
}
12161209

1217-
if (nxagentIpaq && nxagentClients <= 0)
1218-
{
1219-
closeSession = TRUE;
1220-
}
1221-
12221210
if (nxagentOption(DesktopResize) == False &&
12231211
(X.xbutton.state & (ControlMask | Mod1Mask)) == (ControlMask | Mod1Mask))
12241212
{
@@ -2176,72 +2164,6 @@ FIXME: Don't enqueue the KeyRelease event if the key was
21762164
}
21772165
}
21782166

2179-
if (startKbd)
2180-
{
2181-
if (xkbdRunning)
2182-
{
2183-
#ifdef NXAGENT_XKBD_DEBUG
2184-
fprintf(stderr, "Events: nxkbd now is NOT running: %d, %d\n",
2185-
X.xkey.keycode, escapecode);
2186-
#endif
2187-
2188-
xkbdRunning = False;
2189-
2190-
kill(pidkbd, 9);
2191-
}
2192-
else
2193-
{
2194-
char kbddisplay[6];
2195-
char *kbdargs[6];
2196-
2197-
strcpy(kbddisplay,":");
2198-
/* FIXME: why limit to 4? */
2199-
strncat(kbddisplay, display, 4);
2200-
2201-
kbdargs[0] = "nxkbd";
2202-
kbdargs[1] = "-geometry";
2203-
kbdargs[2] = "240x70+0+250";
2204-
kbdargs[3] = "-display";
2205-
kbdargs[4] = kbddisplay;
2206-
kbdargs[5] = NULL;
2207-
2208-
switch (pidkbd = fork())
2209-
{
2210-
case 0:
2211-
{
2212-
execvp(kbdargs[0], kbdargs);
2213-
2214-
#ifdef NXAGENT_XKBD_DEBUG
2215-
fprintf(stderr, "Events: The execvp of nxkbd process failed.\n");
2216-
#endif
2217-
2218-
exit(1);
2219-
2220-
break;
2221-
}
2222-
case -1:
2223-
{
2224-
#ifdef NXAGENT_XKBD_DEBUG
2225-
fprintf(stderr, "Events: Can't fork to run the nxkbd process.\n");
2226-
#endif
2227-
2228-
break;
2229-
}
2230-
default:
2231-
{
2232-
break;
2233-
}
2234-
}
2235-
2236-
#ifdef NXAGENT_XKBD_DEBUG
2237-
fprintf(stderr, "Events: The nxkbd process now running with [%d][%d].\n",
2238-
X.xkey.keycode, escapecode);
2239-
#endif
2240-
2241-
xkbdRunning = True;
2242-
}
2243-
}
2244-
22452167
#ifdef BLOCKS
22462168
fprintf(stderr, "[End read]\n");
22472169
#endif

nx-X11/programs/Xserver/hw/nxagent/Events.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ enum HandleEventResult
3939
doMinimize,
4040
doDebugTree,
4141
doCloseSession,
42-
doStartKbd,
4342
doSwitchFullscreen,
4443
doSwitchAllScreens,
4544
doViewportMoveUp,

nx-X11/programs/Xserver/hw/nxagent/Keystroke.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#include <libxml/tree.h>
4545

4646
extern Bool nxagentWMIsRunning;
47-
extern Bool nxagentIpaq;
4847
extern char *nxagentKeystrokeFile;
4948

5049
#ifdef NX_DEBUG_INPUT
@@ -507,13 +506,6 @@ Bool nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
507506
* here.
508507
*/
509508

510-
if (X -> keycode == 130 && nxagentIpaq)
511-
{
512-
*result = doStartKbd;
513-
514-
return True;
515-
}
516-
517509
switch (stroke) {
518510
#ifdef DEBUG_TREE
519511
case KEYSTROKE_DEBUG_TREE:

nx-X11/programs/Xserver/hw/nxagent/Screen.c

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ void nxagentFbRestoreArea(PixmapPtr pPixmap, WindowPtr pWin, int xSrc, int ySrc,
135135
#include "unistd.h"
136136
#endif
137137

138-
extern Bool nxagentIpaq;
139138
extern Pixmap nxagentIconPixmap;
140139
extern Pixmap nxagentIconShape;
141140
extern Bool useXpmIcon;
@@ -329,12 +328,6 @@ Bool nxagentIsParentOf(Display *d, XlibWindow possible_parent, XlibWindow candid
329328
void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
330329
{
331330
XUnmapWindow(nxagentDisplay, nxagentFullscreenWindow);
332-
333-
if (nxagentIpaq)
334-
{
335-
XMapWindow(nxagentDisplay, nxagentIconWindow);
336-
}
337-
338331
XIconifyWindow(nxagentDisplay, nxagentIconWindow,
339332
DefaultScreen(nxagentDisplay));
340333
}
@@ -349,16 +342,8 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
349342
*/
350343
void nxagentMaximizeToFullScreen(ScreenPtr pScreen)
351344
{
352-
if (nxagentIpaq)
353-
{
354-
XUnmapWindow(nxagentDisplay, nxagentIconWindow);
355-
356-
XMapWindow(nxagentDisplay, nxagentFullscreenWindow);
357-
}
358-
else
359-
{
360345
/*
361-
XUnmapWindow(nxagentDisplay, nxagentIconWindow);
346+
XUnmapWindow(nxagentDisplay, nxagentIconWindow);
362347
*/
363348

364349
Window root = RootWindow(nxagentDisplay, DefaultScreen(nxagentDisplay));
@@ -407,10 +392,10 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after
407392
#endif
408393
}
409394

410-
XMapRaised(nxagentDisplay, nxagentFullscreenWindow);
395+
XMapRaised(nxagentDisplay, nxagentFullscreenWindow);
411396

412-
XIconifyWindow(nxagentDisplay, nxagentIconWindow,
413-
DefaultScreen(nxagentDisplay));
397+
XIconifyWindow(nxagentDisplay, nxagentIconWindow,
398+
DefaultScreen(nxagentDisplay));
414399

415400
/* swallow all LeaveNotify events for the FullscreenWindow;
416401
Normally this does not swallow anything these days, but when
@@ -426,9 +411,8 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after
426411
}
427412

428413
/*
429-
XMapWindow(nxagentDisplay, nxagentIconWindow);
414+
XMapWindow(nxagentDisplay, nxagentIconWindow);
430415
*/
431-
}
432416
}
433417

434418
Window nxagentCreateIconWindow(void)
@@ -1922,17 +1906,6 @@ N/A
19221906
{
19231907
nxagentFullscreenWindow = nxagentDefaultWindows[pScreen->myNum];
19241908
}
1925-
1926-
if (nxagentIpaq)
1927-
{
1928-
XWindowChanges ch;
1929-
unsigned int ch_mask;
1930-
1931-
ch.stack_mode = Below;
1932-
ch_mask = CWStackMode;
1933-
1934-
XConfigureWindow(nxagentDisplay, nxagentFullscreenWindow, ch_mask, &ch);
1935-
}
19361909
}
19371910

19381911
if (nxagentOption(Fullscreen))

nx-X11/programs/Xserver/hw/nxagent/Window.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,12 +2662,6 @@ void nxagentMapDefaultWindows(void)
26622662
#endif
26632663

26642664
XMapWindow(nxagentDisplay, nxagentIconWindow);
2665-
2666-
if (nxagentIpaq != 0)
2667-
{
2668-
XIconifyWindow(nxagentDisplay, nxagentIconWindow,
2669-
DefaultScreen(nxagentDisplay));
2670-
}
26712665
}
26722666

26732667
/*

0 commit comments

Comments
 (0)