Wed Sep 22 20:07:31 PDT 1999
(Raster) disabel pagers and icobnoxes form going into groups - ok theres a bug restoring them and i've had enough of looking at that code.. so i simply disabled it. much simpler. SVN revision: 378
This commit is contained in:
parent
88276aef9c
commit
e18fe0a4c9
|
@ -2242,3 +2242,12 @@ Wed Sep 22 18:21:40 PDT 1999
|
||||||
(KainX)
|
(KainX)
|
||||||
|
|
||||||
Ergh...let's not go freeing image classes willy-nilly, shall we?
|
Ergh...let's not go freeing image classes willy-nilly, shall we?
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Wed Sep 22 20:07:31 PDT 1999
|
||||||
|
(Raster)
|
||||||
|
|
||||||
|
disabel pagers and icobnoxes form going into groups - ok theres a bug
|
||||||
|
restoring them and i've had enough of looking at that code.. so i simply
|
||||||
|
disabled it. much simpler.
|
||||||
|
|
|
@ -1076,6 +1076,9 @@ DrawEwinShape(EWin * ewin, int md, int x, int y, int w, int h, char firstlast)
|
||||||
|
|
||||||
if (firstlast == 0)
|
if (firstlast == 0)
|
||||||
{
|
{
|
||||||
|
XGCValues gcv;
|
||||||
|
GC gc;
|
||||||
|
|
||||||
if (ewin_pi)
|
if (ewin_pi)
|
||||||
EDestroyPixImg(ewin_pi);
|
EDestroyPixImg(ewin_pi);
|
||||||
if (root_pi)
|
if (root_pi)
|
||||||
|
@ -1098,7 +1101,10 @@ DrawEwinShape(EWin * ewin, int md, int x, int y, int w, int h, char firstlast)
|
||||||
EDBUG_RETURN_;
|
EDBUG_RETURN_;
|
||||||
}
|
}
|
||||||
EFillPixmap(root.win, root_pi->pmap, x1, y1, ewin->w, ewin->h);
|
EFillPixmap(root.win, root_pi->pmap, x1, y1, ewin->w, ewin->h);
|
||||||
EFillPixmap(ewin->win, ewin_pi->pmap, 0, 0, ewin->w, ewin->h);
|
gc = XCreateGC(disp, root_pi->pmap, 0, &gcv);
|
||||||
|
XCopyArea(disp, root_pi->pmap, ewin_pi->pmap, gc, x1, y1,
|
||||||
|
ewin->w, ewin->h, 0, 0);
|
||||||
|
XFreeGC(disp, gc);
|
||||||
EBlendPixImg(ewin, root_pi, ewin_pi, draw_pi, x, y,
|
EBlendPixImg(ewin, root_pi, ewin_pi, draw_pi, x, y,
|
||||||
ewin->w, ewin->h);
|
ewin->w, ewin->h);
|
||||||
}
|
}
|
||||||
|
|
30
src/groups.c
30
src/groups.c
|
@ -86,7 +86,11 @@ BuildWindowGroup(EWin ** ewins, int num)
|
||||||
AddItem(g, NULL, g->index, LIST_TYPE_GROUP);
|
AddItem(g, NULL, g->index, LIST_TYPE_GROUP);
|
||||||
|
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
AddEwinToGroup(ewins[i], g);
|
{
|
||||||
|
/* disable iconboxes and pagers to go into groups */
|
||||||
|
if (!((ewins[i]->ibox) || (ewins[i]->pager)))
|
||||||
|
AddEwinToGroup(ewins[i], g);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -96,16 +100,20 @@ AddEwinToGroup(EWin * ewin, Group * g)
|
||||||
|
|
||||||
if (ewin && g)
|
if (ewin && g)
|
||||||
{
|
{
|
||||||
for (i = 0; i < ewin->num_groups; i++)
|
/* disable iconboxes and pagers to go into groups */
|
||||||
if (ewin->groups[i] == g)
|
if (!((ewin->ibox) || (ewin->pager)))
|
||||||
return;
|
{
|
||||||
ewin->num_groups++;
|
for (i = 0; i < ewin->num_groups; i++)
|
||||||
ewin->groups = Erealloc(ewin->groups, sizeof(Group *) * ewin->num_groups);
|
if (ewin->groups[i] == g)
|
||||||
ewin->groups[ewin->num_groups - 1] = g;
|
return;
|
||||||
g->num_members++;
|
ewin->num_groups++;
|
||||||
g->members = Erealloc(g->members, sizeof(EWin *) * g->num_members);
|
ewin->groups = Erealloc(ewin->groups, sizeof(Group *) * ewin->num_groups);
|
||||||
g->members[g->num_members - 1] = ewin;
|
ewin->groups[ewin->num_groups - 1] = g;
|
||||||
RememberImportantInfoForEwin(ewin);
|
g->num_members++;
|
||||||
|
g->members = Erealloc(g->members, sizeof(EWin *) * g->num_members);
|
||||||
|
g->members[g->num_members - 1] = ewin;
|
||||||
|
RememberImportantInfoForEwin(ewin);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
73
src/main.c
73
src/main.c
|
@ -1,10 +1,14 @@
|
||||||
|
|
||||||
#include "E.h"
|
#include "E.h"
|
||||||
#include "timestamp.h"
|
#include "timestamp.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
int i, num;
|
||||||
|
Button **lst;
|
||||||
|
Background *bg;
|
||||||
|
ECursor *ec = NULL;
|
||||||
|
|
||||||
/* This function runs all the setup for startup, and then
|
/* This function runs all the setup for startup, and then
|
||||||
* proceeds into the primary event loop at the end.
|
* proceeds into the primary event loop at the end.
|
||||||
*/
|
*/
|
||||||
|
@ -182,12 +186,6 @@ main(int argc, char **argv)
|
||||||
desks.desk[0].viewable = 0;
|
desks.desk[0].viewable = 0;
|
||||||
/* now we're going to load the configuration/theme */
|
/* now we're going to load the configuration/theme */
|
||||||
LoadEConfig(themepath);
|
LoadEConfig(themepath);
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for (i = 0; i < child_count; i++)
|
|
||||||
kill(e_children[i], SIGCONT);
|
|
||||||
}
|
|
||||||
|
|
||||||
desks.desk[0].viewable = 1;
|
desks.desk[0].viewable = 1;
|
||||||
RefreshDesktop(0);
|
RefreshDesktop(0);
|
||||||
|
@ -201,21 +199,17 @@ main(int argc, char **argv)
|
||||||
/* toss down the dragbar and related */
|
/* toss down the dragbar and related */
|
||||||
InitDesktopControls();
|
InitDesktopControls();
|
||||||
/* then draw all the buttons that belong on the desktop */
|
/* then draw all the buttons that belong on the desktop */
|
||||||
{
|
lst = (Button **) ListItemTypeID(&num, LIST_TYPE_BUTTON, 0);
|
||||||
Button **lst;
|
if (lst)
|
||||||
int i, num;
|
{
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
lst = (Button **) ListItemTypeID(&num, LIST_TYPE_BUTTON, 0);
|
{
|
||||||
if (lst)
|
printf("%i / %i: %s\n", i, num, lst[i]->name);
|
||||||
{
|
if ((!lst[i]->internal) && (lst[i]->default_show))
|
||||||
for (i = 0; i < num; i++)
|
SimpleShowButton(lst[i]);
|
||||||
{
|
}
|
||||||
if ((!lst[i]->internal) && (lst[i]->default_show))
|
Efree(lst);
|
||||||
SimpleShowButton(lst[i]);
|
}
|
||||||
}
|
|
||||||
Efree(lst);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* gnome hints stuff & session initialization here */
|
/* gnome hints stuff & session initialization here */
|
||||||
GNOME_SetHints();
|
GNOME_SetHints();
|
||||||
SessionInit();
|
SessionInit();
|
||||||
|
@ -261,17 +255,14 @@ main(int argc, char **argv)
|
||||||
if (mode.resizemode == 5)
|
if (mode.resizemode == 5)
|
||||||
mode.resizemode = 0;
|
mode.resizemode = 0;
|
||||||
/* of course, we have to set the cursors */
|
/* of course, we have to set the cursors */
|
||||||
{
|
ec = FindItem("DEFAULT", 0, LIST_FINDBY_NAME, LIST_TYPE_ECURSOR);
|
||||||
ECursor *ec = NULL;
|
if (ec)
|
||||||
|
{
|
||||||
|
ApplyECursor(root.win, ec);
|
||||||
|
ec->ref_count++;
|
||||||
|
ec->inroot = 1;
|
||||||
|
}
|
||||||
|
|
||||||
ec = FindItem("DEFAULT", 0, LIST_FINDBY_NAME, LIST_TYPE_ECURSOR);
|
|
||||||
if (ec)
|
|
||||||
{
|
|
||||||
ApplyECursor(root.win, ec);
|
|
||||||
ec->ref_count++;
|
|
||||||
ec->inroot = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (mode.display_warp < 0)
|
if (mode.display_warp < 0)
|
||||||
mode.display_warp = 0;
|
mode.display_warp = 0;
|
||||||
mode.startup = 0;
|
mode.startup = 0;
|
||||||
|
@ -313,16 +304,14 @@ main(int argc, char **argv)
|
||||||
XSync(disp, False);
|
XSync(disp, False);
|
||||||
if (!mode.mapslide)
|
if (!mode.mapslide)
|
||||||
CreateStartupDisplay(0);
|
CreateStartupDisplay(0);
|
||||||
{
|
if ((bg = RemoveItem("STARTUP_BACKGROUND_SIDEWAYS", 0, LIST_FINDBY_NAME,
|
||||||
Background *bg;
|
LIST_TYPE_BACKGROUND)))
|
||||||
|
FreeDesktopBG(bg);
|
||||||
if ((bg = RemoveItem("STARTUP_BACKGROUND_SIDEWAYS", 0, LIST_FINDBY_NAME,
|
if ((bg = RemoveItem("STARTUP_BACKGROUND", 0, LIST_FINDBY_NAME,
|
||||||
LIST_TYPE_BACKGROUND)))
|
LIST_TYPE_BACKGROUND)))
|
||||||
FreeDesktopBG(bg);
|
FreeDesktopBG(bg);
|
||||||
if ((bg = RemoveItem("STARTUP_BACKGROUND", 0, LIST_FINDBY_NAME,
|
for (i = 0; i < child_count; i++)
|
||||||
LIST_TYPE_BACKGROUND)))
|
kill(e_children[i], SIGCONT);
|
||||||
FreeDesktopBG(bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The primary event loop */
|
/* The primary event loop */
|
||||||
for (;;)
|
for (;;)
|
||||||
|
|
Loading…
Reference in New Issue