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.)
|
||||
- Removed compile time option for definable cursors and made them available by
|
||||
default.
|
||||
- Mapping a new window that belongs to a running application that is hidden,
|
||||
will unhide the application.
|
||||
|
||||
|
||||
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)
|
||||
- removed some redundant includes of ../src/config.h when wconfig.h is
|
||||
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:
|
||||
|
||||
@@ -1544,14 +1544,15 @@ WMReadPropListFromFile(char *file)
|
||||
|
||||
f = fopen(file, "r");
|
||||
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;
|
||||
}
|
||||
|
||||
if (stat(file, &stbuf)==0) {
|
||||
length = (size_t) stbuf.st_size;
|
||||
} else {
|
||||
wsyserror(_("could not get size for domain file %s"), file);
|
||||
wsyserror(_("could not get size for file '%s'"), file);
|
||||
fclose(f);
|
||||
return NULL;
|
||||
}
|
||||
@@ -1563,7 +1564,7 @@ WMReadPropListFromFile(char *file)
|
||||
pldata->lineNumber = 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;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
11
src/window.c
11
src/window.c
@@ -566,6 +566,7 @@ wManageWindow(WScreen *scr, Window window)
|
||||
int workspace = -1;
|
||||
char *title;
|
||||
Bool withdraw = False;
|
||||
Bool raise = False;
|
||||
|
||||
/* mutex. */
|
||||
/* XGrabServer(dpy); */
|
||||
@@ -1110,7 +1111,9 @@ wManageWindow(WScreen *scr, Window window)
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/* 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 */
|
||||
wWindowUpdateName(wwin, title);
|
||||
if (title)
|
||||
|
||||
Reference in New Issue
Block a user