diff --git a/AGENTS.md b/AGENTS.md index a85e03e7..379f839f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -158,6 +158,25 @@ place of CDE; pkgsrc builds it on any platform from `pkgsrc/`. - dtfile: the folder ~/Network is the network -- going there (the place, `dtfile -dir ~/Network`, Back) shows NetView (`IsNetworkDir` in Navigation.c); shares are mounted below it. +- Zones of the screen and full screen (`programs/dtwm/WmMcdeSnap.c`): every + monitor below the bar is 3 columns x 2 rows; dragging a window to the top + or bottom edge shows the zone of that column, the middle of the left or + right edge a half, the outer parts the corner zones; sliding along the + edges joins zones; release takes the zone, a later drop elsewhere gives the + size before back. The target outline is XOR while dtwm holds the server + (freezeOnConfig) and four thin windows otherwise -- never FlashOutline. + f.mcde_snap NAME (left-half, right-half, top, bottom, the six zones, + left/middle/right columns, restore) and f.mcde_fullscreen; window menu + "Full Screen", keys Alt+Ctrl+F, Alt+Ctrl+arrows, Alt+Ctrl+BackSpace (all + locales and the built-in fallbacks). GetConfigEvent polled XQueryPointer + without end when the server was not grabbed, even for opaque moves (177 + CPU ticks in 3 s with a window held still): it polls only to flash an + outline now (0 ticks). Tested on Xvfb with XTest drags; such a test needs + -xrm "Dtwm*freezeOnConfig: False", since XTest waits while the server is + grabbed. +- Focus: Dtwm*keyboardFocusPolicy: pointer and Dtwm*focusAutoRaise: False + in sys.resources (MCDE's default, Konrad); the Style Manager's Window + settings change them as in CDE. - `programs/dtwm/WmMcdePanel.c` -- the programs left of the trash in the front panel. A program a control of the main row or of a drawer names is in the dock and not shown again. Kept programs diff --git a/programs/dtsession/sys.resources.src b/programs/dtsession/sys.resources.src index 85346dd4..ee66696c 100644 --- a/programs/dtsession/sys.resources.src +++ b/programs/dtsession/sys.resources.src @@ -85,6 +85,12 @@ dtsession*lockTimeout: 30 dtsession*cycleTimeout: 3 dtsession*saverList: StartDtscreenBlank +!# MCDE: the focus follows the pointer and the window is not raised -- the +!# defaults of the Style Manager's Window settings ("Point In Window To Make +!# Active", "Raise Window When Made Active"), which change them as before +Dtwm*keyboardFocusPolicy: pointer +Dtwm*focusAutoRaise: False + !################################################################# !# !# display dependent resources diff --git a/programs/dtwm/Makefile.am b/programs/dtwm/Makefile.am index e4ca4533..80249d5d 100644 --- a/programs/dtwm/Makefile.am +++ b/programs/dtwm/Makefile.am @@ -34,7 +34,7 @@ dtwm_SOURCES = WmCDInfo.c WmCDecor.c WmCEvent.c \ Clock.c DataBaseLoad.c PanelS.c \ Parse.c PopupMenu.c Session.c \ UI.c WmBackdrop.c WmFP.c \ - WmSlideshow.c WmMcdePanel.c \ + WmSlideshow.c WmMcdePanel.c WmMcdeSnap.c \ WmHelp.c WmIPC.c WmInstantTitle.c \ WmOL.c WmParse.c WmParseP.c \ WmPresence.c WmWrkspace.c WmXSMP.c diff --git a/programs/dtwm/WmEwmh.c b/programs/dtwm/WmEwmh.c index 79dc65bf..5bcc336c 100644 --- a/programs/dtwm/WmEwmh.c +++ b/programs/dtwm/WmEwmh.c @@ -32,6 +32,7 @@ #include "WmProperty.h" #include "WmWinState.h" #include "WmWrkspace.h" +#include "WmMcdeSnap.h" static void ProcessNetWmStateAbove (ClientData *pCD, long action); static void ProcessNetWmStateBelow (ClientData *pCD, long action); @@ -91,6 +92,12 @@ static void ProcessNetWmStateFullscreen (ClientData *pCD, long action) } } +/* MCDE: f.mcde_fullscreen (WmMcdeSnap.c) */ +void McdeToggleFullscreen (ClientData *pCD) +{ + ProcessNetWmStateFullscreen (pCD, _NET_WM_STATE_TOGGLE); +} + static void ProcessNetWmStateAbove (ClientData *pCD, long action) { /* MCDE: the flag of "Always on Top" (McdeSetAbove, WmFunction.c) */ diff --git a/programs/dtwm/WmGlobal.h b/programs/dtwm/WmGlobal.h index 2aa814ce..3e7c3eca 100644 --- a/programs/dtwm/WmGlobal.h +++ b/programs/dtwm/WmGlobal.h @@ -1599,6 +1599,8 @@ typedef struct _ClientData int primaryStackPosition; /* stack pos'n of primary */ Boolean secondariesOnTop; /* resource */ Boolean mcdeAbove; /* MCDE: Always on Top */ + Boolean mcdeSnapped; /* MCDE: in a zone (WmMcdeSnap.c) */ + int mcdeSnapWidth, mcdeSnapHeight; /* its client size before */ int primaryModalCount; /* primary modal win count */ int fullModalCount; /* full modal win count */ diff --git a/programs/dtwm/WmMcdeSnap.c b/programs/dtwm/WmMcdeSnap.c new file mode 100644 index 00000000..869bc0a8 --- /dev/null +++ b/programs/dtwm/WmMcdeSnap.c @@ -0,0 +1,312 @@ +/* + * WmMcdeSnap.c -- MCDE: windows snap to zones of the screen; full screen + * + * Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE. + * + * Every monitor (Xinerama head, else the screen) below the top bar is a grid + * of three columns and two rows (Konrad, 2026-11-11: "3 zonen oben und 3 + * zonen untere haelfte ... welche auch kombiniert werden koennen"). While a + * window is dragged (HandleClientFrameMove, WmWinConf.c): + * + * top edge the upper zone of the column under the pointer + * bottom edge the lower zone of that column + * left/right edge the middle third: that half of the monitor; + * above or below it: the upper or lower outer zone + * + * Sliding along the edges from one zone to the next joins them (top left, + * then top middle: two thirds of the upper row; top left, then down the left + * edge: the left column). The target is drawn as dtwm's XOR outline (no + * transparency, nothing for the graphics card to blend); on release the + * window takes it and its size before is kept, so that dragging it off again + * gives it back. f.mcde_snap NAME does the same from the keyboard, and + * f.mcde_fullscreen toggles _NET_WM_STATE_FULLSCREEN (WmEwmh.c). + */ + +#include "WmGlobal.h" +#include "WmCDInfo.h" +#include "WmEvent.h" +#include "WmFunction.h" +#include "WmMultiHead.h" +#include "WmWinConf.h" +#include "WmWinState.h" +#include "WmMcdeSnap.h" + +#include +#include + +#define EDGE 2 /* pixels from a monitor's edge that count as at it */ + +/* the zone grid in columns 0..2 and rows 0..1, or a half */ +typedef struct { + int c0, c1, r0, r1; /* inclusive; c0 < 0: nothing */ + int half; /* -1 left half, 1 right half, 0 a grid span */ +} Zone; + +static Zone anchor = { -1, -1, -1, -1, 0 }; +static Zone current = { -1, -1, -1, -1, 0 }; +static Boolean shown; +static int shownX, shownY; +static unsigned int shownW, shownH; + +/* the monitor around (px, py), below the top bar */ +static void +Monitor(ClientData *pcd, int px, int py, int *x, int *y, int *w, int *h) +{ + WmHeadInfo_t *hi; + int id; + + *x = 0; + *y = 0; + *w = DisplayWidth(DISPLAY, SCREEN_FOR_CLIENT(pcd)); + *h = DisplayHeight(DISPLAY, SCREEN_FOR_CLIENT(pcd)); + for (id = 0; (hi = GetHeadInfoById(id)) != NULL; id++) { + if (px >= hi->x_org && py >= hi->y_org && + px < hi->x_org + (int) hi->width && + py < hi->y_org + (int) hi->height) { + *x = hi->x_org; + *y = hi->y_org; + *w = (int) hi->width; + *h = (int) hi->height; + free(hi); + break; + } + free(hi); + } + McdeExcludeBar(SCREEN_FOR_CLIENT(pcd), x, y, w, h); +} + +/* the zone the pointer is at, from the monitor's edges */ +static Boolean +ZoneAt(int px, int py, int mx, int my, int mw, int mh, Zone *z) +{ + int col = (px - mx) * 3 / mw, row = (py - my) * 2 / mh; + + if (col < 0) + col = 0; + if (col > 2) + col = 2; + if (row < 0) + row = 0; + if (row > 1) + row = 1; + z->half = 0; + /* the top edge is the bar's lower border or the screen's */ + if (py <= my + EDGE) { + z->c0 = z->c1 = col; + z->r0 = z->r1 = 0; + return True; + } + if (py >= my + mh - 1 - EDGE) { + z->c0 = z->c1 = col; + z->r0 = z->r1 = 1; + return True; + } + if (px <= mx + EDGE || px >= mx + mw - 1 - EDGE) { + int side = px <= mx + EDGE ? 0 : 2; + + if (py > my + mh / 3 && py < my + 2 * mh / 3) { + z->half = side == 0 ? -1 : 1; + z->c0 = z->c1 = side; + z->r0 = 0; + z->r1 = 1; + } else { + z->c0 = z->c1 = side; + z->r0 = z->r1 = row; + } + return True; + } + return False; +} + +/* the frame rectangle of a zone */ +static void +ZoneRect(const Zone *z, int mx, int my, int mw, int mh, + int *x, int *y, unsigned int *w, unsigned int *h) +{ + int x0, x1, y0, y1; + + if (z->half != 0) { + x0 = z->half < 0 ? mx : mx + mw / 2; + x1 = z->half < 0 ? mx + mw / 2 : mx + mw; + y0 = my; + y1 = my + mh; + } else { + x0 = mx + z->c0 * mw / 3; + x1 = mx + (z->c1 + 1) * mw / 3; + y0 = my + z->r0 * mh / 2; + y1 = my + (z->r1 + 1) * mh / 2; + } + *x = x0; + *y = y0; + *w = (unsigned int) (x1 - x0); + *h = (unsigned int) (y1 - y0); +} + +/* the target's outline: XOR while dtwm holds the server (freezeOnConfig, + * CDE's default), else four thin windows -- never FlashOutline, which + * redraws in a loop while the pointer rests at the edge */ +static void +Outline(int x, int y, unsigned int w, unsigned int h) +{ + if (wmGD.freezeOnConfig) + MoveOutline(x, y, w, h); + else + WindowOutline(x, y, w, h); +} + +static void +HideTarget(void) +{ + if (shown) + Outline(0, 0, 0, 0); + shown = False; +} + +/* is a zone shown (the window's own outline is not drawn then) */ +Boolean +McdeSnapActive(void) +{ + return shown; +} + +/* the pointer moved while PCD is dragged: show the zone it would take */ +void +McdeSnapMotion(ClientData *pcd, int px, int py) +{ + int mx, my, mw, mh, x, y; + unsigned int w, h; + Zone z; + + Monitor(pcd, px, py, &mx, &my, &mw, &mh); + if (!ZoneAt(px, py, mx, my, mw, mh, &z)) { + anchor.c0 = current.c0 = -1; + HideTarget(); + return; + } + if (z.half != 0 || anchor.c0 < 0 || anchor.half != 0) { + anchor = z; + current = z; + } else { + /* along the edges: the zones from the first to this one */ + current.half = 0; + current.c0 = anchor.c0 < z.c0 ? anchor.c0 : z.c0; + current.c1 = anchor.c1 > z.c1 ? anchor.c1 : z.c1; + current.r0 = anchor.r0 < z.r0 ? anchor.r0 : z.r0; + current.r1 = anchor.r1 > z.r1 ? anchor.r1 : z.r1; + } + ZoneRect(¤t, mx, my, mw, mh, &x, &y, &w, &h); + if (!shown || x != shownX || y != shownY || w != shownW || + h != shownH) { + Outline(x, y, w, h); + shown = True; + shownX = x; + shownY = y; + shownW = w; + shownH = h; + } +} + +/* PCD's frame to the rectangle (frame coordinates), its size before kept */ +static void +Place(ClientData *pcd, int x, int y, unsigned int w, unsigned int h) +{ + int dx = 0, dy = 0; + + if (!pcd->mcdeSnapped) { + pcd->mcdeSnapped = True; + pcd->mcdeSnapWidth = pcd->clientWidth; + pcd->mcdeSnapHeight = pcd->clientHeight; + } + if (pcd->clientState == MAXIMIZED_STATE) + SetClientState(pcd, NORMAL_STATE, GetTimestamp()); + /* the size is the client's, the position the frame's (as + * CompleteFrameConfig hands them over) */ + FrameToClient(pcd, &dx, &dy, &w, &h); + ProcessNewConfiguration(pcd, x, y, w, h, False); +} + +/* the drag ended; True if a zone took the window */ +Boolean +McdeSnapRelease(ClientData *pcd) +{ + int mx, my, mw, mh, x, y; + unsigned int w, h; + Boolean snapped = shown && current.c0 >= 0; + + HideTarget(); + if (snapped) { + Monitor(pcd, shownX + 1, shownY + 1, &mx, &my, &mw, &mh); + ZoneRect(¤t, mx, my, mw, mh, &x, &y, &w, &h); + Place(pcd, x, y, w, h); + } + anchor.c0 = current.c0 = -1; + return snapped; +} + +/* a snapped window was dropped elsewhere: its size from before */ +void +McdeSnapUnsnap(ClientData *pcd) +{ + if (!pcd->mcdeSnapped) + return; + pcd->mcdeSnapped = False; + ProcessNewConfiguration(pcd, pcd->clientX - pcd->clientOffset.x, + pcd->clientY - pcd->clientOffset.y, + (unsigned int) pcd->mcdeSnapWidth, + (unsigned int) pcd->mcdeSnapHeight, False); +} + +/* f.mcde_snap NAME: the zone from the keyboard (the monitor of the window) */ +Boolean +F_McdeSnap(String args, ClientData *pcd, XEvent *event) +{ + static const struct { + const char *name; + Zone z; + } names[] = { + { "left-half", { 0, 0, 0, 1, -1 } }, + { "right-half", { 2, 2, 0, 1, 1 } }, + { "top", { 0, 2, 0, 0, 0 } }, + { "bottom", { 0, 2, 1, 1, 0 } }, + { "top-left", { 0, 0, 0, 0, 0 } }, + { "top-middle", { 1, 1, 0, 0, 0 } }, + { "top-right", { 2, 2, 0, 0, 0 } }, + { "bottom-left", { 0, 0, 1, 1, 0 } }, + { "bottom-middle", { 1, 1, 1, 1, 0 } }, + { "bottom-right", { 2, 2, 1, 1, 0 } }, + { "left", { 0, 0, 0, 1, 0 } }, + { "middle", { 1, 1, 0, 1, 0 } }, + { "right", { 2, 2, 0, 1, 0 } }, + }; + int mx, my, mw, mh, x, y; + unsigned int w, h; + size_t i; + + (void) event; + if (pcd == NULL || args == NULL) + return True; + if (strcmp(args, "restore") == 0) { + McdeSnapUnsnap(pcd); + return True; + } + for (i = 0; i < sizeof names / sizeof names[0]; i++) + if (strcmp(args, names[i].name) == 0) + break; + if (i == sizeof names / sizeof names[0]) + return True; + Monitor(pcd, pcd->clientX + 1, pcd->clientY + 1, &mx, &my, &mw, &mh); + ZoneRect(&names[i].z, mx, my, mw, mh, &x, &y, &w, &h); + Place(pcd, x, y, w, h); + return True; +} + +/* f.mcde_fullscreen: the window over everything, the bar and panel too */ +Boolean +F_McdeFullscreen(String args, ClientData *pcd, XEvent *event) +{ + (void) args; + (void) event; + if (pcd != NULL) + McdeToggleFullscreen(pcd); + return True; +} diff --git a/programs/dtwm/WmMcdeSnap.h b/programs/dtwm/WmMcdeSnap.h new file mode 100644 index 00000000..e2d754aa --- /dev/null +++ b/programs/dtwm/WmMcdeSnap.h @@ -0,0 +1,17 @@ +/* + * WmMcdeSnap.h -- MCDE: zones of the screen and full screen (WmMcdeSnap.c) + * + * Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE. + */ +#ifndef WM_MCDE_SNAP_H +#define WM_MCDE_SNAP_H + +extern void McdeSnapMotion(ClientData *pcd, int px, int py); +extern Boolean McdeSnapActive(void); +extern Boolean McdeSnapRelease(ClientData *pcd); +extern void McdeSnapUnsnap(ClientData *pcd); +extern Boolean F_McdeSnap(String args, ClientData *pcd, XEvent *event); +extern Boolean F_McdeFullscreen(String args, ClientData *pcd, XEvent *event); +extern void McdeToggleFullscreen(ClientData *pCD); + +#endif diff --git a/programs/dtwm/WmResParse.c b/programs/dtwm/WmResParse.c index b2d43b3a..821e8da5 100644 --- a/programs/dtwm/WmResParse.c +++ b/programs/dtwm/WmResParse.c @@ -94,6 +94,7 @@ #include "WmWrkspace.h" #include "WmError.h" #include "WmFunction.h" +#include "WmMcdeSnap.h" #include "WmImage.h" #include "WmXSMP.h" @@ -410,6 +411,19 @@ FunctionTableEntry functionTable[] = { 0, F_McdeAbove, ParseWmFuncNoArg}, + /* MCDE: full screen and the zones of the screen (WmMcdeSnap.c) */ + {"f.mcde_fullscreen", F_CONTEXT_ROOT|F_CONTEXT_ICON|F_SUBCONTEXT_IB_IICON| + F_SUBCONTEXT_IB_WICON, + CRS_ANY, + 0, + F_McdeFullscreen, + ParseWmFuncNoArg}, + {"f.mcde_snap", F_CONTEXT_ROOT|F_CONTEXT_ICON|F_SUBCONTEXT_IB_IICON| + F_SUBCONTEXT_IB_WICON, + CRS_ANY, + 0, + F_McdeSnap, + ParseWmFuncStrArg}, {"f.menu", 0, CRS_ANY, 0, diff --git a/programs/dtwm/WmResource.c b/programs/dtwm/WmResource.c index 20b517b4..d0675cec 100644 --- a/programs/dtwm/WmResource.c +++ b/programs/dtwm/WmResource.c @@ -163,6 +163,7 @@ char *builtinSystemMenu = BUILTINSYSTEMMENU; Minimize _n f.minimize\n\ Maximize _x f.maximize\n\ Lower _L f.lower\n\ + \"Full Screen\" _F f.mcde_fullscreen\n\ \"Always on Top\" _T f.mcde_above\n\ no-label f.separator\n\ \"Rename...\" _a f.rename\n\ @@ -183,6 +184,7 @@ void InitBuiltinSystemMenu(void) char *MaxString = NULL; char *LowString = NULL; char *AotString = NULL; + char *FulString = NULL; char *RenString = NULL; char *OcpString = NULL; char *OcaString = NULL; @@ -301,6 +303,13 @@ void InitBuiltinSystemMenu(void) } } if(gotItAll) + { + /* MCDE: Full Screen (f.mcde_fullscreen, WmMcdeSnap.c) */ + tmpString = ((char *)GETMESSAGE(62, 72, "Full\\ Screen _F f.mcde_fullscreen")); + if ((FulString = XtNewString (tmpString)) == NULL) + gotItAll = False; + } + if(gotItAll) { /* MCDE: Always on Top (f.mcde_above, WmFunction.c) */ tmpString = ((char *)GETMESSAGE(62, 71, "Always\\ on\\ Top _T f.mcde_above")); @@ -403,9 +412,9 @@ void InitBuiltinSystemMenu(void) else { /* put it together */ - snprintf(dsm, sizeof(dsm), "%s\n{\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n no-label f.separator\n", + snprintf(dsm, sizeof(dsm), "%s\n{\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n no-label f.separator\n", defaultSystemMenuName, ResString, MovString, - SizString, MinString, MaxString, LowString, AotString); + SizString, MinString, MaxString, FulString, LowString, AotString); if (DtwmBehavior) { snprintf(dsmtemp, sizeof(dsmtemp), "%s%s\n%s\n%s\n%s\n no-label f.separator\n", @@ -450,6 +459,8 @@ void InitBuiltinSystemMenu(void) XtFree(LowString); if (AotString != NULL) XtFree(AotString); + if (FulString != NULL) + XtFree(FulString); if (RenString != NULL) XtFree(RenString); if (OcpString != NULL) @@ -498,6 +509,12 @@ char builtinKeyBindingsName[] = "_MwmKeyBindings_"; AltF6 window f.next_key transient\n\ Alt ShiftF6 window f.prev_key transient\n\ ShiftF10 icon f.post_wmenu\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ }"; char builtinKeyBindings[] = BUILTINKEYBINDINGS diff --git a/programs/dtwm/WmWinConf.c b/programs/dtwm/WmWinConf.c index c3dd6aa8..579b593e 100644 --- a/programs/dtwm/WmWinConf.c +++ b/programs/dtwm/WmWinConf.c @@ -76,6 +76,7 @@ * include extern functions */ #include "WmWinConf.h" +#include "WmMcdeSnap.h" #include "WmCDInfo.h" #include "WmCDecor.h" #include "WmCPlace.h" @@ -348,7 +349,15 @@ void HandleClientFrameMove (ClientData *pcd, XEvent *pev) moveX += pev->xbutton.x_root - moveLastPointerX; moveY += pev->xbutton.y_root - moveLastPointerY; - CompleteFrameConfig (pcd, pev); + { + /* MCDE: into the zone shown, or out of the one it was in + * (WmMcdeSnap.c); CompleteFrameConfig clears anyMotion */ + Boolean moved = anyMotion, icon = wmGD.movingIcon; + + CompleteFrameConfig (pcd, pev); + if (!icon && !McdeSnapRelease (pcd) && moved) + McdeSnapUnsnap (pcd); + } moveDone = True; } else if (pev->type == MotionNotify) @@ -366,11 +375,14 @@ void HandleClientFrameMove (ClientData *pcd, XEvent *pev) if (tmpX || tmpY) { FixFrameValues (pcd, &moveX, &moveY, &moveWidth, &moveHeight, FALSE /* no size checks */); + /* MCDE: a zone at the edge of the monitor takes the outline */ + if (!wmGD.movingIcon) + McdeSnapMotion (pcd, moveLastPointerX, moveLastPointerY); if (pcd->pSD->moveOpaque) { MoveOpaque (pcd, moveX, moveY, moveWidth, moveHeight); } - else + else if (!McdeSnapActive ()) { MoveOutline(moveX, moveY, moveWidth, moveHeight); } @@ -3589,6 +3601,7 @@ void GetConfigEvent (Display *display, Window window, unsigned long mask, int cu int pollCount; Boolean gotEvent; Boolean eventToReturn = False; + Boolean flash; while (!eventToReturn) { @@ -3609,8 +3622,12 @@ void GetConfigEvent (Display *display, Window window, unsigned long mask, int cu */ polling = wmGD.enableWarp; pollCount = CONFIG_POLL_COUNT; + /* MCDE: poll only to flash an outline (server not grabbed, window + * not moved opaquely); otherwise wait for the next event -- dtwm + * used most of a CPU while a window was held still (measured) */ + flash = !wmGD.freezeOnConfig && !wmGD.pActiveSD->moveOpaque; - if (!gotEvent && (polling || !wmGD.freezeOnConfig)) + if (!gotEvent && (polling || flash)) { /* * poll for events and flash the frame outline @@ -3664,7 +3681,7 @@ void GetConfigEvent (Display *display, Window window, unsigned long mask, int cu eventToReturn = True; break; /* from while loop */ } - else if (wmGD.freezeOnConfig) + else if (!flash) { if (!(--pollCount)) { @@ -3679,7 +3696,7 @@ void GetConfigEvent (Display *display, Window window, unsigned long mask, int cu } /* end while */ } - if (!gotEvent && !polling && wmGD.freezeOnConfig) + if (!gotEvent && !polling && !flash) { /* * Wait for next event on window diff --git a/programs/dtwm/WmWinInfo.c b/programs/dtwm/WmWinInfo.c index 5c9fecce..f0e65fe7 100644 --- a/programs/dtwm/WmWinInfo.c +++ b/programs/dtwm/WmWinInfo.c @@ -143,6 +143,7 @@ GetClientInfo (WmScreenData *pSD, Window clientWindow, long manageFlags) pCD->clientID = ++(pSD->clientCounter); pCD->clientFlags = WM_INITIALIZATION; pCD->mcdeAbove = False; + pCD->mcdeSnapped = False; pCD->iconFlags = 0; pCD->thisIconBox = NULL; pCD->pECD = NULL; diff --git a/programs/dtwm/dtwm.msg b/programs/dtwm/dtwm.msg index 66fccafb..8dfdf204 100644 --- a/programs/dtwm/dtwm.msg +++ b/programs/dtwm/dtwm.msg @@ -634,6 +634,9 @@ $ This item renames the title of a window $ MCDE: keeps the window above the others (a toggle, WmFunction.c) 71 Always\\ on\\ Top _T f.mcde_above +$ MCDE: the window over the whole screen, bar and panel too (WmMcdeSnap.c) +72 Full\\ Screen _F f.mcde_fullscreen + $set 70 $ THIS COMMENT FOR DTWM TEAM ONLY -- WmWinInfo.c -- $ This entire set is written to an error file. diff --git a/programs/localized/C/config/sys.dtwmrc.tmsg b/programs/localized/C/config/sys.dtwmrc.tmsg index e6f865ed..1af56b06 100644 --- a/programs/localized/C/config/sys.dtwmrc.tmsg +++ b/programs/localized/C/config/sys.dtwmrc.tmsg @@ -92,6 +92,7 @@ $ *--------------------------------------------------------------------------* "Size" _S f.resize\n\ "Minimize" _n f.minimize\n\ "Maximize" _x f.maximize\n\ + "Full Screen" _F f.mcde_fullscreen\n\ "Lower" _L f.lower\n\ "Always on Top" _T f.mcde_above\n\ no-label f.separator\n\ @@ -114,6 +115,7 @@ $ *--------------------------------------------------------------------------* "Size" _S f.resize\n\ "Minimize" _n f.minimize\n\ "Maximize" _x f.maximize\n\ + "Full Screen" _F f.mcde_fullscreen\n\ "Lower" _L f.lower\n\ "Always on Top" _T f.mcde_above\n\ no-label f.separator\n\ @@ -136,6 +138,7 @@ $ *--------------------------------------------------------------------------* "Size" _S AltF8 f.resize\n\ "Minimize" _n AltF9 f.minimize\n\ "Maximize" _x AltF10 f.maximize\n\ + "Full Screen" _F f.mcde_fullscreen\n\ "Lower" _L AltF3 f.lower\n\ "Always on Top" _T f.mcde_above\n\ no-label f.separator\n\ @@ -189,6 +192,12 @@ $ * AltEscape root|icon|window f.next_key\n\ Alt ShiftEscape root|icon|window f.prev_key\n\ Alt Ctrl Shiftexclam root|icon|window f.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6 window f.next_key transient $ * $ * #DefaultButtonBindings# @@ -214,4 +223,10 @@ $ * Alt ShiftF6 window f.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize diff --git a/programs/localized/de_DE.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/de_DE.UTF-8/config/sys.dtwmrc.tmsg index 765e6261..d304c740 100644 --- a/programs/localized/de_DE.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/de_DE.UTF-8/config/sys.dtwmrc.tmsg @@ -97,6 +97,7 @@ $ *--------------------------------------------------------------------------* \"Größe ändern\"\t\t\t_G\t\t\tf.resize\n\ \"Symbolgröße\"\t\t\t_S\t\t\tf.minimize\n\ \"Maximale Größe\"\t\t\t_M\t\t\tf.maximize\n\ + \"Vollbild\"\t\t\t_F\t\t\tf.mcde_fullscreen\n\ \"Nach hinten\"\t\t\t_u\t\t\tf.lower\n\ \"Immer im Vordergrund\"\t\t\t_T\t\t\tf.mcde_above\n\ no-label\t\t\t\t\t\tf.separator\n\ @@ -120,6 +121,7 @@ $ *--------------------------------------------------------------------------* \"Größe ändern\"\t\t\t_G\tf.resize\n\ \"Symbolgröße\"\t\t\t_S\tf.minimize\n\ \"Maximale Größe\"\t\t\t_M\tf.maximize\n\ + \"Vollbild\"\t\t\t_F\tf.mcde_fullscreen\n\ \"Nach hinten\"\t\t\t_u\tf.lower\n\ \"Immer im Vordergrund\"\t\t\t_T\tf.mcde_above\n\ no-label\t\t\t\tf.separator\n\ @@ -143,6 +145,7 @@ $ *--------------------------------------------------------------------------* \"Größe ändern\"\t_G\tAltF8\tf.resize\n\ \"Symbolgröße\"\t_S\tAltF9\tf.minimize\n\ \"Maximale Größe\"\t_M\tAltF10\tf.maximize\n\ + \"Vollbild\"\t_F\t\tf.mcde_fullscreen\n\ \"Nach hinten\"\t_u\tAltF3\tf.lower\n\ \"Immer im Vordergrund\"\t_T\t\tf.mcde_above\n\ no-label\t\t\t\t\t\tf.separator\n\ @@ -198,6 +201,12 @@ $ * AltEscape\t\troot|icon|window\tf.next_key\n\ Alt ShiftEscape\troot|icon|window\tf.prev_key\n\ Alt Ctrl Shiftexclam\troot|icon|window\tf.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6\t\t\twindow\t\t\tf.next_key transient" $ * $ * #DefaultButtonBindings# @@ -224,4 +233,10 @@ $ * Alt ShiftF6\t\twindow\t\t\tf.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize" diff --git a/programs/localized/el_GR.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/el_GR.UTF-8/config/sys.dtwmrc.tmsg index f641a3e9..3a929869 100644 --- a/programs/localized/el_GR.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/el_GR.UTF-8/config/sys.dtwmrc.tmsg @@ -92,6 +92,7 @@ $ *--------------------------------------------------------------------------* "Μέγεθος" _S f.resize\n\ "Ελαχιστοποίηση" _n f.minimize\n\ "Μεγιστοποίηση" _x f.maximize\n\ + "Πλήρης οθόνη" _F f.mcde_fullscreen\n\ "Βύθιση" _L f.lower\n\ "Πάντα από πάνω" _T f.mcde_above\n\ no-label f.separator\n\ @@ -114,6 +115,7 @@ $ *--------------------------------------------------------------------------* "Μέγεθος" _S f.resize\n\ "Ελαχιστοποίηση" _n f.minimize\n\ "Μεγιστοποίηση" _x f.maximize\n\ + "Πλήρης οθόνη" _F f.mcde_fullscreen\n\ "Βύθιση" _L f.lower\n\ "Πάντα από πάνω" _T f.mcde_above\n\ no-label f.separator\n\ @@ -136,6 +138,7 @@ $ *--------------------------------------------------------------------------* "Μέγεθος" _S AltF8 f.resize\n\ "Ελαχιστοποίηση" _n AltF9 f.minimize\n\ "Μεγιστοποίηση" _x AltF10 f.maximize\n\ + "Πλήρης οθόνη" _F f.mcde_fullscreen\n\ "Βύθιση" _L AltF3 f.lower\n\ "Πάντα από πάνω" _T f.mcde_above\n\ no-label f.separator\n\ @@ -189,6 +192,12 @@ $ * AltEscape root|icon|window f.next_key\n\ Alt ShiftEscape root|icon|window f.prev_key\n\ Alt Ctrl Shiftexclam root|icon|window f.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6 window f.next_key transient $ * $ * #DefaultButtonBindings# @@ -214,4 +223,10 @@ $ * Alt ShiftF6 window f.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize diff --git a/programs/localized/es_ES.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/es_ES.UTF-8/config/sys.dtwmrc.tmsg index 2c4857aa..070060f5 100644 --- a/programs/localized/es_ES.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/es_ES.UTF-8/config/sys.dtwmrc.tmsg @@ -97,6 +97,7 @@ $ *--------------------------------------------------------------------------* \"Tamaño\"\t\t\t_D\t\t\tf.resize\n\ \"Minimizar\"\t\t\t_n\t\t\tf.minimize\n\ \"Maximizar\"\t\t\t_x\t\t\tf.maximize\n\ + \"Pantalla completa\"\t\t\t_F\t\t\tf.mcde_fullscreen\n\ \"Bajar\"\t\t\t_P\t\t\tf.lower\n\ \"Siempre encima\"\t\t\t_T\t\t\tf.mcde_above\n\ no-label\t\t\t\t\t\tf.separator\n\ @@ -120,6 +121,7 @@ $ *--------------------------------------------------------------------------* \"Tamaño\"\t\t\t_T\tf.resize\n\ \"Minimizar\"\t\t\t_n\tf.minimize\n\ \"Maximizar\"\t\t\t_x\tf.maximize\n\ + \"Pantalla completa\"\t\t\t_F\tf.mcde_fullscreen\n\ \"Bajar\"\t\t\t_P\tf.lower\n\ \"Siempre encima\"\t\t\t_T\tf.mcde_above\n\ no-label\t\t\t\tf.separator\n\ @@ -143,6 +145,7 @@ $ *--------------------------------------------------------------------------* \"Tamaño\"\t_D\tAltF8\tf.resize\n\ \"Minimizar\"\t_n\tAltF9\tf.minimize\n\ \"Maximizar\"\t_x\tAltF10\tf.maximize\n\ + \"Pantalla completa\"\t_F\t\tf.mcde_fullscreen\n\ \"Bajar\"\t_P\tAltF3\tf.lower\n\ \"Siempre encima\"\t_T\t\tf.mcde_above\n\ no-label\t\t\t\t\t\tf.separator\n\ @@ -198,6 +201,12 @@ $ * AltEscape\t\troot|icon|window\tf.next_key\n\ Alt DesplEscape\troot|icon|window\tf.prev_key\n\ Alt Control Desplexclam\troot|icon|window\tf.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6\t\t\twindow\t\t\tf.next_key transient" $ * $ * #DefaultButtonBindings# @@ -224,4 +233,10 @@ $ * Alt DesplF6\t\twindow\t\t\tf.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize" diff --git a/programs/localized/fr_FR.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/fr_FR.UTF-8/config/sys.dtwmrc.tmsg index 7710b247..baf77b4f 100644 --- a/programs/localized/fr_FR.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/fr_FR.UTF-8/config/sys.dtwmrc.tmsg @@ -97,6 +97,7 @@ $ *--------------------------------------------------------------------------* \"Dimensionner\"\t\t\t_s\t\t\tf.resize\n\ \"Réduire\"\t\t\t_i\t\t\tf.minimize\n\ \"Agrandir\"\t\t\t_d\t\t\tf.maximize\n\ + \"Plein écran\"\t\t\t_F\t\t\tf.mcde_fullscreen\n\ \"Derrière\"\t\t\t_e\t\t\tf.lower\n\ \"Toujours au premier plan\"\t\t\t_T\t\t\tf.mcde_above\n\ no-label\t\t\t\t\t\tf.separator\n\ @@ -120,6 +121,7 @@ $ *--------------------------------------------------------------------------* \"Dimensionner\"\t\t\t_i\tf.resize\n\ \"Réduire\"\t\t\t_u\tf.minimize\n\ \"Agrandir\"\t\t\t_A\tf.maximize\n\ + \"Plein écran\"\t\t\t_F\tf.mcde_fullscreen\n\ \"Derrière\"\t\t\t_r\tf.lower\n\ \"Toujours au premier plan\"\t\t\t_T\tf.mcde_above\n\ no-label\t\t\t\tf.separator\n\ @@ -143,6 +145,7 @@ $ *--------------------------------------------------------------------------* \"Dimensionner\"\t_i\tAltF8\tf.resize\n\ \"Réduire\"\t_u\tAltF9\tf.minimize\n\ \"Agrandir\"\t_A\tAltF10\tf.maximize\n\ + \"Plein écran\"\t_F\t\tf.mcde_fullscreen\n\ \"Derrière\"\t_r\tAltF3\tf.lower\n\ \"Toujours au premier plan\"\t_T\t\tf.mcde_above\n\ no-label\t\t\t\t\t\tf.separator\n\ @@ -197,6 +200,12 @@ $ * AltEchap\t\troot|icon|window\tf.next_key\n\ Alt MajEchap\troot|icon|window\tf.prev_key\n\ Alt Ctrl Majexclam\troot|icon|window\tf.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6\t\t\twindow\t\t\tf.next_key transient" $ * $ * #DefaultButtonBindings# @@ -223,4 +232,10 @@ $ * Alt MajF6\t\twindow\t\t\tf.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize" diff --git a/programs/localized/it_IT.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/it_IT.UTF-8/config/sys.dtwmrc.tmsg index 36d5374e..5728037e 100644 --- a/programs/localized/it_IT.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/it_IT.UTF-8/config/sys.dtwmrc.tmsg @@ -92,6 +92,7 @@ $ *--------------------------------------------------------------------------* "Ridimensionare" _d f.resize\n\ "Ridurre a icona" _i f.minimize\n\ "Ingrandire" _g f.maximize\n\ + "Schermo intero" _F f.mcde_fullscreen\n\ "In fondo" _f f.lower\n\ "Sempre in primo piano" _T f.mcde_above\n\ no-label f.separator\n\ @@ -114,6 +115,7 @@ $ *--------------------------------------------------------------------------* "Ridimensionare" _d f.resize\n\ "Ridurre a icona" _i f.minimize\n\ "Ingrandire" _g f.maximize\n\ + "Schermo intero" _F f.mcde_fullscreen\n\ "In fondo" _f f.lower\n\ "Sempre in primo piano" _T f.mcde_above\n\ no-label f.separator\n\ @@ -136,6 +138,7 @@ $ *--------------------------------------------------------------------------* "Ridimensionare" _d AltF8 f.resize\n\ "Ridurre a icona" _i AltF9 f.minimize\n\ "Ingrandire" _g AltF10 f.maximize\n\ + "Schermo intero" _F f.mcde_fullscreen\n\ "In fondo" _f AltF3 f.lower\n\ "Sempre in primo piano" _T f.mcde_above\n\ no-label f.separator\n\ @@ -189,6 +192,12 @@ $ * AltEscape root|icon|window f.next_key\n\ Alt ShiftEscape root|icon|window f.prev_key\n\ Alt Ctrl Shiftexclam root|icon|window f.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6 window f.next_key transient $ * $ * #DefaultButtonBindings# @@ -214,4 +223,10 @@ $ * Alt ShiftF6 window f.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize diff --git a/programs/localized/ja_JP.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/ja_JP.UTF-8/config/sys.dtwmrc.tmsg index 9a137057..4fd70e83 100644 --- a/programs/localized/ja_JP.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/ja_JP.UTF-8/config/sys.dtwmrc.tmsg @@ -92,6 +92,7 @@ $ *--------------------------------------------------------------------------* "サイズ(S)" _S f.resize\n\ "アイコン化(n)" _n f.minimize\n\ "最大表示(x)" _x f.maximize\n\ + "全画面表示(F)" _F f.mcde_fullscreen\n\ "奥へ(L)" _L f.lower\n\ "常に手前に表示(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -114,6 +115,7 @@ $ *--------------------------------------------------------------------------* "サイズ(S)" _S f.resize\n\ "アイコン化(n)" _n f.minimize\n\ "最大表示(x)" _x f.maximize\n\ + "全画面表示(F)" _F f.mcde_fullscreen\n\ "奥へ(L)" _L f.lower\n\ "常に手前に表示(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -136,6 +138,7 @@ $ *--------------------------------------------------------------------------* "サイズ(S)" _S AltF8 f.resize\n\ "アイコン化(n)" _n AltF9 f.minimize\n\ "最大表示(x)" _x AltF10 f.maximize\n\ + "全画面表示(F)" _F f.mcde_fullscreen\n\ "奥へ(L)" _L AltF3 f.lower\n\ "常に手前に表示(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -185,6 +188,12 @@ $ * AltEscape root|icon|window f.next_key\n\ Alt ShiftEscape root|icon|window f.prev_key\n\ Alt Ctrl Shiftexclam root|icon|window f.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6 window f.next_key transient $ * $ * #DefaultButtonBindings# @@ -210,4 +219,10 @@ $ * Alt ShiftF6 window f.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize diff --git a/programs/localized/ko_KR.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/ko_KR.UTF-8/config/sys.dtwmrc.tmsg index 69ca3e0c..33aa7451 100644 --- a/programs/localized/ko_KR.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/ko_KR.UTF-8/config/sys.dtwmrc.tmsg @@ -92,6 +92,7 @@ $ *--------------------------------------------------------------------------* "크기 바꾸기S" _S f.resize\n\ "아이콘으로n" _n f.minimize\n\ "가장 크게x" _x f.maximize\n\ + "전체 화면(F)" _F f.mcde_fullscreen\n\ "뒤로 보내기L" _L f.lower\n\ "항상 위에(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -114,6 +115,7 @@ $ *--------------------------------------------------------------------------* "크기 바꾸기S" _S f.resize\n\ "아이콘으로n" _n f.minimize\n\ "가장 크게x" _x f.maximize\n\ + "전체 화면(F)" _F f.mcde_fullscreen\n\ "뒤로 보내기L" _L f.lower\n\ "항상 위에(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -136,6 +138,7 @@ $ *--------------------------------------------------------------------------* "크기 바꾸기S" _S AltF8 f.resize\n\ "아이콘으로n" _n AltF9 f.minimize\n\ "가장 크게x" _x AltF10 f.maximize\n\ + "전체 화면(F)" _F f.mcde_fullscreen\n\ "뒤로 보내기L" _L AltF3 f.lower\n\ "항상 위에(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -185,6 +188,12 @@ $ * AltEscape root|icon|window f.next_key\n\ Alt ShiftEscape root|icon|window f.prev_key\n\ Alt Ctrl Shiftexclam root|icon|window f.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6 window f.next_key transient $ * $ * #DefaultButtonBindings# @@ -210,4 +219,10 @@ $ * Alt ShiftF6 window f.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize diff --git a/programs/localized/sv_SE.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/sv_SE.UTF-8/config/sys.dtwmrc.tmsg index 7017ad0f..967adae0 100644 --- a/programs/localized/sv_SE.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/sv_SE.UTF-8/config/sys.dtwmrc.tmsg @@ -92,6 +92,7 @@ $ *--------------------------------------------------------------------------* "Ändra storlek" _Ä f.resize\n\ "Minimera" _n f.minimize\n\ "Maximera" _x f.maximize\n\ + "Helskärm" _F f.mcde_fullscreen\n\ "Lägg underst" _L f.lower\n\ "Alltid överst" _T f.mcde_above\n\ no-label f.separator\n\ @@ -114,6 +115,7 @@ $ *--------------------------------------------------------------------------* "Ändra storlek" _Ä f.resize\n\ "Minimera" _n f.minimize\n\ "Maximera" _x f.maximize\n\ + "Helskärm" _F f.mcde_fullscreen\n\ "Lägg underst" _L f.lower\n\ "Alltid överst" _T f.mcde_above\n\ no-label f.separator\n\ @@ -136,6 +138,7 @@ $ *--------------------------------------------------------------------------* "Ändra storlek" _Ä AltF8 f.resize\n\ "Minimera" _n AltF9 f.minimize\n\ "Maximera" _x AltF10 f.maximize\n\ + "Helskärm" _F f.mcde_fullscreen\n\ "Lägg underst" _L AltF3 f.lower\n\ "Alltid överst" _T f.mcde_above\n\ no-label f.separator\n\ @@ -185,6 +188,12 @@ $ * AltEsc root|icon|window f.next_key\n\ Alt SkiftEsc root|icon|window f.prev_key\n\ Alt Ctrl Skiftutrop root|icon|window f.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6 window f.next_key transient $ * $ * #DefaultButtonBindings# @@ -210,5 +219,11 @@ $ * Alt ShiftF6 window f.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize diff --git a/programs/localized/zh_CN.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/zh_CN.UTF-8/config/sys.dtwmrc.tmsg index f50790d2..fe71dfb6 100644 --- a/programs/localized/zh_CN.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/zh_CN.UTF-8/config/sys.dtwmrc.tmsg @@ -92,6 +92,7 @@ $ *--------------------------------------------------------------------------* "大小(S)" _S f.resize\n\ "最小化(n)" _n f.minimize\n\ "最大化(x)" _x f.maximize\n\ + "全屏(F)" _F f.mcde_fullscreen\n\ "置后(L)" _L f.lower\n\ "总在最前(T)" _T f.mcde_above\n\ 无标签 f.separator\n\ @@ -114,6 +115,7 @@ $ *--------------------------------------------------------------------------* "大小(S)" _S f.resize\n\ "最小化(n)" _n f.minimize\n\ "最大化(x)" _x f.maximize\n\ + "全屏(F)" _F f.mcde_fullscreen\n\ "置后(L)" _L f.lower\n\ "总在最前(T)" _T f.mcde_above\n\ 无标签 f.separator\n\ @@ -136,6 +138,7 @@ $ *--------------------------------------------------------------------------* "大小(S)" _S AltF8 f.resize\n\ "最小化(n)" _n AltF9 f.minimize\n\ "最大化(x)" _x AltF10 f.maximize\n\ + "全屏(F)" _F f.mcde_fullscreen\n\ "置后(L)" _L AltF3 f.lower\n\ "总在最前(T)" _T f.mcde_above\n\ 无标签 f.separator\n\ @@ -185,6 +188,12 @@ $ * AltEscape root|icon|window f.next_key\n\ Alt ShiftEscape root|icon|window f.prev_key\n\ Alt Ctrl Shiftexclam root|icon|window f.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6 window f.next_key transient $ * $ * #DefaultButtonBindings# @@ -210,4 +219,10 @@ $ * Alt ShiftF6 window f.prev_key transient\n\ SunFront ifkey|icon|window f.raise_lower\n\ SunOpen ifkey|window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen ifkey|icon f.normalize diff --git a/programs/localized/zh_TW.UTF-8/config/sys.dtwmrc.tmsg b/programs/localized/zh_TW.UTF-8/config/sys.dtwmrc.tmsg index 8a24a924..e026cd5b 100644 --- a/programs/localized/zh_TW.UTF-8/config/sys.dtwmrc.tmsg +++ b/programs/localized/zh_TW.UTF-8/config/sys.dtwmrc.tmsg @@ -92,6 +92,7 @@ $ *--------------------------------------------------------------------------* "大小" _S f.resize\n\ "縮至最小" _n f.minimize\n\ "放至最大" _x f.maximize\n\ + "全螢幕(F)" _F f.mcde_fullscreen\n\ "移至底層" _L f.lower\n\ "永遠在最上層(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -114,6 +115,7 @@ $ *--------------------------------------------------------------------------* "大小" _S f.resize\n\ "縮至最小" _n f.minimize\n\ "放至最大" _x f.maximize\n\ + "全螢幕(F)" _F f.mcde_fullscreen\n\ "移至底層" _L f.lower\n\ "永遠在最上層(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -136,6 +138,7 @@ $ *--------------------------------------------------------------------------* "大小" _S AltF8 f.resize\n\ "縮至最小" _n AltF9 f.minimize\n\ "放至最大" _x AltF10 f.maximize\n\ + "全螢幕(F)" _F f.mcde_fullscreen\n\ "移至底層" _L AltF3 f.lower\n\ "永遠在最上層(T)" _T f.mcde_above\n\ no-label f.separator\n\ @@ -185,6 +188,12 @@ $ * AltEscape root|icon|window f.next_key\n\ Alt ShiftEscape root|icon|window f.prev_key\n\ Alt Ctrl Shiftexclam root|icon|window f.set_behavior\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ AltF6 window f.next_key transient $ * $ * #DefaultButtonBindings# @@ -210,4 +219,10 @@ $ * Alt ShiftF6 window f.prev_key transient\n\ SunFront icon|window f.raise_lower\n\ SunOpen window f.minimize\n\ + Alt Ctrlf window f.mcde_fullscreen\n\ + Alt CtrlLeft window f.mcde_snap left-half\n\ + Alt CtrlRight window f.mcde_snap right-half\n\ + Alt CtrlUp window f.mcde_snap top\n\ + Alt CtrlDown window f.mcde_snap bottom\n\ + Alt CtrlBackSpace window f.mcde_snap restore\n\ SunOpen icon f.normalize