"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "screen.c" between
xterm-366.tgz and xterm-367.tgz

About: xterm is a terminal emulator for X with ISO/ANSI color and vt220 enhancements.

screen.c  (xterm-366.tgz):screen.c  (xterm-367.tgz)
/* $XTermId: screen.c,v 1.597 2021/02/02 00:19:32 tom Exp $ */ /* $XTermId: screen.c,v 1.598 2021/03/01 08:54:26 tom Exp $ */
/* /*
* Copyright 1999-2020,2021 by Thomas E. Dickey * Copyright 1999-2020,2021 by Thomas E. Dickey
* *
* All Rights Reserved * All Rights Reserved
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the * copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including * "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish, * without limitation the rights to use, copy, modify, merge, publish,
skipping to change at line 3216 skipping to change at line 3216
xw->work.ewmh[which].checked[new_ewmh_mode] = True; xw->work.ewmh[which].checked[new_ewmh_mode] = True;
xw->work.ewmh[which].allowed[new_ewmh_mode] = probe_netwm(dpy, newprop); xw->work.ewmh[which].allowed[new_ewmh_mode] = probe_netwm(dpy, newprop);
} }
if (xw->work.ewmh[which].allowed[new_ewmh_mode]) { if (xw->work.ewmh[which].allowed[new_ewmh_mode]) {
TRACE(("...new EWMH mode is allowed\n")); TRACE(("...new EWMH mode is allowed\n"));
if (new_ewmh_mode && !xw->work.ewmh[which].mode) { if (new_ewmh_mode && !xw->work.ewmh[which].mode) {
unset_resize_increments(xw); unset_resize_increments(xw);
set_ewmh_hint(dpy, window, _NET_WM_STATE_ADD, newprop); set_ewmh_hint(dpy, window, _NET_WM_STATE_ADD, newprop);
} else if (xw->work.ewmh[which].mode && !new_ewmh_mode) { } else if (xw->work.ewmh[which].mode && !new_ewmh_mode) {
set_resize_increments(xw); if (!xw->misc.resizeByPixel) {
set_resize_increments(xw);
}
set_ewmh_hint(dpy, window, _NET_WM_STATE_REMOVE, oldprop); set_ewmh_hint(dpy, window, _NET_WM_STATE_REMOVE, oldprop);
} else { } else {
set_ewmh_hint(dpy, window, _NET_WM_STATE_REMOVE, oldprop); set_ewmh_hint(dpy, window, _NET_WM_STATE_REMOVE, oldprop);
set_ewmh_hint(dpy, window, _NET_WM_STATE_ADD, newprop); set_ewmh_hint(dpy, window, _NET_WM_STATE_ADD, newprop);
} }
xw->work.ewmh[which].mode = new_ewmh_mode; xw->work.ewmh[which].mode = new_ewmh_mode;
update_fullscreen(); update_fullscreen();
} else { } else {
Bell(xw, XkbBI_MinorError, 100); Bell(xw, XkbBI_MinorError, 100);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)