diff options
author | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2003-03-16 14:26:39 +0000 |
---|---|---|
committer | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2003-03-16 14:26:39 +0000 |
commit | dd7cd002b81750e384047e89f921289a8168bb43 (patch) | |
tree | 4fbcb85d67d9bcb9a50f99d99f7a25caa4de6281 /src | |
parent | 7e46802d8e3a724abbbc61eed27dbf4f22c959e6 (diff) | |
download | xfwm4-dd7cd002b81750e384047e89f921289a8168bb43.tar.gz |
Reformat code usign astyle, redesign microdeck theme, include nestu's Spanish translation
(Old svn revision: 10989)
Diffstat (limited to 'src')
-rw-r--r-- | src/client.c | 462 | ||||
-rw-r--r-- | src/client.h | 10 | ||||
-rw-r--r-- | src/debug.h | 6 | ||||
-rw-r--r-- | src/events.c | 545 | ||||
-rw-r--r-- | src/events.h | 8 | ||||
-rw-r--r-- | src/frame.c | 190 | ||||
-rw-r--r-- | src/frame.h | 8 | ||||
-rw-r--r-- | src/hints.c | 9 | ||||
-rw-r--r-- | src/hints.h | 8 | ||||
-rw-r--r-- | src/inline-tabwin-icon.h | 864 | ||||
-rw-r--r-- | src/keyboard.c | 8 | ||||
-rw-r--r-- | src/keyboard.h | 8 | ||||
-rw-r--r-- | src/main.c | 137 | ||||
-rw-r--r-- | src/main.h | 8 | ||||
-rw-r--r-- | src/menu.c | 74 | ||||
-rw-r--r-- | src/menu.h | 8 | ||||
-rw-r--r-- | src/misc.c | 8 | ||||
-rw-r--r-- | src/misc.h | 8 | ||||
-rw-r--r-- | src/mywindow.c | 8 | ||||
-rw-r--r-- | src/mywindow.h | 8 | ||||
-rw-r--r-- | src/parserc.c | 8 | ||||
-rw-r--r-- | src/parserc.h | 8 | ||||
-rw-r--r-- | src/pixmap.c | 8 | ||||
-rw-r--r-- | src/pixmap.h | 8 | ||||
-rw-r--r-- | src/session.c | 8 | ||||
-rw-r--r-- | src/session.h | 4 | ||||
-rw-r--r-- | src/settings.c | 518 | ||||
-rw-r--r-- | src/settings.h | 8 | ||||
-rw-r--r-- | src/spinning_cursor.c | 62 | ||||
-rw-r--r-- | src/spinning_cursor.h | 8 | ||||
-rw-r--r-- | src/startup_notification.c | 32 | ||||
-rw-r--r-- | src/startup_notification.h | 8 | ||||
-rw-r--r-- | src/tabwin.c | 8 | ||||
-rw-r--r-- | src/tabwin.h | 8 | ||||
-rw-r--r-- | src/workspaces.c | 13 | ||||
-rw-r--r-- | src/workspaces.h | 8 |
36 files changed, 1564 insertions, 1538 deletions
diff --git a/src/client.c b/src/client.c index 1f804e0de..30ce19596 100644 --- a/src/client.c +++ b/src/client.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -47,26 +47,26 @@ /* Event mask definition */ #define POINTER_EVENT_MASK ButtonPressMask|\ - ButtonReleaseMask + ButtonReleaseMask #define FRAME_EVENT_MASK SubstructureNotifyMask|\ - SubstructureRedirectMask|\ - EnterWindowMask + SubstructureRedirectMask|\ + EnterWindowMask #define CLIENT_EVENT_MASK FocusChangeMask|\ - PropertyChangeMask + PropertyChangeMask /* Useful macros */ #define ACCEPT_INPUT(wmhints) \ (!(params.focus_hint) || \ - ((!(wmhints) || \ - ((wmhints) && !(wmhints->flags & InputHint)) || \ - ((wmhints) && (wmhints->flags & InputHint) && (wmhints->input))))) + ((!(wmhints) || \ + ((wmhints) && !(wmhints->flags & InputHint)) || \ + ((wmhints) && (wmhints->flags & InputHint) && (wmhints->input))))) #define START_ICONIC(c) \ ((c->wmhints) && \ - (c->wmhints->initial_state == IconicState) && \ - !(c->transient_for)) + (c->wmhints->initial_state == IconicState) && \ + !(c->transient_for)) #define CONSTRAINED_WINDOW(c) \ ((c->win_layer > WIN_LAYER_DESKTOP) && (c->win_layer < WIN_LAYER_ABOVE_DOCK) && !(c->type & (WINDOW_DESKTOP | WINDOW_DOCK))) @@ -678,18 +678,18 @@ void clientGetNetWmType(Client * c) { switch (c->win_layer) { - case WIN_LAYER_DESKTOP: - c->type_atom = net_wm_window_type_desktop; - break; - case WIN_LAYER_DOCK: - c->type_atom = net_wm_window_type_dock; - break; - case WIN_LAYER_NORMAL: - c->type_atom = net_wm_window_type_normal; - break; - default: - c->type_atom = None; - break; + case WIN_LAYER_DESKTOP: + c->type_atom = net_wm_window_type_desktop; + break; + case WIN_LAYER_DOCK: + c->type_atom = net_wm_window_type_dock; + break; + case WIN_LAYER_NORMAL: + c->type_atom = net_wm_window_type_normal; + break; + default: + c->type_atom = None; + break; } } else @@ -1104,46 +1104,46 @@ void clientCoordGravitate(Client * c, int mode, int *x, int *y) c->gravity = c->size->flags & PWinGravity ? c->size->win_gravity : NorthWestGravity; switch (c->gravity) { - case CenterGravity: - dx = (c->border_width << 1) - ((frameLeft(c) + frameRight(c)) >> 1); - dy = (c->border_width << 1) - ((frameTop(c) + frameBottom(c)) >> 1); - break; - case NorthGravity: - dx = (c->border_width << 1) - ((frameLeft(c) + frameRight(c)) >> 1); - dy = frameTop(c); - break; - case SouthGravity: - dx = (c->border_width << 1) - ((frameLeft(c) + frameRight(c)) >> 1); - dy = (c->border_width << 1) - frameBottom(c); - break; - case EastGravity: - dx = (c->border_width << 1) - frameRight(c); - dy = (c->border_width << 1) - ((frameTop(c) + frameBottom(c)) >> 1); - break; - case WestGravity: - dx = frameLeft(c); - dy = (c->border_width << 1) - ((frameTop(c) + frameBottom(c)) >> 1); - break; - case NorthWestGravity: - dx = frameLeft(c); - dy = frameTop(c); - break; - case NorthEastGravity: - dx = (c->border_width << 1) - frameRight(c); - dy = frameTop(c); - break; - case SouthWestGravity: - dx = frameLeft(c); - dy = (c->border_width << 1) - frameBottom(c); - break; - case SouthEastGravity: - dx = (c->border_width << 1) - frameRight(c); - dy = (c->border_width << 1) - frameBottom(c); - break; - default: - dx = 0; - dy = 0; - break; + case CenterGravity: + dx = (c->border_width << 1) - ((frameLeft(c) + frameRight(c)) >> 1); + dy = (c->border_width << 1) - ((frameTop(c) + frameBottom(c)) >> 1); + break; + case NorthGravity: + dx = (c->border_width << 1) - ((frameLeft(c) + frameRight(c)) >> 1); + dy = frameTop(c); + break; + case SouthGravity: + dx = (c->border_width << 1) - ((frameLeft(c) + frameRight(c)) >> 1); + dy = (c->border_width << 1) - frameBottom(c); + break; + case EastGravity: + dx = (c->border_width << 1) - frameRight(c); + dy = (c->border_width << 1) - ((frameTop(c) + frameBottom(c)) >> 1); + break; + case WestGravity: + dx = frameLeft(c); + dy = (c->border_width << 1) - ((frameTop(c) + frameBottom(c)) >> 1); + break; + case NorthWestGravity: + dx = frameLeft(c); + dy = frameTop(c); + break; + case NorthEastGravity: + dx = (c->border_width << 1) - frameRight(c); + dy = frameTop(c); + break; + case SouthWestGravity: + dx = frameLeft(c); + dy = (c->border_width << 1) - frameBottom(c); + break; + case SouthEastGravity: + dx = (c->border_width << 1) - frameRight(c); + dy = (c->border_width << 1) - frameBottom(c); + break; + default: + dx = 0; + dy = 0; + break; } *x = *x + (dx * mode); *y = *y + (dy * mode); @@ -1353,7 +1353,7 @@ static inline void clientApplyStackList(GSList * list) { return; } - + list_copy = g_slist_copy(list); list_copy = g_slist_reverse(list_copy); xwinstack = g_new(Window, nwindows); @@ -1428,7 +1428,7 @@ static inline Client *clientGetHighestTransient(Client * c) { g_slist_free(transients); } - + return highest_transient; } @@ -1756,6 +1756,7 @@ void clientConfigure(Client * c, XWindowChanges * wc, int mask, gboolean constra #else /* 0 */ c->x = wc->x; #endif /* 0 */ + } } if(mask & CWY) @@ -1774,6 +1775,7 @@ void clientConfigure(Client * c, XWindowChanges * wc, int mask, gboolean constra #else /* 0 */ c->y = wc->y; #endif /* 0 */ + } } if(mask & CWWidth) @@ -1792,20 +1794,20 @@ void clientConfigure(Client * c, XWindowChanges * wc, int mask, gboolean constra { switch (wc->stack_mode) { - /* Limitation: we don't support sibling... */ - case Above: - case TopIf: - DBG("Above\n"); - clientRaise(c); - break; - case Below: - case BottomIf: - DBG("Below\n"); - clientLower(c); - break; - case Opposite: - default: - break; + /* Limitation: we don't support sibling... */ + case Above: + case TopIf: + DBG("Above\n"); + clientRaise(c); + break; + case Below: + case BottomIf: + DBG("Below\n"); + clientLower(c); + break; + case Opposite: + default: + break; } mask &= ~(CWStackMode | CWSibling); } @@ -2115,6 +2117,7 @@ void clientFrame(Window w) c->client_leader = None; c->client_leader = getClientLeader(dpy, c->window); #ifdef HAVE_STARTUP_NOTIFICATION + c->startup_id = NULL; getWindowStartupId(dpy, c->window, &c->startup_id); #endif @@ -2225,7 +2228,7 @@ void clientFrame(Window w) clientConfigure(c, &wc, CWX | CWY | CWHeight | CWWidth, FALSE); clientApplyStackList(windows_stack); last_raise = c; - + if(!CLIENT_FLAG_TEST(c, CLIENT_FLAG_HIDDEN)) { clientShow(c, True); @@ -2376,28 +2379,28 @@ Client *clientGetFromWindow(Window w, int mode) { switch (mode) { - case WINDOW: - if(c->window == w) - { - DBG("found \"%s\" (mode WINDOW)\n", c->name); - return (c); - } - break; - case FRAME: - if(c->frame == w) - { - DBG("found \"%s\" (mode FRAME)\n", c->name); - return (c); - } - break; - case ANY: - default: - if((c->frame == w) || (c->window == w)) - { - DBG("found \"%s\" (mode ANY)\n", c->name); - return (c); - } - break; + case WINDOW: + if(c->window == w) + { + DBG("found \"%s\" (mode WINDOW)\n", c->name); + return (c); + } + break; + case FRAME: + if(c->frame == w) + { + DBG("found \"%s\" (mode FRAME)\n", c->name); + return (c); + } + break; + case ANY: + default: + if((c->frame == w) || (c->window == w)) + { + DBG("found \"%s\" (mode ANY)\n", c->name); + return (c); + } + break; } } DBG("no client found\n"); @@ -2583,7 +2586,7 @@ void clientRaise(Client * c) { return; } - + if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_MANAGED)) { Client *c2, *c3; @@ -2658,14 +2661,14 @@ void clientRaise(Client * c) } } } - if(transients) - { + if(transients) + { g_slist_free(transients); - } - if(windows_stack_copy) - { + } + if(windows_stack_copy) + { g_slist_free(windows_stack_copy); - } + } /* Now, windows_stack contains the correct window stack We still need to tell the X Server to reflect the changes */ @@ -2685,7 +2688,7 @@ void clientLower(Client * c) { return; } - + if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_MANAGED)) { Client *client_sibling = NULL; @@ -3208,7 +3211,7 @@ static inline void clientSnapPosition(Client * c) g_return_if_fail(c != NULL); DBG("entering clientSnapPosition\n"); DBG("Snapping client \"%s\" (0x%lx)\n", c->name, c->window); - + frame_x = frameX(c); frame_y = frameY(c); frame_height = frameHeight(c); @@ -3238,50 +3241,50 @@ static inline void clientSnapPosition(Client * c) int i; int frame_x2 = frame_x + frame_width; int frame_y2 = frame_y + frame_height; - int best_frame_x = frame_x; - int best_frame_y = frame_y; - int best_delta_x = params.snap_width + 1; - int best_delta_y = params.snap_width + 1; + int best_frame_x = frame_x; + int best_frame_y = frame_y; + int best_delta_x = params.snap_width + 1; + int best_delta_y = params.snap_width + 1; int c_frame_x1, c_frame_x2, c_frame_y1, c_frame_y2; int delta; Client * c2; - disp_x = MyDisplayX(cx, cy); - disp_y = MyDisplayY(cx, cy); - disp_max_x = MyDisplayMaxX(dpy, screen, cx, cy); - disp_max_y = MyDisplayMaxY(dpy, screen, cx, cy); + disp_x = MyDisplayX(cx, cy); + disp_y = MyDisplayY(cx, cy); + disp_max_x = MyDisplayMaxX(dpy, screen, cx, cy); + disp_max_y = MyDisplayMaxY(dpy, screen, cx, cy); if (params.snap_to_border) - { + { if (abs(disp_x + left - frame_x) < abs(disp_max_x - right - frame_x2)) { - best_delta_x = abs(disp_x + left - frame_x); - best_frame_x = disp_x + left; + best_delta_x = abs(disp_x + left - frame_x); + best_frame_x = disp_x + left; } else { - best_delta_x = abs(disp_max_x - right - frame_x2); - best_frame_x = disp_max_x - right - frame_width; + best_delta_x = abs(disp_max_x - right - frame_x2); + best_frame_x = disp_max_x - right - frame_width; } if (abs(disp_y + top - frame_y) < abs(disp_max_y - bottom - frame_y2)) { - best_delta_y = abs(disp_y + top - frame_y); - best_frame_y = disp_y + top; + best_delta_y = abs(disp_y + top - frame_y); + best_frame_y = disp_y + top; } else { - best_delta_y = abs(disp_max_y - bottom - frame_y2); - best_frame_y = disp_max_y - bottom - frame_height; + best_delta_y = abs(disp_max_y - bottom - frame_y2); + best_frame_y = disp_max_y - bottom - frame_height; } } if(params.snap_to_windows) { - for(c2 = clients, i = 0; i < client_count; c2 = c2->next, i++) + for(c2 = clients, i = 0; i < client_count; c2 = c2->next, i++) { - if (CLIENT_FLAG_TEST(c2, CLIENT_FLAG_VISIBLE) && (c2 != c)) - { + if (CLIENT_FLAG_TEST(c2, CLIENT_FLAG_VISIBLE) && (c2 != c)) + { c_frame_x1 = frameX(c2); c_frame_x2 = c_frame_x1 + frameWidth(c2); c_frame_y1 = frameY(c2); @@ -3289,42 +3292,42 @@ static inline void clientSnapPosition(Client * c) if ((c_frame_y1 <= frame_y2) && (c_frame_y2 >= frame_y)) { - delta = abs(c_frame_x2 - frame_x); - if (delta < best_delta_x) - { + delta = abs(c_frame_x2 - frame_x); + if (delta < best_delta_x) + { best_delta_x = delta; best_frame_x = c_frame_x2; - } + } - delta = abs(c_frame_x1 - frame_x2); - if (delta < best_delta_x) - { + delta = abs(c_frame_x1 - frame_x2); + if (delta < best_delta_x) + { best_delta_x = delta; best_frame_x = c_frame_x1 - frame_width; - } + } } if ((c_frame_x1 <= frame_x2) && (c_frame_x2 >= frame_x)) { - delta = abs(c_frame_y2 - frame_y); - if (delta < best_delta_y) - { + delta = abs(c_frame_y2 - frame_y); + if (delta < best_delta_y) + { best_delta_y = delta; best_frame_y = c_frame_y2; - } + } - delta = abs(c_frame_y1 - frame_y2); - if (delta < best_delta_y) - { + delta = abs(c_frame_y1 - frame_y2); + if (delta < best_delta_y) + { best_delta_y = delta; best_frame_y = c_frame_y1 - frame_height; - } + } } - } + } } - } - + } + if (best_delta_x <= params.snap_width) { c->x = best_frame_x + frame_left; @@ -3402,7 +3405,8 @@ static GtkToXEventFilterStatus clientMove_event_filter(XEvent * xevent, gpointer } else if(xevent->type == MotionNotify) { - while(XCheckMaskEvent(dpy, ButtonMotionMask | PointerMotionMask | PointerMotionHintMask, xevent)); + while(XCheckMaskEvent(dpy, ButtonMotionMask | PointerMotionMask | PointerMotionHintMask, xevent)) + ; if(xevent->type == ButtonRelease) { @@ -3422,7 +3426,7 @@ static GtkToXEventFilterStatus clientMove_event_filter(XEvent * xevent, gpointer if((params.workspace_count > 1) && !(c->transient_for)) { - static gboolean wrapped = FALSE; + static gboolean wrapped = FALSE; int msx, msy; msx = xevent->xmotion.x_root; @@ -3433,26 +3437,26 @@ static GtkToXEventFilterStatus clientMove_event_filter(XEvent * xevent, gpointer XWarpPointer(dpy, None, root, 0, 0, 0, 0, XDisplayWidth(dpy, screen) - 11, msy); msx = xevent->xmotion.x_root = XDisplayWidth(dpy, screen) - 11; workspaceSwitch(workspace - 1, c); - wrapped = TRUE; + wrapped = TRUE; } else if((msx == XDisplayWidth(dpy, screen) - 1) && params.wrap_workspaces && !wrapped) { XWarpPointer(dpy, None, root, 0, 0, 0, 0, 10, msy); msx = xevent->xmotion.x_root = 10; workspaceSwitch(workspace + 1, c); - wrapped = TRUE; + wrapped = TRUE; + } + else if (wrapped) + { + wrapped = FALSE; } - else if (wrapped) - { - wrapped = FALSE; - } } c->x = passdata->ox + (xevent->xmotion.x_root - passdata->mx); c->y = passdata->oy + (xevent->xmotion.y_root - passdata->my); - - clientSnapPosition(c); - + + clientSnapPosition(c); + if(CONSTRAINED_WINDOW(c)) { clientConstraintPos(c, FALSE); @@ -3707,7 +3711,8 @@ static GtkToXEventFilterStatus clientResize_event_filter(XEvent * xevent, gpoint } else if(xevent->type == MotionNotify) { - while(XCheckMaskEvent(dpy, ButtonMotionMask | PointerMotionMask | PointerMotionHintMask, xevent)); + while(XCheckMaskEvent(dpy, ButtonMotionMask | PointerMotionMask | PointerMotionHintMask, xevent)) + ; if(xevent->type == ButtonRelease) { @@ -3950,41 +3955,41 @@ static GtkToXEventFilterStatus clientCycle_event_filter(XEvent * xevent, gpointe switch (xevent->type) { - case DestroyNotify: - gone |= (passdata->c == clientGetFromWindow(((XDestroyWindowEvent *) xevent)->window, WINDOW)); - status = XEV_FILTER_CONTINUE; - case UnmapNotify: - gone |= (passdata->c == clientGetFromWindow(((XUnmapEvent *) xevent)->window, WINDOW)); - status = XEV_FILTER_CONTINUE; - case KeyPress: - if(gone || (xevent->xkey.keycode == params.keys[KEY_CYCLE_WINDOWS].keycode)) + case DestroyNotify: + gone |= (passdata->c == clientGetFromWindow(((XDestroyWindowEvent *) xevent)->window, WINDOW)); + status = XEV_FILTER_CONTINUE; + case UnmapNotify: + gone |= (passdata->c == clientGetFromWindow(((XUnmapEvent *) xevent)->window, WINDOW)); + status = XEV_FILTER_CONTINUE; + case KeyPress: + if(gone || (xevent->xkey.keycode == params.keys[KEY_CYCLE_WINDOWS].keycode)) + { + passdata->c = clientGetNext(passdata->c, INCLUDE_HIDDEN | INCLUDE_SKIP_TASKBAR | INCLUDE_SKIP_PAGER); + if(passdata->c) { - passdata->c = clientGetNext(passdata->c, INCLUDE_HIDDEN | INCLUDE_SKIP_TASKBAR | INCLUDE_SKIP_PAGER); - if(passdata->c) - { - tabwinSetLabel(passdata->tabwin, passdata->c->name); - } - else - { - cycling = FALSE; - } + tabwinSetLabel(passdata->tabwin, passdata->c->name); } - break; - case KeyRelease: - if(IsModifierKey(XKeycodeToKeysym(dpy, xevent->xkey.keycode, 0))) + else { cycling = FALSE; } - break; - case ButtonPress: - case ButtonRelease: - case EnterNotify: - case LeaveNotify: - case MotionNotify: - break; - default: - status = XEV_FILTER_CONTINUE; - break; + } + break; + case KeyRelease: + if(IsModifierKey(XKeycodeToKeysym(dpy, xevent->xkey.keycode, 0))) + { + cycling = FALSE; + } + break; + case ButtonPress: + case ButtonRelease: + case EnterNotify: + case LeaveNotify: + case MotionNotify: + break; + default: + status = XEV_FILTER_CONTINUE; + break; } if(!cycling) @@ -4072,8 +4077,7 @@ static GtkToXEventFilterStatus clientButtonPress_event_filter(XEvent * xevent, g c->button_pressed[b] = False; } else if((xevent->type == KeyPress) || (xevent->type == KeyRelease)) - { - } + {} else { status = XEV_FILTER_CONTINUE; @@ -4137,45 +4141,45 @@ void clientButtonPress(Client * c, Window w, XButtonEvent * bev) frameDraw(c, FALSE, FALSE); switch (b) { - case HIDE_BUTTON: - if(CLIENT_CAN_HIDE_WINDOW(c)) + case HIDE_BUTTON: + if(CLIENT_CAN_HIDE_WINDOW(c)) + { + clientHide(c, True); + } + break; + case CLOSE_BUTTON: + if(bev->button == Button3) + { + clientKill(c); + } + else + { + clientClose(c); + } + break; + case MAXIMIZE_BUTTON: + if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + if(bev->button == Button1) { - clientHide(c, True); + clientToggleMaximized(c, WIN_STATE_MAXIMIZED); } - break; - case CLOSE_BUTTON: - if(bev->button == Button3) + else if(bev->button == Button2) { - clientKill(c); + clientToggleMaximized(c, WIN_STATE_MAXIMIZED_VERT); } - else + else if(bev->button == Button3) { - clientClose(c); + clientToggleMaximized(c, WIN_STATE_MAXIMIZED_HORIZ); } - break; - case MAXIMIZE_BUTTON: - if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) - { - if(bev->button == Button1) - { - clientToggleMaximized(c, WIN_STATE_MAXIMIZED); - } - else if(bev->button == Button2) - { - clientToggleMaximized(c, WIN_STATE_MAXIMIZED_VERT); - } - else if(bev->button == Button3) - { - clientToggleMaximized(c, WIN_STATE_MAXIMIZED_HORIZ); - } - } - break; - case SHADE_BUTTON: - clientToggleShaded(c); - break; - case STICK_BUTTON: - clientToggleSticky(c, TRUE); - break; + } + break; + case SHADE_BUTTON: + clientToggleShaded(c); + break; + case STICK_BUTTON: + clientToggleSticky(c, TRUE); + break; } } } diff --git a/src/client.h b/src/client.h index f127967c0..56a3ceeff 100644 --- a/src/client.h +++ b/src/client.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_CLIENT_H @@ -199,8 +199,10 @@ struct _Client int struts[4]; char *name; #ifdef HAVE_STARTUP_NOTIFICATION + char *startup_id; #endif + unsigned long client_flag; /* Pixmap caching */ ClientPixmapCache pm_cache; diff --git a/src/debug.h b/src/debug.h index daada8740..629f885fc 100644 --- a/src/debug.h +++ b/src/debug.h @@ -3,16 +3,16 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + */ #ifndef INC_DEBUG_H diff --git a/src/events.c b/src/events.c index 44014a378..e757b4c54 100644 --- a/src/events.c +++ b/src/events.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -205,186 +205,187 @@ static inline void handleKeyPress(XKeyEvent * ev) { switch (key) { - case KEY_MOVE_UP: - case KEY_MOVE_DOWN: - case KEY_MOVE_LEFT: - case KEY_MOVE_RIGHT: - moveRequest(c, (XEvent *) ev); - break; - case KEY_RESIZE_UP: - case KEY_RESIZE_DOWN: - case KEY_RESIZE_LEFT: - case KEY_RESIZE_RIGHT: - if(CLIENT_FLAG_TEST_ALL(c, CLIENT_FLAG_HAS_RESIZE | CLIENT_FLAG_IS_RESIZABLE)) - { - clientResize(c, CORNER_BOTTOM_RIGHT, (XEvent *) ev); - } - break; - case KEY_CYCLE_WINDOWS: - clientCycle(c); - break; - case KEY_CLOSE_WINDOW: - clientClose(c); - break; - case KEY_HIDE_WINDOW: - if(CLIENT_CAN_HIDE_WINDOW(c)) - { - clientHide(c, True); - } - break; - case KEY_MAXIMIZE_WINDOW: - if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) - { - clientToggleMaximized(c, WIN_STATE_MAXIMIZED); - } - break; - case KEY_MAXIMIZE_VERT: - if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) - { - clientToggleMaximized(c, WIN_STATE_MAXIMIZED_VERT); - } - break; - case KEY_MAXIMIZE_HORIZ: - if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) - { - clientToggleMaximized(c, WIN_STATE_MAXIMIZED_HORIZ); - } - break; - case KEY_SHADE_WINDOW: - clientToggleShaded(c); - break; - case KEY_STICK_WINDOW: - if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_STICK)) - { - clientToggleSticky(c, TRUE); - } - break; - case KEY_MOVE_NEXT_WORKSPACE: - workspaceSwitch(workspace + 1, c); - break; - case KEY_MOVE_PREV_WORKSPACE: - workspaceSwitch(workspace - 1, c); - break; - case KEY_MOVE_WORKSPACE_1: - workspaceSwitch(0, c); - break; - case KEY_MOVE_WORKSPACE_2: - workspaceSwitch(1, c); - break; - case KEY_MOVE_WORKSPACE_3: - workspaceSwitch(2, c); - break; - case KEY_MOVE_WORKSPACE_4: - workspaceSwitch(3, c); - break; - case KEY_MOVE_WORKSPACE_5: - workspaceSwitch(4, c); - break; - case KEY_MOVE_WORKSPACE_6: - workspaceSwitch(5, c); - break; - case KEY_MOVE_WORKSPACE_7: - workspaceSwitch(6, c); - break; - case KEY_MOVE_WORKSPACE_8: - workspaceSwitch(7, c); - break; - case KEY_MOVE_WORKSPACE_9: - workspaceSwitch(8, c); - break; - default: - break; - } - } - else - { - switch (key) - { - case KEY_CYCLE_WINDOWS: - if(clients) - { - clientCycle(clients->prev); - } - break; - default: - break; - } - } - switch (key) - { - case KEY_NEXT_WORKSPACE: - workspaceSwitch(workspace + 1, NULL); + case KEY_MOVE_UP: + case KEY_MOVE_DOWN: + case KEY_MOVE_LEFT: + case KEY_MOVE_RIGHT: + moveRequest(c, (XEvent *) ev); break; - case KEY_PREV_WORKSPACE: - workspaceSwitch(workspace - 1, NULL); + case KEY_RESIZE_UP: + case KEY_RESIZE_DOWN: + case KEY_RESIZE_LEFT: + case KEY_RESIZE_RIGHT: + if(CLIENT_FLAG_TEST_ALL(c, CLIENT_FLAG_HAS_RESIZE | CLIENT_FLAG_IS_RESIZABLE)) + { + clientResize(c, CORNER_BOTTOM_RIGHT, (XEvent *) ev); + } break; - case KEY_ADD_WORKSPACE: - workspaceSetCount(params.workspace_count + 1); + case KEY_CYCLE_WINDOWS: + clientCycle(c); break; - case KEY_DEL_WORKSPACE: - workspaceSetCount(params.workspace_count - 1); + case KEY_CLOSE_WINDOW: + clientClose(c); break; - case KEY_WORKSPACE_1: - workspaceSwitch(0, NULL); + case KEY_HIDE_WINDOW: + if(CLIENT_CAN_HIDE_WINDOW(c)) + { + clientHide(c, True); + } break; - case KEY_WORKSPACE_2: - workspaceSwitch(1, NULL); + case KEY_MAXIMIZE_WINDOW: + if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + clientToggleMaximized(c, WIN_STATE_MAXIMIZED); + } break; - case KEY_WORKSPACE_3: - workspaceSwitch(2, NULL); + case KEY_MAXIMIZE_VERT: + if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + clientToggleMaximized(c, WIN_STATE_MAXIMIZED_VERT); + } break; - case KEY_WORKSPACE_4: - workspaceSwitch(3, NULL); + case KEY_MAXIMIZE_HORIZ: + if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + clientToggleMaximized(c, WIN_STATE_MAXIMIZED_HORIZ); + } break; - case KEY_WORKSPACE_5: - workspaceSwitch(4, NULL); + case KEY_SHADE_WINDOW: + clientToggleShaded(c); break; - case KEY_WORKSPACE_6: - workspaceSwitch(5, NULL); + case KEY_STICK_WINDOW: + if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_STICK)) + { + clientToggleSticky(c, TRUE); + } break; - case KEY_WORKSPACE_7: - workspaceSwitch(6, NULL); + case KEY_MOVE_NEXT_WORKSPACE: + workspaceSwitch(workspace + 1, c); break; - case KEY_WORKSPACE_8: - workspaceSwitch(7, NULL); + case KEY_MOVE_PREV_WORKSPACE: + workspaceSwitch(workspace - 1, c); break; - case KEY_WORKSPACE_9: - workspaceSwitch(8, NULL); + case KEY_MOVE_WORKSPACE_1: + workspaceSwitch(0, c); break; - case KEY_SHORTCUT_1: - spawn_shortcut(0); + case KEY_MOVE_WORKSPACE_2: + workspaceSwitch(1, c); break; - case KEY_SHORTCUT_2: - spawn_shortcut(1); + case KEY_MOVE_WORKSPACE_3: + workspaceSwitch(2, c); break; - case KEY_SHORTCUT_3: - spawn_shortcut(2); + case KEY_MOVE_WORKSPACE_4: + workspaceSwitch(3, c); break; - case KEY_SHORTCUT_4: - spawn_shortcut(3); + case KEY_MOVE_WORKSPACE_5: + workspaceSwitch(4, c); break; - case KEY_SHORTCUT_5: - spawn_shortcut(4); + case KEY_MOVE_WORKSPACE_6: + workspaceSwitch(5, c); break; - case KEY_SHORTCUT_6: - spawn_shortcut(5); + case KEY_MOVE_WORKSPACE_7: + workspaceSwitch(6, c); break; - case KEY_SHORTCUT_7: - spawn_shortcut(6); + case KEY_MOVE_WORKSPACE_8: + workspaceSwitch(7, c); break; - case KEY_SHORTCUT_8: - spawn_shortcut(7); + case KEY_MOVE_WORKSPACE_9: + workspaceSwitch(8, c); break; - case KEY_SHORTCUT_9: - spawn_shortcut(8); + default: break; - case KEY_SHORTCUT_10: - spawn_shortcut(9); + } + } + else + { + switch (key) + { + case KEY_CYCLE_WINDOWS: + if(clients) + { + clientCycle(clients->prev); + } break; default: break; + } + } + switch (key) + { + case KEY_NEXT_WORKSPACE: + workspaceSwitch(workspace + 1, NULL); + break; + case KEY_PREV_WORKSPACE: + workspaceSwitch(workspace - 1, NULL); + break; + case KEY_ADD_WORKSPACE: + workspaceSetCount(params.workspace_count + 1); + break; + case KEY_DEL_WORKSPACE: + workspaceSetCount(params.workspace_count - 1); + break; + case KEY_WORKSPACE_1: + workspaceSwitch(0, NULL); + break; + case KEY_WORKSPACE_2: + workspaceSwitch(1, NULL); + break; + case KEY_WORKSPACE_3: + workspaceSwitch(2, NULL); + break; + case KEY_WORKSPACE_4: + workspaceSwitch(3, NULL); + break; + case KEY_WORKSPACE_5: + workspaceSwitch(4, NULL); + break; + case KEY_WORKSPACE_6: + workspaceSwitch(5, NULL); + break; + case KEY_WORKSPACE_7: + workspaceSwitch(6, NULL); + break; + case KEY_WORKSPACE_8: + workspaceSwitch(7, NULL); + break; + case KEY_WORKSPACE_9: + workspaceSwitch(8, NULL); + break; + case KEY_SHORTCUT_1: + spawn_shortcut(0); + break; + case KEY_SHORTCUT_2: + spawn_shortcut(1); + break; + case KEY_SHORTCUT_3: + spawn_shortcut(2); + break; + case KEY_SHORTCUT_4: + spawn_shortcut(3); + break; + case KEY_SHORTCUT_5: + spawn_shortcut(4); + break; + case KEY_SHORTCUT_6: + spawn_shortcut(5); + break; + case KEY_SHORTCUT_7: + spawn_shortcut(6); + break; + case KEY_SHORTCUT_8: + spawn_shortcut(7); + break; + case KEY_SHORTCUT_9: + spawn_shortcut(8); + break; + case KEY_SHORTCUT_10: + spawn_shortcut(9); + break; + default: + break; } - while(XCheckTypedEvent(dpy, EnterNotify, &e)); + while(XCheckTypedEvent(dpy, EnterNotify, &e)) + ; } /* User has clicked on an edge or corner. @@ -443,21 +444,21 @@ static inline void button1Action(Client * c, XButtonEvent * ev) { switch (params.double_click_action) { - case ACTION_MAXIMIZE: - if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) - { - clientToggleMaximized(c, WIN_STATE_MAXIMIZED); - } - break; - case ACTION_SHADE: - clientToggleShaded(c); - break; - case ACTION_HIDE: - if(CLIENT_CAN_HIDE_WINDOW(c)) - { - clientHide(c, TRUE); - } - break; + case ACTION_MAXIMIZE: + if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + clientToggleMaximized(c, WIN_STATE_MAXIMIZED); + } + break; + case ACTION_SHADE: + clientToggleShaded(c); + break; + case ACTION_HIDE: + if(CLIENT_CAN_HIDE_WINDOW(c)) + { + clientHide(c, TRUE); + } + break; } } } @@ -841,7 +842,8 @@ static inline void handleEnterNotify(XCrossingEvent * ev) DBG("entering handleEnterNotify\n"); - while(XCheckTypedEvent(dpy, EnterNotify, (XEvent *) ev)); + while(XCheckTypedEvent(dpy, EnterNotify, (XEvent *) ev)) + ; DBG("EnterNotify window is (0x%lx)\n", ev->window); @@ -1004,6 +1006,7 @@ static inline void handlePropertyNotify(XPropertyEvent * ev) getWindowStartupId(dpy, c->window, &c->startup_id); } #endif + } else { @@ -1169,50 +1172,50 @@ void handleEvent(XEvent * ev) sn_process_event(ev); switch (ev->type) { - case KeyPress: - handleKeyPress((XKeyEvent *) ev); - break; - case ButtonPress: - handleButtonPress((XButtonEvent *) ev); - break; - case ButtonRelease: - handleButtonRelease((XButtonEvent *) ev); - break; - case DestroyNotify: - handleDestroyNotify((XDestroyWindowEvent *) ev); - break; - case UnmapNotify: - handleUnmapNotify((XUnmapEvent *) ev); - break; - case MapRequest: - handleMapRequest((XMapRequestEvent *) ev); - break; - case ConfigureRequest: - handleConfigureRequest((XConfigureRequestEvent *) ev); - break; - case EnterNotify: - handleEnterNotify((XCrossingEvent *) ev); - break; - case FocusIn: - handleFocusIn((XFocusChangeEvent *) ev); - break; - case FocusOut: - handleFocusOut((XFocusChangeEvent *) ev); - break; - case PropertyNotify: - handlePropertyNotify((XPropertyEvent *) ev); - break; - case ClientMessage: - handleClientMessage((XClientMessageEvent *) ev); - break; - case ColormapNotify: - handleColormapNotify((XColormapEvent *) ev); - break; - default: - if(shape && (ev->type == shape_event)) - { - handleShape((XShapeEvent *) ev); - } + case KeyPress: + handleKeyPress((XKeyEvent *) ev); + break; + case ButtonPress: + handleButtonPress((XButtonEvent *) ev); + break; + case ButtonRelease: + handleButtonRelease((XButtonEvent *) ev); + break; + case DestroyNotify: + handleDestroyNotify((XDestroyWindowEvent *) ev); + break; + case UnmapNotify: + handleUnmapNotify((XUnmapEvent *) ev); + break; + case MapRequest: + handleMapRequest((XMapRequestEvent *) ev); + break; + case ConfigureRequest: + handleConfigureRequest((XConfigureRequestEvent *) ev); + break; + case EnterNotify: + handleEnterNotify((XCrossingEvent *) ev); + break; + case FocusIn: + handleFocusIn((XFocusChangeEvent *) ev); + break; + case FocusOut: + handleFocusOut((XFocusChangeEvent *) ev); + break; + case PropertyNotify: + handlePropertyNotify((XPropertyEvent *) ev); + break; + case ClientMessage: + handleClientMessage((XClientMessageEvent *) ev); + break; + case ColormapNotify: + handleColormapNotify((XColormapEvent *) ev); + break; + default: + if(shape && (ev->type == shape_event)) + { + handleShape((XShapeEvent *) ev); + } } if(!gdk_events_pending() && !XPending(dpy)) { @@ -1263,59 +1266,59 @@ static void menu_callback(Menu * menu, MenuOp op, Window client_xwindow, gpointe switch (op) { - case MENU_OP_QUIT: - gtk_main_quit(); - break; - case MENU_OP_MAXIMIZE: - case MENU_OP_UNMAXIMIZE: - if((c) && CLIENT_CAN_MAXIMIZE_WINDOW(c)) - { - clientToggleMaximized(c, WIN_STATE_MAXIMIZED); - } - break; - case MENU_OP_MINIMIZE: - if((c) && CLIENT_CAN_HIDE_WINDOW(c)) - { - clientHide(c, True); - } - break; - case MENU_OP_MINIMIZE_ALL: - clientHideAll(c); - break; - case MENU_OP_UNMINIMIZE: - if(c) - { - clientShow(c, True); - } - break; - case MENU_OP_SHADE: - case MENU_OP_UNSHADE: - if(c) - { - clientToggleShaded(c); - } - break; - case MENU_OP_STICK: - case MENU_OP_UNSTICK: - if(c) - { - frameDraw(c, FALSE, FALSE); - clientToggleSticky(c, TRUE); - } - break; - case MENU_OP_DELETE: - if(c) - { - frameDraw(c, FALSE, FALSE); - clientClose(c); - } - break; - default: - if(c) - { - frameDraw(c, FALSE, FALSE); - } - break; + case MENU_OP_QUIT: + gtk_main_quit(); + break; + case MENU_OP_MAXIMIZE: + case MENU_OP_UNMAXIMIZE: + if((c) && CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + clientToggleMaximized(c, WIN_STATE_MAXIMIZED); + } + break; + case MENU_OP_MINIMIZE: + if((c) && CLIENT_CAN_HIDE_WINDOW(c)) + { + clientHide(c, True); + } + break; + case MENU_OP_MINIMIZE_ALL: + clientHideAll(c); + break; + case MENU_OP_UNMINIMIZE: + if(c) + { + clientShow(c, True); + } + break; + case MENU_OP_SHADE: + case MENU_OP_UNSHADE: + if(c) + { + clientToggleShaded(c); + } + break; + case MENU_OP_STICK: + case MENU_OP_UNSTICK: + if(c) + { + frameDraw(c, FALSE, FALSE); + clientToggleSticky(c, TRUE); + } + break; + case MENU_OP_DELETE: + if(c) + { + frameDraw(c, FALSE, FALSE); + clientClose(c); + } + break; + default: + if(c) + { + frameDraw(c, FALSE, FALSE); + } + break; } menu_free(menu); } diff --git a/src/events.h b/src/events.h index 96d6c0c16..2dad66411 100644 --- a/src/events.h +++ b/src/events.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_EVENTS_H diff --git a/src/frame.c b/src/frame.c index 607230cff..e6a3e845d 100644 --- a/src/frame.c +++ b/src/frame.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -213,15 +213,15 @@ static void frameCreateTitlePixmap(Client * c, int state, int left, int right, M } switch (params.title_alignment) { - case ALIGN_LEFT: - tp = params.title_horizontal_offset; - break; - case ALIGN_RIGHT: - tp = w3 - logical_rect.width - params.title_horizontal_offset; - break; - case ALIGN_CENTER: - tp = (w3 >> 1) - (logical_rect.width >> 1); - break; + case ALIGN_LEFT: + tp = params.title_horizontal_offset; + break; + case ALIGN_RIGHT: + tp = w3 - logical_rect.width - params.title_horizontal_offset; + break; + case ALIGN_CENTER: + tp = (w3 >> 1) - (logical_rect.width >> 1); + break; } if(tp < params.title_horizontal_offset) { @@ -242,15 +242,15 @@ static void frameCreateTitlePixmap(Client * c, int state, int left, int right, M } switch (params.title_alignment) { - case ALIGN_LEFT: - w1 = left + params.title_horizontal_offset; - break; - case ALIGN_RIGHT: - w1 = right - w2 - w3 - w4 - params.title_horizontal_offset; - break; - case ALIGN_CENTER: - w1 = left + ((right - left) / 2) - (w3 >> 1) - w2; - break; + case ALIGN_LEFT: + w1 = left + params.title_horizontal_offset; + break; + case ALIGN_RIGHT: + w1 = right - w2 - w3 - w4 - params.title_horizontal_offset; + break; + case ALIGN_CENTER: + w1 = left + ((right - left) / 2) - (w3 >> 1) - w2; + break; } if(w1 < left) { @@ -316,44 +316,44 @@ static int getButtonFromLetter(char chr, Client * c) switch (chr) { - case 'H': - if(CLIENT_CAN_HIDE_WINDOW(c)) - { - b = HIDE_BUTTON; - } - break; - case 'C': - if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_CLOSE)) - { - b = CLOSE_BUTTON; - } - break; - case 'M': - if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) - { - b = MAXIMIZE_BUTTON; - } - break; - case 'S': - b = SHADE_BUTTON; - break; - case 'T': - if(CLIENT_FLAG_TEST_ALL(c, CLIENT_FLAG_HAS_STICK | CLIENT_FLAG_HAS_MENU)) - { - b = STICK_BUTTON; - } - break; - case 'O': - if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_MENU)) - { - b = MENU_BUTTON; - } - break; - case '|': - b = TITLE_SEPARATOR; - break; - default: - b = -1; + case 'H': + if(CLIENT_CAN_HIDE_WINDOW(c)) + { + b = HIDE_BUTTON; + } + break; + case 'C': + if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_CLOSE)) + { + b = CLOSE_BUTTON; + } + break; + case 'M': + if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + b = MAXIMIZE_BUTTON; + } + break; + case 'S': + b = SHADE_BUTTON; + break; + case 'T': + if(CLIENT_FLAG_TEST_ALL(c, CLIENT_FLAG_HAS_STICK | CLIENT_FLAG_HAS_MENU)) + { + b = STICK_BUTTON; + } + break; + case 'O': + if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_MENU)) + { + b = MENU_BUTTON; + } + break; + case '|': + b = TITLE_SEPARATOR; + break; + default: + b = -1; } return b; } @@ -366,41 +366,41 @@ static char getLetterFromButton(int i, Client * c) switch (i) { - case HIDE_BUTTON: - if(CLIENT_CAN_HIDE_WINDOW(c)) - { - chr = 'H'; - } - break; - case CLOSE_BUTTON: - if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_CLOSE)) - { - chr = 'C'; - } - break; - case MAXIMIZE_BUTTON: - if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) - { - chr = 'M'; - } - break; - case SHADE_BUTTON: - chr = 'S'; - break; - case STICK_BUTTON: - if(CLIENT_FLAG_TEST_ALL(c, CLIENT_FLAG_HAS_STICK | CLIENT_FLAG_HAS_MENU)) - { - chr = 'T'; - } - break; - case MENU_BUTTON: - if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_MENU)) - { - chr = 'O'; - } - break; - default: - chr = 0; + case HIDE_BUTTON: + if(CLIENT_CAN_HIDE_WINDOW(c)) + { + chr = 'H'; + } + break; + case CLOSE_BUTTON: + if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_CLOSE)) + { + chr = 'C'; + } + break; + case MAXIMIZE_BUTTON: + if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + chr = 'M'; + } + break; + case SHADE_BUTTON: + chr = 'S'; + break; + case STICK_BUTTON: + if(CLIENT_FLAG_TEST_ALL(c, CLIENT_FLAG_HAS_STICK | CLIENT_FLAG_HAS_MENU)) + { + chr = 'T'; + } + break; + case MENU_BUTTON: + if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_MENU)) + { + chr = 'O'; + } + break; + default: + chr = 0; } return chr; } diff --git a/src/frame.h b/src/frame.h index 5fa4b4f9c..343b181fd 100644 --- a/src/frame.h +++ b/src/frame.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_FRAME_H diff --git a/src/hints.c b/src/hints.c index a76c15576..60fc6f32c 100644 --- a/src/hints.c +++ b/src/hints.c @@ -3,20 +3,20 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch Metacity - (c) 2001 Havoc Pennington xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -423,6 +423,7 @@ void set_net_supported_hint(Display * dpy, int screen, Window check_win) atoms[i++] = net_wm_window_type_utility; atoms[i++] = net_workarea; #ifdef HAVE_STARTUP_NOTIFICATION + atoms[i++] = net_startup_id; #endif diff --git a/src/hints.h b/src/hints.h index 0a4d5a2ab..694a4023c 100644 --- a/src/hints.h +++ b/src/hints.h @@ -3,20 +3,20 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch Metacity - (c) 2001 Havoc Pennington xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_HINTS_H diff --git a/src/inline-tabwin-icon.h b/src/inline-tabwin-icon.h index f1583d967..1999491aa 100644 --- a/src/inline-tabwin-icon.h +++ b/src/inline-tabwin-icon.h @@ -1,430 +1,438 @@ /* GdkPixbuf RGBA C-Source image dump */ -static const guint8 tabwin_icon_data[] = { "" - /* Pixbuf magic (0x47646b50) */ - "GdkP" - /* length: header (24) + pixel_data (9216) */ - "\0\0$\30" - /* pixdata_type (0x1010002) */ - "\1\1\0\2" - /* rowstride (192) */ - "\0\0\0\300" - /* width (48) */ - "\0\0\0" "0" - /* height (48) */ - "\0\0\0" "0" - /* pixel_data: */ - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\377\0\0\0\377\0" - "\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\376" - "\0\0\0\376\0\0\0\376\0\0\0\375\0\0\0\374\0\0\0\373\0\0\0\372\0\0\0\371" - "\0\0\0\367\0\0\0\365\0\0\0\363\0\0\0\360\0\0\0\376\0\0\0\375\0\0\0\375" - "\0\0\0\374\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\366\0\0\0\377\0\0\0\377" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\333\333\333\377\333" - "\333\333\377\333\333\333\377\333\333\333\377\333\333\333\377\333\333" - "\333\377\333\333\333\377\331\333\331\377\331\333\331\377\331\333\331" - "\377\331\333\331\377\331\333\331\377\331\333\331\377\331\333\331\377" - "\331\333\331\377\331\333\331\377\331\333\331\377\331\333\331\377\333" - "\333\333\377\333\333\333\377\333\333\333\377\333\333\333\377\333\333" - "\333\377\331\333\331\377\331\333\331\377\331\333\331\377\331\333\331" - "\377\331\333\331\377\331\333\331\377\331\333\331\377\331\333\331\377" - "\331\333\331\377\331\333\331\377\333\333\333\377\333\333\333\377\333" - "\333\333\377\333\333\333\377\333\333\333\377\333\333\333\377\333\333" - "\333\377\331\333\331\377\236\237\231\377\0\0\0\377\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\377\333\333\333\377qVT\377iHG\377^==\377U66\377K11\377D" - "-,\377\77*+\377;*+\3777()\3773'(\3772''\3770''\377.''\377,''\377,''\377" - ",''\377+''\377+''\377+''\377+''\377+''\377+''\377+''\3770''\377.''\377" - ",''\3770''\377.''\377,''\377,''\377,''\377+''\377+''\377+''\377+''\377" - "+''\377+''\377+''\377+''\377+''\377+''\377HSH\377\0\0\0\377\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377`ST\377eJI\377Z\77\77\377Q77" - "\377I12\377C..\377>+,\377;*+\3776()\3773'(\3771''\3770''\377.''\377," - "''\377,''\377,''\377+''\377+''\377+''\377+''\377+''\377+''\377+''\377" - "0''\377.''\377,''\3770''\377.''\377,''\377,''\377,''\377+''\377+''\377" - "+''\377+''\377+''\377+''\377+''\377+''\377+''\377+''\377COC\377\0\0\0" - "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\210\215\205\377" - "z\200w\377qwm\377hpf\377aj`\377\\fZ\377V`U\377T\\R\377OZN\377KWK\377" - "JTJ\377HSH\377GSG\377FRF\377DPD\377DPD\377COC\377COC\377COC\377COC\377" - "COC\377COC\377COC\377HSH\377GSG\377FRF\377HSH\377GSG\377FRF\377DPD\377" - "DPD\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377" - "COC\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\222\226\216\377COC\377\0\0\0\377\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376" - "\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\1\1\1\377\1\1\1\377\2\2\2\377\3\3\3\377" - "\3\3\3\377\4\4\4\377\6\6\6\377\7\7\7\377\11\11\11\377\0\0\0\377\1\1\1" - "\377\1\1\1\377\1\1\1\377\2\2\2\377\3\3\3\377\5\5\5\377\0\0\0\377\0\0" - "\0\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\333\333" - "\333\377\236\237\231\377\236\237\231\377\0\0\0\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\375\377\375\377\375\377\375" - "\377\375\377\375\377\375\377\375\377\375\377\375\377\375\377\375\377" - "\375\377\375\377\375\377\375\377\375\377\375\377\375\377\375\377\375" - "\377\375\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\375\377\375" - "\377\274\275\267\377\0\0\0\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\375\333\333\333\377\236\237\231\377\236\237\231\377\0" - "\0\0\377\377\377\377\377\221vt\377\211gf\377~[[\377uSS\377kNN\377cIH" - "\377^EF\377YEF\377UCD\377PBC\377OAB\377LAB\377JAB\377HAB\377GAB\377G" - "AB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377" - "FAB\377gsg\377\0\0\0\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\374\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0" - "\377\377\377\377\377\200st\377\205ji\377z^^\377qUU\377iNO\377bJJ\377" - "]FG\377YEF\377SCD\377PBC\377NAB\377LAB\377JAB\377HAB\377GAB\377GAB\377" - "FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377" - "bob\377\0\0\0\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\373\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0\377\377" - "\377\377\377\247\253\244\377\231\237\227\377\221\227\215\377\210\220" - "\206\377\201\212\200\377|\206z\377v\200u\377t|r\377ozn\377kwk\377jtj" - "\377gsg\377fsf\377ere\377cpc\377cpc\377bob\377bob\377bob\377bob\377b" - "ob\377bob\377bob\377bob\377bob\377bob\377bob\377\0\0\0\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377COC\377" - "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\371\333\333\333\377\236\237" - "\231\377\236\237\231\377\0\0\0\377\377\377\377\377[[[\377[[[\377^^^\377" - "^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377" - "^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377[[[\377^^^\377^^^\377\\\\\\" - "\377^^^\377qqq\377\360\360\360\377bob\377\0\0\0\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377COC\377\0\0\0" - "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\367\333\333\333\377\236\237\231\377" - "\236\237\231\377\0\0\0\377\377\377\377\377YYY\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377COC\377" - "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\364\333\333\333\377\236\237" - "\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\333\333\333\377" - "\236\237\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333" - "\333\377\236\237\231\377\236\237\231\377\1\1\1\377\377\377\377\377^^" - "^\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377" - "\0\0\0\377\1\1\1\377\1\1\1\377\1\1\1\377\2\2\2\377\3\3\3\377\0\0\0\377" - "\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231" - "\377\1\1\1\377\377\377\377\377^^^\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377bob\377\0\0\0\377\304\304\304\377\304\304" - "\304\377\304\304\304\377\304\304\304\377\303\304\303\377\217\220\213" - "\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237" - "\231\377\2\2\2\377\377\377\377\377^^^\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377bob\377\0\0\0\3772./\3772./\3772./\377" - "2./\3772./\377KUK\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377" - "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237" - "\231\377\236\237\231\377\3\3\3\377\377\377\377\377^^^\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\3772./" - "\3772./\3772./\3772./\3772./\377GQG\377\0\0\0\377\236\237\231\377\236" - "\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333" - "\333\377\236\237\231\377\236\237\231\377\4\4\4\377\377\377\377\377[[" - "[\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377" - "\0\0\0\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377\0\0\0\377\236\237" - "\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\377\333\333\333\377\236\237\231\377\236\237\231\377\6\6\6\377\377" - "\377\377\377^^^\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377bob\377\0\0\0\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377" - "\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333" - "\333\333\377\236\237\231\377\236\237\231\377\11\11\11\377\377\377\377" - "\377^^^\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "bob\377\0\0\0\377\231\231\231\377\231\231\231\377\231\231\231\377\231" - "\231\231\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237" - "\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333" - "\377\236\237\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0" - "\0\0\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377" - "COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236" - "\237\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377" - "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" - "\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377" - "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237" - "\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\231" - "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" - "\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0" - "\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231" - "\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236" - "\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\231\231\231\377" - "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377GQG\377" - "\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231" - "\377\0\0\0\377\377\377\377\377^^^\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377bob\377\0\0\0\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377GQG\377\0\0\0" - "\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231\377\0" - "\0\0\377\377\377\377\377fff\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377bob\377\0\0\0\377\231\231\231\377\231\231\231\377" - "\231\231\231\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377\236" - "\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0\377" - "\377\377\377\377\360\360\360\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" - "\377\377\377\377\377\377bob\377\0\0\0\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377" - "\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0" - "\0\0\1\1\1\377\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0" - "\377\274\275\267\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377" - "bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377" - "bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377" - "\0\0\0\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377" - "COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\377\333\333\333\377\236" - "\237\231\377\236\237\231\377\0\0\0\377;;9\377231\377+,*\377$$#\377\36" - "\37\36\377\32\32\31\377\25\25\25\377\0\0\0\377\27\27\27\377\16\16\15" - "\377\13\13\12\377\0\0\0\377\7\7\7\377\4\4\4\377\3\3\3\377\2\2\2\377\1" - "\1\1\377\1\1\1\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\0\0\0\377\304\304\304\377\231\231\231\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" - "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" - "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377" - "COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\4\4\4\377\333\333\333\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\0\0\0\377\304\304\304\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" - "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" - "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377" - "\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333" - "\333\333\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\0\0\0\377\304\304\304\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" - "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" - "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377" - "\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\0\0\0\377\304\304" - "\304\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" - "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" - "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" - "GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\0\0\0\377\304\304\304\377\231\231\231\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" - "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" - "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377" - "COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\0\0\0\377\304\304\304\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" - "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" - "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" - "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" - "\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377" - "\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333" - "\333\333\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\0\0\0\377\217\220\213\377GQG\377" - "GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377" - "GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377" - "GQG\377GQG\377GQG\377GQG\377GQG\377\0\0\0\377\236\237\231\377\236\237" - "\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\0\0\0\377))(\377\"#\"\377\35\36\35\377\30" - "\30\27\377\24\25\24\377\21\21\20\377\16\16\16\377\13\13\13\377\11\11" - "\10\377\7\7\7\377\5\5\5\377\0\0\0\377\2\2\2\377\2\2\2\377\1\1\1\377\1" - "\1\1\377\1\1\1\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\236\237" - "\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\377\333\333\333\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377COC\377" - "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" - "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" - "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" - "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" - "\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\377\236\237\231\377COC\377COC\377COC\377COC\377COC\377" - "COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377" - "COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377" - "COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377" - "COC\377COC\377COC\377COC\377COC\377COC\377COC\377\0\0\0\377\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\377\0\0\0\237\0\0\0\255\0\0\0\270\0\0\0\304\0\0" - "\0\315\0\0\0\324\0\0\0\334\0\0\0\342\0\0\0\350\0\0\0\354\0\0\0\360\0" - "\0\0\377\0\0\0\377\0\0\0\377\2\2\2\377\1\1\1\377\1\1\1\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\342\0\0\0\350\0\0\0\354" - "\0\0\0\360\0\0\0\376\2\2\2\377\1\1\1\377\1\1\1\377\0\0\0\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" - "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" -}; +static const guint8 tabwin_icon_data[] = +{ "" + /* Pixbuf magic (0x47646b50) */ + "GdkP" + /* length: header (24) + pixel_data (9216) */ + "\0\0$\30" + /* pixdata_type (0x1010002) */ + "\1\1\0\2" + /* rowstride (192) */ + "\0\0\0\300" + /* width (48) */ + "\0\0\0""0" + /* height (48) */ + "\0\0\0""0" + /* pixel_data: */ + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\0\0\0\377\0\0\0\377\0" + "\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\376" + "\0\0\0\376\0\0\0\376\0\0\0\375\0\0\0\374\0\0\0\373\0\0\0\372\0\0\0\371" + "\0\0\0\367\0\0\0\365\0\0\0\363\0\0\0\360\0\0\0\376\0\0\0\375\0\0\0\375" + "\0\0\0\374\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\366\0\0\0\377\0\0\0\377" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\333\333\333\377\333" + "\333\333\377\333\333\333\377\333\333\333\377\333\333\333\377\333\333" + "\333\377\333\333\333\377\331\333\331\377\331\333\331\377\331\333\331" + "\377\331\333\331\377\331\333\331\377\331\333\331\377\331\333\331\377" + "\331\333\331\377\331\333\331\377\331\333\331\377\331\333\331\377\333" + "\333\333\377\333\333\333\377\333\333\333\377\333\333\333\377\333\333" + "\333\377\331\333\331\377\331\333\331\377\331\333\331\377\331\333\331" + "\377\331\333\331\377\331\333\331\377\331\333\331\377\331\333\331\377" + "\331\333\331\377\331\333\331\377\333\333\333\377\333\333\333\377\333" + "\333\333\377\333\333\333\377\333\333\333\377\333\333\333\377\333\333" + "\333\377\331\333\331\377\236\237\231\377\0\0\0\377\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\377\333\333\333\377qVT\377iHG\377^==\377U66\377K11\377D" + "-,\377\77*+\377;*+\3777()\3773'(\3772''\3770''\377.''\377,''\377,''\377" + ",''\377+''\377+''\377+''\377+''\377+''\377+''\377+''\3770''\377.''\377" + ",''\3770''\377.''\377,''\377,''\377,''\377+''\377+''\377+''\377+''\377" + "+''\377+''\377+''\377+''\377+''\377+''\377HSH\377\0\0\0\377\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377`ST\377eJI\377Z\77\77\377Q77" + "\377I12\377C..\377>+,\377;*+\3776()\3773'(\3771''\3770''\377.''\377," + "''\377,''\377,''\377+''\377+''\377+''\377+''\377+''\377+''\377+''\377" + "0''\377.''\377,''\3770''\377.''\377,''\377,''\377,''\377+''\377+''\377" + "+''\377+''\377+''\377+''\377+''\377+''\377+''\377+''\377COC\377\0\0\0" + "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\210\215\205\377" + "z\200w\377qwm\377hpf\377aj`\377\\fZ\377V`U\377T\\R\377OZN\377KWK\377" + "JTJ\377HSH\377GSG\377FRF\377DPD\377DPD\377COC\377COC\377COC\377COC\377" + "COC\377COC\377COC\377HSH\377GSG\377FRF\377HSH\377GSG\377FRF\377DPD\377" + "DPD\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377" + "COC\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\222\226\216\377COC\377\0\0\0\377\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376" + "\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\1\1\1\377\1\1\1\377\2\2\2\377\3\3\3\377" + "\3\3\3\377\4\4\4\377\6\6\6\377\7\7\7\377\11\11\11\377\0\0\0\377\1\1\1" + "\377\1\1\1\377\1\1\1\377\2\2\2\377\3\3\3\377\5\5\5\377\0\0\0\377\0\0" + "\0\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\376\333\333" + "\333\377\236\237\231\377\236\237\231\377\0\0\0\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\375\377\375\377\375\377\375" + "\377\375\377\375\377\375\377\375\377\375\377\375\377\375\377\375\377" + "\375\377\375\377\375\377\375\377\375\377\375\377\375\377\375\377\375" + "\377\375\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\375\377\375" + "\377\274\275\267\377\0\0\0\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\375\333\333\333\377\236\237\231\377\236\237\231\377\0" + "\0\0\377\377\377\377\377\221vt\377\211gf\377~[[\377uSS\377kNN\377cIH" + "\377^EF\377YEF\377UCD\377PBC\377OAB\377LAB\377JAB\377HAB\377GAB\377G" + "AB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377" + "FAB\377gsg\377\0\0\0\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\374\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0" + "\377\377\377\377\377\200st\377\205ji\377z^^\377qUU\377iNO\377bJJ\377" + "]FG\377YEF\377SCD\377PBC\377NAB\377LAB\377JAB\377HAB\377GAB\377GAB\377" + "FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377FAB\377" + "bob\377\0\0\0\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\373\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0\377\377" + "\377\377\377\247\253\244\377\231\237\227\377\221\227\215\377\210\220" + "\206\377\201\212\200\377|\206z\377v\200u\377t|r\377ozn\377kwk\377jtj" + "\377gsg\377fsf\377ere\377cpc\377cpc\377bob\377bob\377bob\377bob\377b" + "ob\377bob\377bob\377bob\377bob\377bob\377bob\377\0\0\0\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377COC\377" + "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\371\333\333\333\377\236\237" + "\231\377\236\237\231\377\0\0\0\377\377\377\377\377[[[\377[[[\377^^^\377" + "^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377" + "^^^\377^^^\377^^^\377^^^\377^^^\377^^^\377[[[\377^^^\377^^^\377\\\\\\" + "\377^^^\377qqq\377\360\360\360\377bob\377\0\0\0\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377COC\377\0\0\0" + "\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\367\333\333\333\377\236\237\231\377" + "\236\237\231\377\0\0\0\377\377\377\377\377YYY\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377COC\377" + "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\364\333\333\333\377\236\237" + "\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\360\333\333\333\377" + "\236\237\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333" + "\333\377\236\237\231\377\236\237\231\377\1\1\1\377\377\377\377\377^^" + "^\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377" + "\0\0\0\377\1\1\1\377\1\1\1\377\1\1\1\377\2\2\2\377\3\3\3\377\0\0\0\377" + "\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231" + "\377\1\1\1\377\377\377\377\377^^^\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377bob\377\0\0\0\377\304\304\304\377\304\304" + "\304\377\304\304\304\377\304\304\304\377\303\304\303\377\217\220\213" + "\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237" + "\231\377\2\2\2\377\377\377\377\377^^^\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377bob\377\0\0\0\3772./\3772./\3772./\377" + "2./\3772./\377KUK\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377" + "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237" + "\231\377\236\237\231\377\3\3\3\377\377\377\377\377^^^\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\3772./" + "\3772./\3772./\3772./\3772./\377GQG\377\0\0\0\377\236\237\231\377\236" + "\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333" + "\333\377\236\237\231\377\236\237\231\377\4\4\4\377\377\377\377\377[[" + "[\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377" + "\0\0\0\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377\0\0\0\377\236\237" + "\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\377\333\333\333\377\236\237\231\377\236\237\231\377\6\6\6\377\377" + "\377\377\377^^^\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377bob\377\0\0\0\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377" + "\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333" + "\333\333\377\236\237\231\377\236\237\231\377\11\11\11\377\377\377\377" + "\377^^^\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "bob\377\0\0\0\377\231\231\231\377\231\231\231\377\231\231\231\377\231" + "\231\231\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237" + "\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333" + "\377\236\237\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0" + "\0\0\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377" + "COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236" + "\237\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377" + "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" + "\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377" + "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237" + "\231\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\231" + "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" + "\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0" + "\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231" + "\377\236\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236" + "\237\231\377\0\0\0\377\377\377\377\377^^^\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377bob\377\0\0\0\377\231\231\231\377" + "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377GQG\377" + "\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231" + "\377\0\0\0\377\377\377\377\377^^^\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377bob\377\0\0\0\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377GQG\377\0\0\0" + "\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231\377\0" + "\0\0\377\377\377\377\377fff\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377bob\377\0\0\0\377\231\231\231\377\231\231\231\377" + "\231\231\231\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377\236" + "\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0\377" + "\377\377\377\377\360\360\360\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377" + "\377\377\377\377\377\377bob\377\0\0\0\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377" + "\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0" + "\0\0\1\1\1\377\333\333\333\377\236\237\231\377\236\237\231\377\0\0\0" + "\377\274\275\267\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377" + "bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377" + "bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377bob\377" + "\0\0\0\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377" + "COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\1\1\1\377\333\333\333\377\236" + "\237\231\377\236\237\231\377\0\0\0\377;;9\377231\377+,*\377$$#\377\36" + "\37\36\377\32\32\31\377\25\25\25\377\0\0\0\377\27\27\27\377\16\16\15" + "\377\13\13\12\377\0\0\0\377\7\7\7\377\4\4\4\377\3\3\3\377\2\2\2\377\1" + "\1\1\377\1\1\1\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\0\0\0\377\304\304\304\377\231\231\231\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" + "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" + "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377" + "COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\4\4\4\377\333\333\333\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\0\0\0\377\304\304\304\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" + "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" + "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377" + "\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333" + "\333\333\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\0\0\0\377\304\304\304\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" + "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" + "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377" + "\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\0\0\0\377\304\304" + "\304\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" + "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" + "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" + "GQG\377\0\0\0\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\0\0\0\377\304\304\304\377\231\231\231\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" + "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" + "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377\236\237\231\377" + "COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\0\0\0\377\304\304\304\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377" + "\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231" + "\231\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231" + "\231\377\231\231\231\377\231\231\231\377\231\231\231\377\231\231\231" + "\377\231\231\231\377\231\231\231\377GQG\377\0\0\0\377\236\237\231\377" + "\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333" + "\333\333\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\0\0\0\377\217\220\213\377GQG\377" + "GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377" + "GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377GQG\377" + "GQG\377GQG\377GQG\377GQG\377GQG\377\0\0\0\377\236\237\231\377\236\237" + "\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\0\0\0\377))(\377\"#\"\377\35\36\35\377\30" + "\30\27\377\24\25\24\377\21\21\20\377\16\16\16\377\13\13\13\377\11\11" + "\10\377\7\7\7\377\5\5\5\377\0\0\0\377\2\2\2\377\2\2\2\377\1\1\1\377\1" + "\1\1\377\1\1\1\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\236\237" + "\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\377\333\333\333\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377COC\377" + "\0\0\0\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\333\333\333\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377" + "\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236" + "\237\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237" + "\231\377\236\237\231\377\236\237\231\377\236\237\231\377\236\237\231" + "\377\236\237\231\377\236\237\231\377COC\377\0\0\0\377\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\377\236\237\231\377COC\377COC\377COC\377COC\377COC\377" + "COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377" + "COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377" + "COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377COC\377" + "COC\377COC\377COC\377COC\377COC\377COC\377COC\377\0\0\0\377\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\377\0\0\0\237\0\0\0\255\0\0\0\270\0\0\0\304\0\0" + "\0\315\0\0\0\324\0\0\0\334\0\0\0\342\0\0\0\350\0\0\0\354\0\0\0\360\0" + "\0\0\377\0\0\0\377\0\0\0\377\2\2\2\377\1\1\1\377\1\1\1\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\342\0\0\0\350\0\0\0\354" + "\0\0\0\360\0\0\0\376\2\2\2\377\1\1\1\377\1\1\1\377\0\0\0\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377" + "\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}; + + diff --git a/src/keyboard.c b/src/keyboard.c index e2f03ba1b..68dfefa24 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H diff --git a/src/keyboard.h b/src/keyboard.h index 0da203996..da0c21d57 100644 --- a/src/keyboard.h +++ b/src/keyboard.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_KEYBOARD_H diff --git a/src/main.c b/src/main.c index 2086ddb64..5757f0e1c 100644 --- a/src/main.c +++ b/src/main.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -54,15 +54,15 @@ #include "my_intl.h" #define MAIN_EVENT_MASK SubstructureNotifyMask|\ - StructureNotifyMask|\ - SubstructureRedirectMask|\ - ButtonPressMask|\ - ButtonReleaseMask|\ - PointerMotionMask|\ - PointerMotionHintMask|\ - FocusChangeMask|\ - PropertyChangeMask|\ - ColormapNotify + StructureNotifyMask|\ + SubstructureRedirectMask|\ + ButtonPressMask|\ + ButtonReleaseMask|\ + PointerMotionMask|\ + PointerMotionHintMask|\ + FocusChangeMask|\ + PropertyChangeMask|\ + ColormapNotify char *progname; Display *dpy; @@ -84,16 +84,16 @@ static int handleXError(Display * dpy, XErrorEvent * err) { switch (err->error_code) { - case BadAccess: - if(err->resourceid == root) - { - g_message("%s: Another window manager is running\n", progname); - exit(1); - } - break; - default: - DBG("X error ignored\n"); - break; + case BadAccess: + if(err->resourceid == root) + { + g_message("%s: Another window manager is running\n", progname); + exit(1); + } + break; + default: + DBG("X error ignored\n"); + break; } return 0; } @@ -161,20 +161,20 @@ static void handleSignal(int sig) switch (sig) { - case SIGINT: - case SIGTERM: - gtk_main_quit(); - quit = True; - break; - case SIGHUP: - reload = True; - break; - case SIGSEGV: - cleanUp(); - g_error(_("%s: Segmentation fault"), g_get_prgname()); - break; - default: - break; + case SIGINT: + case SIGTERM: + gtk_main_quit(); + quit = True; + break; + case SIGHUP: + reload = True; + break; + case SIGSEGV: + cleanUp(); + g_error(_("%s: Segmentation fault"), g_get_prgname()); + break; + default: + break; } } @@ -190,6 +190,7 @@ static int initialize(int argc, char **argv) progname = argv[0]; #ifdef ENABLE_NLS + bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); @@ -319,40 +320,40 @@ int main(int argc, char **argv) status = initialize(argc, argv); switch (status) { - case -1: - g_warning(_("%s: Another Window Manager is already running"), g_get_prgname()); - exit(1); - break; - case -2: - g_warning(_("%s: Missing data from default files"), g_get_prgname()); - exit(1); - break; - case 0: - if(daemon_mode) - { - switch (fork()) - { - case -1: - g_warning("fork() failed"); - exit(1); - break; - case 0: /* child */ - gtk_main(); - break; - default: /* parent */ - _exit(0); - break; - } - } - else + case -1: + g_warning(_("%s: Another Window Manager is already running"), g_get_prgname()); + exit(1); + break; + case -2: + g_warning(_("%s: Missing data from default files"), g_get_prgname()); + exit(1); + break; + case 0: + if(daemon_mode) + { + switch (fork()) { + case -1: + g_warning("fork() failed"); + exit(1); + break; + case 0: /* child */ gtk_main(); + break; + default: /* parent */ + _exit(0); + break; } - break; - default: - g_warning(_("%s: Unknown error occured"), g_get_prgname()); - exit(1); - break; + } + else + { + gtk_main(); + } + break; + default: + g_warning(_("%s: Unknown error occured"), g_get_prgname()); + exit(1); + break; } cleanUp(); DBG("Terminated\n"); diff --git a/src/main.h b/src/main.h index 1dc2b4aac..bc4f457ee 100644 --- a/src/main.h +++ b/src/main.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_MAIN_H diff --git a/src/menu.c b/src/menu.c index a9d69613c..674cb7e07 100644 --- a/src/menu.c +++ b/src/menu.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + Metacity - (c) 2001 Havoc Pennington xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -35,46 +35,46 @@ static GtkWidget *menu_open = NULL; static MenuItem menuitems[] = { - {MENU_OP_MAXIMIZE, NULL, N_("Ma_ximize")}, - {MENU_OP_UNMAXIMIZE, NULL, N_("Un_maximize")}, - {MENU_OP_MINIMIZE, NULL, N_("_Hide")}, - {MENU_OP_MINIMIZE_ALL, NULL, N_("Hide _all others")}, - {MENU_OP_UNMINIMIZE, NULL, N_("S_how")}, - {MENU_OP_SHADE, NULL, N_("_Shade")}, - {MENU_OP_UNSHADE, NULL, N_("Un_shade")}, - {MENU_OP_STICK, NULL, N_("S_tick")}, - {MENU_OP_UNSTICK, NULL, N_("Uns_tick")}, - {MENU_OP_MOVE, NULL, N_("_Move")}, - {MENU_OP_RESIZE, NULL, N_("_Resize")}, - {MENU_OP_SWITCH, NULL, N_("S_witch")}, - {0, NULL, NULL}, - {MENU_OP_DELETE, NULL, N_("_Close")}, + {MENU_OP_MAXIMIZE, NULL, N_("Ma_ximize")}, + {MENU_OP_UNMAXIMIZE, NULL, N_("Un_maximize")}, + {MENU_OP_MINIMIZE, NULL, N_("_Hide")}, + {MENU_OP_MINIMIZE_ALL, NULL, N_("Hide _all others")}, + {MENU_OP_UNMINIMIZE, NULL, N_("S_how")}, + {MENU_OP_SHADE, NULL, N_("_Shade")}, + {MENU_OP_UNSHADE, NULL, N_("Un_shade")}, + {MENU_OP_STICK, NULL, N_("S_tick")}, + {MENU_OP_UNSTICK, NULL, N_("Uns_tick")}, + {MENU_OP_MOVE, NULL, N_("_Move")}, + {MENU_OP_RESIZE, NULL, N_("_Resize")}, + {MENU_OP_SWITCH, NULL, N_("S_witch")}, + {0, NULL, NULL}, + {MENU_OP_DELETE, NULL, N_("_Close")}, #if 0 - {MENU_OP_DESTROY, NULL, N_("Destroy")}, - {0, NULL, NULL}, - {MENU_OP_WORKSPACES, NULL, N_("Wor_kspace")}, - {0, NULL, NULL}, + {MENU_OP_DESTROY, NULL, N_("Destroy")}, + {0, NULL, NULL}, + {MENU_OP_WORKSPACES, NULL, N_("Wor_kspace")}, + {0, NULL, NULL}, #endif - {MENU_OP_QUIT, NULL, N_("_Quit")}, - {MENU_OP_RESTART, NULL, N_("Restart")}, -}; + {MENU_OP_QUIT, NULL, N_("_Quit")}, + {MENU_OP_RESTART, NULL, N_("Restart")}, + }; static GtkToXEventFilterStatus menu_filter(XEvent * xevent, gpointer data) { switch (xevent->type) { - case KeyPress: - case KeyRelease: - case ButtonPress: - case ButtonRelease: - case MotionNotify: - case EnterNotify: - case LeaveNotify: - return XEV_FILTER_STOP; - break; - default: - return XEV_FILTER_CONTINUE; - break; + case KeyPress: + case KeyRelease: + case ButtonPress: + case ButtonRelease: + case MotionNotify: + case EnterNotify: + case LeaveNotify: + return XEV_FILTER_STOP; + break; + default: + return XEV_FILTER_CONTINUE; + break; } return XEV_FILTER_STOP; } diff --git a/src/menu.h b/src/menu.h index 3373984f5..b5c879590 100644 --- a/src/menu.h +++ b/src/menu.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + Metacity - (c) 2001 Havoc Pennington xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_MENU_H diff --git a/src/misc.c b/src/misc.c index ded1873a3..cfe20f2f0 100644 --- a/src/misc.c +++ b/src/misc.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H diff --git a/src/misc.h b/src/misc.h index 5ed108141..4a78ed33e 100644 --- a/src/misc.h +++ b/src/misc.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_MISC_H diff --git a/src/mywindow.c b/src/mywindow.c index 844f8c8f7..f10b93c25 100644 --- a/src/mywindow.c +++ b/src/mywindow.c @@ -3,18 +3,18 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + xfwm4 - (c) 2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H diff --git a/src/mywindow.h b/src/mywindow.h index 1b7f63e77..a47874700 100644 --- a/src/mywindow.h +++ b/src/mywindow.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_MYWINDOW_H diff --git a/src/parserc.c b/src/parserc.c index b927de255..a11a7f5c9 100644 --- a/src/parserc.c +++ b/src/parserc.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H diff --git a/src/parserc.h b/src/parserc.h index beab976be..1021e4093 100644 --- a/src/parserc.h +++ b/src/parserc.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_PARSERC_H diff --git a/src/pixmap.c b/src/pixmap.c index 0200bd38b..635cc17d0 100644 --- a/src/pixmap.c +++ b/src/pixmap.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H diff --git a/src/pixmap.h b/src/pixmap.h index 439884257..276bdfc6c 100644 --- a/src/pixmap.h +++ b/src/pixmap.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_PIXMAP_H diff --git a/src/session.c b/src/session.c index 821a6da34..f4c35b3b1 100644 --- a/src/session.c +++ b/src/session.c @@ -87,7 +87,7 @@ static void my_free_string_list(gchar ** list, gint n) } } -/* +/* 2-pass function to compute new string length, allocate memory and finally copy string - Returned value must be freed - @@ -107,11 +107,15 @@ static gchar *escape_quote(gchar * s) while(*idx1) { if(*(idx1++) == '"') + { nbquotes++; + } } /* If there is no quote in the string, return it */ if(!nbquotes) + { return (g_strdup(s)); + } /* Or else, allocate memory for the new string */ ns = g_new(gchar, lg + nbquotes + 1); @@ -136,7 +140,7 @@ static gchar *escape_quote(gchar * s) return ns; } -/* +/* single-pass function to replace backslash+quotes by quotes. - Returned value must be freed - diff --git a/src/session.h b/src/session.h index bcdf71539..d7bb046d3 100644 --- a/src/session.h +++ b/src/session.h @@ -11,9 +11,9 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - + xfwm4 - (c) 2003 Olivier Fourdan - + */ #ifndef INC_SESSION_H diff --git a/src/settings.c b/src/settings.c index 9b27cc708..84b349590 100644 --- a/src/settings.c +++ b/src/settings.c @@ -3,16 +3,16 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan */ @@ -51,40 +51,40 @@ static void set_settings_margin(int idx, int value) switch (idx) { - case MARGIN_LEFT: - case MARGIN_RIGHT: - if(value < 0) - { - val = 0; - } - else if(value > gdk_screen_width() / 4) - { - val = gdk_screen_width() / 4; - } - else - { - val = value; - } - params.xfwm_margins[idx] = val; - break; - case MARGIN_TOP: - case MARGIN_BOTTOM: - if(value < 0) - { - val = 0; - } - else if(value > gdk_screen_height() / 4) - { - val = gdk_screen_height() / 4; - } - else - { - val = value; - } - params.xfwm_margins[idx] = val; - break; - default: - break; + case MARGIN_LEFT: + case MARGIN_RIGHT: + if(value < 0) + { + val = 0; + } + else if(value > gdk_screen_width() / 4) + { + val = gdk_screen_width() / 4; + } + else + { + val = value; + } + params.xfwm_margins[idx] = val; + break; + case MARGIN_TOP: + case MARGIN_BOTTOM: + if(value < 0) + { + val = 0; + } + else if(value > gdk_screen_height() / 4) + { + val = gdk_screen_height() / 4; + } + else + { + val = value; + } + params.xfwm_margins[idx] = val; + break; + default: + break; } } @@ -94,127 +94,127 @@ static void notify_cb(const char *name, const char *channel_name, McsAction acti { switch (action) { - case MCS_ACTION_NEW: - /* The following is to reduce initial startup time and reloads */ - if(!mcs_initted) + case MCS_ACTION_NEW: + /* The following is to reduce initial startup time and reloads */ + if(!mcs_initted) + { + return; + } + case MCS_ACTION_CHANGED: + if(setting->type == MCS_TYPE_INT) + { + if(!strcmp(name, "Xfwm/ClickToFocus")) { - return; + params.click_to_focus = setting->data.v_int; } - case MCS_ACTION_CHANGED: - if(setting->type == MCS_TYPE_INT) + else if(!strcmp(name, "Xfwm/FocusNewWindow")) { - if(!strcmp(name, "Xfwm/ClickToFocus")) - { - params.click_to_focus = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/FocusNewWindow")) - { - params.focus_new = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/FocusRaise")) - { - params.raise_on_focus = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/RaiseDelay")) - { - params.raise_delay = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/RaiseOnClick")) - { - params.raise_on_click = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/SnapToBorder")) - { - params.snap_to_border = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/SnapToWindows")) - { - params.snap_to_windows = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/SnapWidth")) - { - params.snap_width = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/WrapWorkspaces")) - { - params.wrap_workspaces = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/BoxMove")) - { - params.box_move = setting->data.v_int; - } - else if(!strcmp(name, "Xfwm/BoxResize")) - { - params.box_resize = setting->data.v_int; - } + params.focus_new = setting->data.v_int; } - else if(setting->type == MCS_TYPE_STRING) + else if(!strcmp(name, "Xfwm/FocusRaise")) { - if(!strcmp(name, "Xfwm/DblClickAction")) - { - reloadSettings(UPDATE_NONE); - } - else if(!strcmp(name, "Xfwm/KeyThemeName")) - { - reloadSettings(UPDATE_KEYGRABS); - } - else if(!strcmp(name, "Xfwm/ThemeName")) - { - reloadSettings(UPDATE_GRAVITY | UPDATE_CACHE); - } - else if(!strcmp(name, "Xfwm/ButtonLayout")) - { - reloadSettings(UPDATE_FRAME | UPDATE_CACHE); - } - if(!strcmp(name, "Xfwm/TitleAlign")) - { - reloadSettings(UPDATE_FRAME | UPDATE_CACHE); - } - if(!strcmp(name, "Xfwm/TitleFont")) - { - reloadSettings(UPDATE_FRAME | UPDATE_CACHE); - } + params.raise_on_focus = setting->data.v_int; } - break; - case MCS_ACTION_DELETED: - default: - break; + else if(!strcmp(name, "Xfwm/RaiseDelay")) + { + params.raise_delay = setting->data.v_int; + } + else if(!strcmp(name, "Xfwm/RaiseOnClick")) + { + params.raise_on_click = setting->data.v_int; + } + else if(!strcmp(name, "Xfwm/SnapToBorder")) + { + params.snap_to_border = setting->data.v_int; + } + else if(!strcmp(name, "Xfwm/SnapToWindows")) + { + params.snap_to_windows = setting->data.v_int; + } + else if(!strcmp(name, "Xfwm/SnapWidth")) + { + params.snap_width = setting->data.v_int; + } + else if(!strcmp(name, "Xfwm/WrapWorkspaces")) + { + params.wrap_workspaces = setting->data.v_int; + } + else if(!strcmp(name, "Xfwm/BoxMove")) + { + params.box_move = setting->data.v_int; + } + else if(!strcmp(name, "Xfwm/BoxResize")) + { + params.box_resize = setting->data.v_int; + } + } + else if(setting->type == MCS_TYPE_STRING) + { + if(!strcmp(name, "Xfwm/DblClickAction")) + { + reloadSettings(UPDATE_NONE); + } + else if(!strcmp(name, "Xfwm/KeyThemeName")) + { + reloadSettings(UPDATE_KEYGRABS); + } + else if(!strcmp(name, "Xfwm/ThemeName")) + { + reloadSettings(UPDATE_GRAVITY | UPDATE_CACHE); + } + else if(!strcmp(name, "Xfwm/ButtonLayout")) + { + reloadSettings(UPDATE_FRAME | UPDATE_CACHE); + } + if(!strcmp(name, "Xfwm/TitleAlign")) + { + reloadSettings(UPDATE_FRAME | UPDATE_CACHE); + } + if(!strcmp(name, "Xfwm/TitleFont")) + { + reloadSettings(UPDATE_FRAME | UPDATE_CACHE); + } + } + break; + case MCS_ACTION_DELETED: + default: + break; } } else if(!g_ascii_strcasecmp(CHANNEL2, channel_name)) { switch (action) { - case MCS_ACTION_NEW: - /* The following is to reduce initial startup time and reloads */ - if(!mcs_initted) + case MCS_ACTION_NEW: + /* The following is to reduce initial startup time and reloads */ + if(!mcs_initted) + { + return; + } + case MCS_ACTION_CHANGED: + if(setting->type == MCS_TYPE_INT) + { + if(!strcmp(name, "Xfwm/LeftMargin")) + { + set_settings_margin(MARGIN_LEFT, setting->data.v_int); + } + else if(!strcmp(name, "Xfwm/RightMargin")) + { + set_settings_margin(MARGIN_RIGHT, setting->data.v_int); + } + else if(!strcmp(name, "Xfwm/BottomMargin")) { - return; + set_settings_margin(MARGIN_BOTTOM, setting->data.v_int); } - case MCS_ACTION_CHANGED: - if(setting->type == MCS_TYPE_INT) + else if(!strcmp(name, "Xfwm/TopMargin")) { - if(!strcmp(name, "Xfwm/LeftMargin")) - { - set_settings_margin(MARGIN_LEFT, setting->data.v_int); - } - else if(!strcmp(name, "Xfwm/RightMargin")) - { - set_settings_margin(MARGIN_RIGHT, setting->data.v_int); - } - else if(!strcmp(name, "Xfwm/BottomMargin")) - { - set_settings_margin(MARGIN_BOTTOM, setting->data.v_int); - } - else if(!strcmp(name, "Xfwm/TopMargin")) - { - set_settings_margin(MARGIN_TOP, setting->data.v_int); - } + set_settings_margin(MARGIN_TOP, setting->data.v_int); } - break; - case MCS_ACTION_DELETED: - default: - break; + } + break; + case MCS_ACTION_DELETED: + default: + break; } } } @@ -697,123 +697,123 @@ static gboolean loadKeyBindings(Settings rc[]) gboolean loadSettings(void) { Settings rc[] = { - /* Do not chnage the order of the following parameters */ - {"active_text_color", NULL, FALSE}, - {"inactive_text_color", NULL, FALSE}, - {"active_border_color", NULL, FALSE}, - {"inactive_border_color", NULL, FALSE}, - {"active_color_1", NULL, FALSE}, - {"active_hilight_1", NULL, FALSE}, - {"active_shadow_1", NULL, FALSE}, - {"active_mid_1", NULL, FALSE}, - {"active_color_2", NULL, FALSE}, - {"active_hilight_2", NULL, FALSE}, - {"active_shadow_2", NULL, FALSE}, - {"active_mid_2", NULL, FALSE}, - {"inactive_color_1", NULL, FALSE}, - {"inactive_hilight_1", NULL, FALSE}, - {"inactive_shadow_1", NULL, FALSE}, - {"inactive_mid_1", NULL, FALSE}, - {"inactive_color_2", NULL, FALSE}, - {"inactive_hilight_2", NULL, FALSE}, - {"inactive_shadow_2", NULL, FALSE}, - {"inactive_mid_2", NULL, FALSE}, - /* You can change the order of the following parameters */ - {"box_move", NULL, TRUE}, - {"box_resize", NULL, TRUE}, - {"button_layout", NULL, TRUE}, - {"button_offset", NULL, TRUE}, - {"button_spacing", NULL, TRUE}, - {"click_to_focus", NULL, TRUE}, - {"dbl_click_time", NULL, TRUE}, - {"double_click_action", NULL, TRUE}, - {"focus_hint", NULL, TRUE}, - {"focus_new", NULL, TRUE}, - {"full_width_title", NULL, TRUE}, - {"keytheme", NULL, TRUE}, - {"margin_left", NULL, FALSE}, - {"margin_right", NULL, FALSE}, - {"margin_bottom", NULL, FALSE}, - {"margin_top", NULL, FALSE}, - {"raise_delay", NULL, TRUE}, - {"raise_on_click", NULL, TRUE}, - {"raise_on_focus", NULL, TRUE}, - {"snap_to_border", NULL, TRUE}, - {"snap_to_windows", NULL, TRUE}, - {"snap_width", NULL, TRUE}, - {"theme", NULL, TRUE}, - {"title_alignment", NULL, TRUE}, - {"title_font", NULL, FALSE}, - {"title_horizontal_offset", NULL, TRUE}, - {"title_shadow_active", NULL, TRUE}, - {"title_shadow_inactive", NULL, TRUE}, - {"title_vertical_offset_active", NULL, TRUE}, - {"title_vertical_offset_inactive", NULL, TRUE}, - {"workspace_count", NULL, TRUE}, - {"wrap_workspaces", NULL, TRUE}, - /* Keys */ - {"add_workspace_key", NULL, TRUE}, - {"close_window_key", NULL, TRUE}, - {"cycle_windows_key", NULL, TRUE}, - {"del_workspace_key", NULL, TRUE}, - {"hide_window_key", NULL, TRUE}, - {"maximize_horiz_key", NULL, TRUE}, - {"maximize_vert_key", NULL, TRUE}, - {"maximize_window_key", NULL, TRUE}, - {"move_window_down_key", NULL, TRUE}, - {"move_window_left_key", NULL, TRUE}, - {"move_window_next_workspace_key", NULL, TRUE}, - {"move_window_prev_workspace_key", NULL, TRUE}, - {"move_window_right_key", NULL, TRUE}, - {"move_window_up_key", NULL, TRUE}, - {"move_window_workspace_1_key", NULL, TRUE}, - {"move_window_workspace_2_key", NULL, TRUE}, - {"move_window_workspace_3_key", NULL, TRUE}, - {"move_window_workspace_4_key", NULL, TRUE}, - {"move_window_workspace_5_key", NULL, TRUE}, - {"move_window_workspace_6_key", NULL, TRUE}, - {"move_window_workspace_7_key", NULL, TRUE}, - {"move_window_workspace_8_key", NULL, TRUE}, - {"move_window_workspace_9_key", NULL, TRUE}, - {"next_workspace_key", NULL, TRUE}, - {"prev_workspace_key", NULL, TRUE}, - {"resize_window_down_key", NULL, TRUE}, - {"resize_window_left_key", NULL, TRUE}, - {"resize_window_right_key", NULL, TRUE}, - {"resize_window_up_key", NULL, TRUE}, - {"shade_window_key", NULL, TRUE}, - {"stick_window_key", NULL, TRUE}, - {"workspace_1_key", NULL, TRUE}, - {"workspace_2_key", NULL, TRUE}, - {"workspace_3_key", NULL, TRUE}, - {"workspace_4_key", NULL, TRUE}, - {"workspace_5_key", NULL, TRUE}, - {"workspace_6_key", NULL, TRUE}, - {"workspace_7_key", NULL, TRUE}, - {"workspace_8_key", NULL, TRUE}, - {"workspace_9_key", NULL, TRUE}, - {"shortcut_1_key", NULL, TRUE}, - {"shortcut_2_key", NULL, TRUE}, - {"shortcut_3_key", NULL, TRUE}, - {"shortcut_4_key", NULL, TRUE}, - {"shortcut_5_key", NULL, TRUE}, - {"shortcut_6_key", NULL, TRUE}, - {"shortcut_7_key", NULL, TRUE}, - {"shortcut_8_key", NULL, TRUE}, - {"shortcut_9_key", NULL, TRUE}, - {"shortcut_10_key", NULL, TRUE}, - {"shortcut_1_exec", NULL, FALSE}, - {"shortcut_2_exec", NULL, FALSE}, - {"shortcut_3_exec", NULL, FALSE}, - {"shortcut_4_exec", NULL, FALSE}, - {"shortcut_5_exec", NULL, FALSE}, - {"shortcut_6_exec", NULL, FALSE}, - {"shortcut_7_exec", NULL, FALSE}, - {"shortcut_8_exec", NULL, FALSE}, - {"shortcut_9_exec", NULL, FALSE}, - {"shortcut_10_exec", NULL, FALSE}, - {NULL, NULL, FALSE} - }; + /* Do not chnage the order of the following parameters */ + {"active_text_color", NULL, FALSE}, + {"inactive_text_color", NULL, FALSE}, + {"active_border_color", NULL, FALSE}, + {"inactive_border_color", NULL, FALSE}, + {"active_color_1", NULL, FALSE}, + {"active_hilight_1", NULL, FALSE}, + {"active_shadow_1", NULL, FALSE}, + {"active_mid_1", NULL, FALSE}, + {"active_color_2", NULL, FALSE}, + {"active_hilight_2", NULL, FALSE}, + {"active_shadow_2", NULL, FALSE}, + {"active_mid_2", NULL, FALSE}, + {"inactive_color_1", NULL, FALSE}, + {"inactive_hilight_1", NULL, FALSE}, + {"inactive_shadow_1", NULL, FALSE}, + {"inactive_mid_1", NULL, FALSE}, + {"inactive_color_2", NULL, FALSE}, + {"inactive_hilight_2", NULL, FALSE}, + {"inactive_shadow_2", NULL, FALSE}, + {"inactive_mid_2", NULL, FALSE}, + /* You can change the order of the following parameters */ + {"box_move", NULL, TRUE}, + {"box_resize", NULL, TRUE}, + {"button_layout", NULL, TRUE}, + {"button_offset", NULL, TRUE}, + {"button_spacing", NULL, TRUE}, + {"click_to_focus", NULL, TRUE}, + {"dbl_click_time", NULL, TRUE}, + {"double_click_action", NULL, TRUE}, + {"focus_hint", NULL, TRUE}, + {"focus_new", NULL, TRUE}, + {"full_width_title", NULL, TRUE}, + {"keytheme", NULL, TRUE}, + {"margin_left", NULL, FALSE}, + {"margin_right", NULL, FALSE}, + {"margin_bottom", NULL, FALSE}, + {"margin_top", NULL, FALSE}, + {"raise_delay", NULL, TRUE}, + {"raise_on_click", NULL, TRUE}, + {"raise_on_focus", NULL, TRUE}, + {"snap_to_border", NULL, TRUE}, + {"snap_to_windows", NULL, TRUE}, + {"snap_width", NULL, TRUE}, + {"theme", NULL, TRUE}, + {"title_alignment", NULL, TRUE}, + {"title_font", NULL, FALSE}, + {"title_horizontal_offset", NULL, TRUE}, + {"title_shadow_active", NULL, TRUE}, + {"title_shadow_inactive", NULL, TRUE}, + {"title_vertical_offset_active", NULL, TRUE}, + {"title_vertical_offset_inactive", NULL, TRUE}, + {"workspace_count", NULL, TRUE}, + {"wrap_workspaces", NULL, TRUE}, + /* Keys */ + {"add_workspace_key", NULL, TRUE}, + {"close_window_key", NULL, TRUE}, + {"cycle_windows_key", NULL, TRUE}, + {"del_workspace_key", NULL, TRUE}, + {"hide_window_key", NULL, TRUE}, + {"maximize_horiz_key", NULL, TRUE}, + {"maximize_vert_key", NULL, TRUE}, + {"maximize_window_key", NULL, TRUE}, + {"move_window_down_key", NULL, TRUE}, + {"move_window_left_key", NULL, TRUE}, + {"move_window_next_workspace_key", NULL, TRUE}, + {"move_window_prev_workspace_key", NULL, TRUE}, + {"move_window_right_key", NULL, TRUE}, + {"move_window_up_key", NULL, TRUE}, + {"move_window_workspace_1_key", NULL, TRUE}, + {"move_window_workspace_2_key", NULL, TRUE}, + {"move_window_workspace_3_key", NULL, TRUE}, + {"move_window_workspace_4_key", NULL, TRUE}, + {"move_window_workspace_5_key", NULL, TRUE}, + {"move_window_workspace_6_key", NULL, TRUE}, + {"move_window_workspace_7_key", NULL, TRUE}, + {"move_window_workspace_8_key", NULL, TRUE}, + {"move_window_workspace_9_key", NULL, TRUE}, + {"next_workspace_key", NULL, TRUE}, + {"prev_workspace_key", NULL, TRUE}, + {"resize_window_down_key", NULL, TRUE}, + {"resize_window_left_key", NULL, TRUE}, + {"resize_window_right_key", NULL, TRUE}, + {"resize_window_up_key", NULL, TRUE}, + {"shade_window_key", NULL, TRUE}, + {"stick_window_key", NULL, TRUE}, + {"workspace_1_key", NULL, TRUE}, + {"workspace_2_key", NULL, TRUE}, + {"workspace_3_key", NULL, TRUE}, + {"workspace_4_key", NULL, TRUE}, + {"workspace_5_key", NULL, TRUE}, + {"workspace_6_key", NULL, TRUE}, + {"workspace_7_key", NULL, TRUE}, + {"workspace_8_key", NULL, TRUE}, + {"workspace_9_key", NULL, TRUE}, + {"shortcut_1_key", NULL, TRUE}, + {"shortcut_2_key", NULL, TRUE}, + {"shortcut_3_key", NULL, TRUE}, + {"shortcut_4_key", NULL, TRUE}, + {"shortcut_5_key", NULL, TRUE}, + {"shortcut_6_key", NULL, TRUE}, + {"shortcut_7_key", NULL, TRUE}, + {"shortcut_8_key", NULL, TRUE}, + {"shortcut_9_key", NULL, TRUE}, + {"shortcut_10_key", NULL, TRUE}, + {"shortcut_1_exec", NULL, FALSE}, + {"shortcut_2_exec", NULL, FALSE}, + {"shortcut_3_exec", NULL, FALSE}, + {"shortcut_4_exec", NULL, FALSE}, + {"shortcut_5_exec", NULL, FALSE}, + {"shortcut_6_exec", NULL, FALSE}, + {"shortcut_7_exec", NULL, FALSE}, + {"shortcut_8_exec", NULL, FALSE}, + {"shortcut_9_exec", NULL, FALSE}, + {"shortcut_10_exec", NULL, FALSE}, + {NULL, NULL, FALSE} + }; GValue tmp_val = { 0, }; DBG("entering loadSettings\n"); diff --git a/src/settings.h b/src/settings.h index abc126b01..5dd53b1b5 100644 --- a/src/settings.h +++ b/src/settings.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_SETTINGS_H diff --git a/src/spinning_cursor.c b/src/spinning_cursor.c index 41dbb4a92..9793f415d 100644 --- a/src/spinning_cursor.c +++ b/src/spinning_cursor.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + mozilla - (c) 1998 mozilla.org xfwm4 - (c) 2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -25,33 +25,35 @@ #include <X11/Xlib.h> #include "main.h" -static const unsigned char xlib_spinning_bits[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, - 0x7c, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x00, 0x00, - 0xfc, 0x3b, 0x00, 0x00, 0x7c, 0x38, 0x00, 0x00, 0x6c, 0x54, 0x00, 0x00, - 0xc4, 0xdc, 0x00, 0x00, 0xc0, 0x44, 0x00, 0x00, 0x80, 0x39, 0x00, 0x00, - 0x80, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 -}; +static const unsigned char xlib_spinning_bits[] = + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, + 0x7c, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x00, 0x00, + 0xfc, 0x3b, 0x00, 0x00, 0x7c, 0x38, 0x00, 0x00, 0x6c, 0x54, 0x00, 0x00, + 0xc4, 0xdc, 0x00, 0x00, 0xc0, 0x44, 0x00, 0x00, 0x80, 0x39, 0x00, 0x00, + 0x80, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + }; -static const unsigned char xlib_spinning_mask_bits[] = { - 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, - 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, - 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x3b, 0x00, 0x00, - 0xfe, 0x7f, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, - 0xee, 0xff, 0x01, 0x00, 0xe4, 0xff, 0x00, 0x00, 0xc0, 0x7f, 0x00, 0x00, - 0xc0, 0x7f, 0x00, 0x00, 0x80, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 -}; +static const unsigned char xlib_spinning_mask_bits[] = + { + 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, + 0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, + 0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x3b, 0x00, 0x00, + 0xfe, 0x7f, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, + 0xee, 0xff, 0x01, 0x00, 0xe4, 0xff, 0x00, 0x00, 0xc0, 0x7f, 0x00, 0x00, + 0xc0, 0x7f, 0x00, 0x00, 0x80, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + }; Cursor cursorCreateSpinning(Display * dpy, Window window) { diff --git a/src/spinning_cursor.h b/src/spinning_cursor.h index e1297d69c..9bbdc2d59 100644 --- a/src/spinning_cursor.h +++ b/src/spinning_cursor.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + Metacity - (c) 2003 Havoc Pennington xfwm4 - (c) 2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H diff --git a/src/startup_notification.c b/src/startup_notification.c index 57598aaee..a556020e8 100644 --- a/src/startup_notification.c +++ b/src/startup_notification.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + Metacity - (c) 2003 Havoc Pennington xfwm4 - (c) 2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -188,21 +188,21 @@ static void sn_screen_event(SnMonitorEvent * event, void *user_data) switch (sn_monitor_event_get_type(event)) { - case SN_MONITOR_EVENT_INITIATED: - wmclass = sn_startup_sequence_get_wmclass(sequence); - sn_add_sequence(sequence); - break; + case SN_MONITOR_EVENT_INITIATED: + wmclass = sn_startup_sequence_get_wmclass(sequence); + sn_add_sequence(sequence); + break; - case SN_MONITOR_EVENT_COMPLETED: - sn_remove_sequence(sn_monitor_event_get_startup_sequence(event)); - break; + case SN_MONITOR_EVENT_COMPLETED: + sn_remove_sequence(sn_monitor_event_get_startup_sequence(event)); + break; - case SN_MONITOR_EVENT_CHANGED: - break; + case SN_MONITOR_EVENT_CHANGED: + break; - case SN_MONITOR_EVENT_CANCELED: - default: - break; + case SN_MONITOR_EVENT_CANCELED: + default: + break; } } diff --git a/src/startup_notification.h b/src/startup_notification.h index 3f4401cfc..be3e8e798 100644 --- a/src/startup_notification.h +++ b/src/startup_notification.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + Metacity - (c) 2003 Havoc Pennington xfwm4 - (c) 2003 Olivier Fourdan - + */ #ifndef INC_STARTUP_NOTIFICATION_H diff --git a/src/tabwin.c b/src/tabwin.c index a06e54726..c08fa4f84 100644 --- a/src/tabwin.c +++ b/src/tabwin.c @@ -3,18 +3,18 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + xfwm4 - (c) 2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H diff --git a/src/tabwin.h b/src/tabwin.h index 5f9fe7c07..761a7ce64 100644 --- a/src/tabwin.h +++ b/src/tabwin.h @@ -3,18 +3,18 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + xfwm4 - (c) 2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H diff --git a/src/workspaces.c b/src/workspaces.c index 264fd761b..0e316ca41 100644 --- a/src/workspaces.c +++ b/src/workspaces.c @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifdef HAVE_CONFIG_H @@ -37,7 +37,7 @@ void workspaceSwitch(int new_ws, Client * c2) { Client *c, *f = NULL; - Client *last, *previous; + Client *previous; unsigned long data[1]; int i; XEvent an_event; @@ -111,7 +111,8 @@ void workspaceSwitch(int new_ws, Client * c2) XSync(dpy, 0); if(!params.click_to_focus) { - while(XCheckTypedEvent(dpy, EnterNotify, &an_event)); + while(XCheckTypedEvent(dpy, EnterNotify, &an_event)) + ; } clientSetFocus(f, True); } diff --git a/src/workspaces.h b/src/workspaces.h index ef42883cc..ab6ab5a1e 100644 --- a/src/workspaces.h +++ b/src/workspaces.h @@ -3,19 +3,19 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; You may only use version 2 of the License, you have no option to use any other version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - + oroborus - (c) 2001 Ken Lynch xfwm4 - (c) 2002-2003 Olivier Fourdan - + */ #ifndef INC_WORKSPACES_H |