mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
- Mapping a new window that belongs to a running application that is hidden,
will unhide the application. - removed a wsyserror() message when reading a property list from file (the programmer should decide if to give that message or just ignore).
This commit is contained in:
@@ -22,6 +22,8 @@ Changes since version 0.70.0:
|
|||||||
an application will keep the shaded/unshaded state of windows.)
|
an application will keep the shaded/unshaded state of windows.)
|
||||||
- Removed compile time option for definable cursors and made them available by
|
- Removed compile time option for definable cursors and made them available by
|
||||||
default.
|
default.
|
||||||
|
- Mapping a new window that belongs to a running application that is hidden,
|
||||||
|
will unhide the application.
|
||||||
|
|
||||||
|
|
||||||
Changes since version 0.65.1:
|
Changes since version 0.65.1:
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ Changes since wmaker 0.70.0:
|
|||||||
- added an internal strcasecmp() (only on systems where is not present)
|
- added an internal strcasecmp() (only on systems where is not present)
|
||||||
- removed some redundant includes of ../src/config.h when wconfig.h is
|
- removed some redundant includes of ../src/config.h when wconfig.h is
|
||||||
included too
|
included too
|
||||||
|
- removed a wsyserror() message when reading a property list from file
|
||||||
|
(the programmer should decide if to give that message or just ignore).
|
||||||
|
|
||||||
|
|
||||||
Changes since wmaker 0.65.0:
|
Changes since wmaker 0.65.0:
|
||||||
|
|||||||
@@ -1544,14 +1544,15 @@ WMReadPropListFromFile(char *file)
|
|||||||
|
|
||||||
f = fopen(file, "r");
|
f = fopen(file, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
wsyserror(_("could not open domain file %s for reading"), file);
|
/* let the user print the error message if he really needs to */
|
||||||
|
/*wsyserror(_("could not open domain file '%s' for reading"), file);*/
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stat(file, &stbuf)==0) {
|
if (stat(file, &stbuf)==0) {
|
||||||
length = (size_t) stbuf.st_size;
|
length = (size_t) stbuf.st_size;
|
||||||
} else {
|
} else {
|
||||||
wsyserror(_("could not get size for domain file %s"), file);
|
wsyserror(_("could not get size for file '%s'"), file);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -1563,7 +1564,7 @@ WMReadPropListFromFile(char *file)
|
|||||||
pldata->lineNumber = 1;
|
pldata->lineNumber = 1;
|
||||||
|
|
||||||
if (fread(pldata->ptr, length, 1, f) != 1) {
|
if (fread(pldata->ptr, length, 1, f) != 1) {
|
||||||
wsyserror(_("error reading from file %s"), file);
|
wsyserror(_("error reading from file '%s'"), file);
|
||||||
plist = NULL;
|
plist = NULL;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|||||||
11
src/window.c
11
src/window.c
@@ -566,6 +566,7 @@ wManageWindow(WScreen *scr, Window window)
|
|||||||
int workspace = -1;
|
int workspace = -1;
|
||||||
char *title;
|
char *title;
|
||||||
Bool withdraw = False;
|
Bool withdraw = False;
|
||||||
|
Bool raise = False;
|
||||||
|
|
||||||
/* mutex. */
|
/* mutex. */
|
||||||
/* XGrabServer(dpy); */
|
/* XGrabServer(dpy); */
|
||||||
@@ -1110,7 +1111,9 @@ wManageWindow(WScreen *scr, Window window)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (app->flags.hidden) {
|
if (app->flags.hidden) {
|
||||||
wwin->flags.hidden = 1;
|
/*wwin->flags.hidden = 1;*/
|
||||||
|
wUnhideApplication(app, False, False);
|
||||||
|
raise = True;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1215,6 +1218,12 @@ wManageWindow(WScreen *scr, Window window)
|
|||||||
wwin->prev = NULL;
|
wwin->prev = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* raise is set to true if we un-hid the app when this window was born.
|
||||||
|
* we raise, else old windows of this app will be above this new one. */
|
||||||
|
if (raise) {
|
||||||
|
wRaiseFrame(wwin->frame->core);
|
||||||
|
}
|
||||||
|
|
||||||
/* Update name must come after WApplication stuff is done */
|
/* Update name must come after WApplication stuff is done */
|
||||||
wWindowUpdateName(wwin, title);
|
wWindowUpdateName(wwin, title);
|
||||||
if (title)
|
if (title)
|
||||||
|
|||||||
Reference in New Issue
Block a user