This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.
The branch, next has been updated
via 0da2b6e928644a5360aec6ac03540cd747be5060 (commit)
from e47413eefd28cab5e4591394b5062dcbcf162ce7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/0da2b6e928644a5360aec6ac03540cd747be5060
commit 0da2b6e928644a5360aec6ac03540cd747be5060
Author: Rodolfo GarcÃa Peñas (kix) <[email protected]>
Date: Wed Mar 27 00:51:59 2013 +0100
Removed old window clip balloon code
This code was used to create the window where the workspace name was showed
to the user. The code now use the standar balloon system, therefore this
code
is not used anymore and can be removed.
diff --git a/src/defaults.c b/src/defaults.c
index c72f623..51de3f1 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -2394,12 +2394,7 @@ static int setIconTile(WScreen * scr, WDefaultEntry *
entry, WTexture ** texture
scr->icon_back_texture = wTextureMakeSolid(scr,
&((*texture)->any.color));
- if (scr->clip_balloon)
- XSetWindowBackground(dpy, scr->clip_balloon,
(*texture)->any.color.pixel);
-
- /*
- * Free the texture as nobody else will use it, nor refer to it.
- */
+ /* Free the texture as nobody else will use it, nor refer to it. */
if (!entry->addr)
wTextureDestroy(scr, *texture);
diff --git a/src/screen.c b/src/screen.c
index 4911b1c..e8cc5a9 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -465,17 +465,6 @@ static void createInternalWindows(WScreen * scr)
XCreateWindow(dpy, scr->root_win, 0, 0, wPreferences.icon_size,
wPreferences.icon_size, 0, scr->w_depth,
CopyFromParent, scr->w_visual, vmask, &attribs);
- /* workspace name balloon for clip */
- vmask = CWBackPixel | CWSaveUnder | CWOverrideRedirect | CWColormap |
CWBorderPixel;
- attribs.save_under = True;
- attribs.override_redirect = True;
- attribs.colormap = scr->w_colormap;
- attribs.background_pixel = scr->icon_back_texture->normal.pixel;
- attribs.border_pixel = 0; /* do not care */
- scr->clip_balloon =
- XCreateWindow(dpy, scr->root_win, 0, 0, 10, 10, 0, scr->w_depth,
- CopyFromParent, scr->w_visual, vmask, &attribs);
-
/* workspace name */
vmask = CWBackPixel | CWSaveUnder | CWOverrideRedirect | CWColormap |
CWBorderPixel;
attribs.save_under = True;
@@ -486,12 +475,6 @@ static void createInternalWindows(WScreen * scr)
scr->workspace_name =
XCreateWindow(dpy, scr->root_win, 0, 0, 10, 10, 0, scr->w_depth,
CopyFromParent, scr->w_visual, vmask, &attribs);
-
- /*
- * If the window is clicked without having ButtonPress selected, the
- * resulting event will have event.xbutton.window == root.
- */
- XSelectInput(dpy, scr->clip_balloon, ButtonPressMask);
}
/*
diff --git a/src/screen.h b/src/screen.h
index 5f44555..15fd4f8 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -229,8 +229,6 @@ typedef struct _WScreen {
WAppIconChain *global_icons; /* for omnipresent icons chain in clip
*/
int global_icon_count; /* How many global icons do we have */
- Window clip_balloon; /* window for workspace name */
-
int keymove_tick;
struct RContext *rcontext; /* wrlib context */
-----------------------------------------------------------------------
Summary of changes:
src/defaults.c | 7 +------
src/screen.c | 17 -----------------
src/screen.h | 2 --
3 files changed, 1 insertions(+), 25 deletions(-)
repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
--
wmaker-crm.git ("The Window Maker window manager")
--
To unsubscribe, send mail to [email protected].