<feed xmlns='http://www.w3.org/2005/Atom'>
<title>marco/src/core/xprops.c, branch double-tile-resize</title>
<subtitle>MATE default window manager</subtitle>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/'/>
<entry>
<title>i18n: Use glib's gettext support macros</title>
<updated>2021-03-06T22:57:46+00:00</updated>
<author>
<name>rbuj</name>
<email>robert.buj@gmail.com</email>
</author>
<published>2021-02-17T10:05:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=8cb3a02a26c03e57d064bd03319e34b6930ac3f5'/>
<id>8cb3a02a26c03e57d064bd03319e34b6930ac3f5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove multiple empty lines</title>
<updated>2020-08-04T14:39:25+00:00</updated>
<author>
<name>rbuj</name>
<email>robert.buj@gmail.com</email>
</author>
<published>2020-08-04T13:53:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=37e4d38ca3a61eb843d80732a26f29668352433d'/>
<id>37e4d38ca3a61eb843d80732a26f29668352433d</id>
<content type='text'>
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 'N;/^\n$/D;P;D;' {} \;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 'N;/^\n$/D;P;D;' {} \;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove trailing spaces/tabs</title>
<updated>2020-08-04T14:39:25+00:00</updated>
<author>
<name>rbuj</name>
<email>robert.buj@gmail.com</email>
</author>
<published>2020-08-04T08:39:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=85a22e754cd1f43e178e4a81c182643d4319bc5b'/>
<id>85a22e754cd1f43e178e4a81c182643d4319bc5b</id>
<content type='text'>
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 's/[[:space:]]*$//' {} \;
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 's/\t*$//' {} \;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 's/[[:space:]]*$//' {} \;
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 's/\t*$//' {} \;
</pre>
</div>
</content>
</entry>
<entry>
<title>Xprops fix memory leak.</title>
<updated>2020-01-22T10:13:40+00:00</updated>
<author>
<name>rcaridade145</name>
<email>rcaridade145@gmail.com</email>
</author>
<published>2020-01-11T13:10:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=0c748e0d1ce08e9c7a13a4bf84a0ac43d79ffcdf'/>
<id>0c748e0d1ce08e9c7a13a4bf84a0ac43d79ffcdf</id>
<content type='text'>
Origin commit :
https://gitlab.gnome.org/GNOME/metacity/commit/c87f73f3b4413720a2f3e6a672826d3fec7f77a9
"
XmbTextPropertyToTextList documentation says that XFreeStringList
should be used to free the storage for the list and its contents.
"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Origin commit :
https://gitlab.gnome.org/GNOME/metacity/commit/c87f73f3b4413720a2f3e6a672826d3fec7f77a9
"
XmbTextPropertyToTextList documentation says that XFreeStringList
should be used to free the storage for the list and its contents.
"
</pre>
</div>
</content>
</entry>
<entry>
<title>xprops: Fix cast from non-struct type to struct type</title>
<updated>2019-08-12T13:23:58+00:00</updated>
<author>
<name>Pablo Barciela</name>
<email>scow@riseup.net</email>
</author>
<published>2019-04-08T19:26:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=d154eaf9027c1fc135ff50c70beed2bc5d7d4a65'/>
<id>d154eaf9027c1fc135ff50c70beed2bc5d7d4a65</id>
<content type='text'>
Fixes Clang static analyzer warnings:

core/xprops.c:761:9: warning: Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption
  raw = (xPropWMHints*) results-&gt;prop;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

core/xprops.c:883:9: warning: Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption
  raw = (xPropSizeHints*) results-&gt;prop;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes Clang static analyzer warnings:

core/xprops.c:761:9: warning: Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption
  raw = (xPropWMHints*) results-&gt;prop;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

core/xprops.c:883:9: warning: Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption
  raw = (xPropSizeHints*) results-&gt;prop;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
</pre>
</div>
</content>
</entry>
<entry>
<title>[Security] Use 'g_strlcpy' instead of 'strcpy'</title>
<updated>2019-03-05T00:51:32+00:00</updated>
<author>
<name>Pablo Barciela</name>
<email>scow@riseup.net</email>
</author>
<published>2019-02-28T15:11:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=fb920d7a52f755577ced7d9512b3fc5ec5ac83df'/>
<id>fb920d7a52f755577ced7d9512b3fc5ec5ac83df</id>
<content type='text'>
Fixes Clang static analyzer warnings:

warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes Clang static analyzer warnings:

warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
</pre>
</div>
</content>
</entry>
<entry>
<title>'meta_error_trap_push' instead 'meta_error_trap_push_with_return'</title>
<updated>2019-01-07T00:44:52+00:00</updated>
<author>
<name>Pablo Barciela</name>
<email>scow@riseup.net</email>
</author>
<published>2019-01-06T11:44:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=4940310cda91a4bea223deb7568fb77829518ded'/>
<id>4940310cda91a4bea223deb7568fb77829518ded</id>
<content type='text'>
both functions have the same code
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
both functions have the same code
</pre>
</div>
</content>
</entry>
<entry>
<title>xprop: Don't use GDK for reading text properties</title>
<updated>2015-09-14T16:45:45+00:00</updated>
<author>
<name>Jasper St. Pierre</name>
<email>jstpierre@mecheye.net</email>
</author>
<published>2015-07-20T21:54:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=b4b73de038caffbca46e3f94e4ec056c16734f5c'/>
<id>b4b73de038caffbca46e3f94e4ec056c16734f5c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Work around Xlib 64-bit "specialness"</title>
<updated>2015-09-14T16:44:29+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2010-01-21T15:10:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=e84e5ffa84180bffb2ca32bf072d065797a4621b'/>
<id>e84e5ffa84180bffb2ca32bf072d065797a4621b</id>
<content type='text'>
When putting 32-bit properties into longs on 64-bit architectures,
XGetWindowProperty assumes the values are supposed to be signed, and
so it sign-extends values greater than 0x7fffffff. So if they *aren't*
supposed to be signed, we need to chop off the high bits ourselves.

(Most CARDINAL-valued properties only end up using small values
anyway, so it doesn't matter, but _NET_WM_WINDOW_OPACITY uses the full
range, and so was previously failing on 64-bit machines.)

https://bugzilla.gnome.org/show_bug.cgi?id=605678
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When putting 32-bit properties into longs on 64-bit architectures,
XGetWindowProperty assumes the values are supposed to be signed, and
so it sign-extends values greater than 0x7fffffff. So if they *aren't*
supposed to be signed, we need to chop off the high bits ourselves.

(Most CARDINAL-valued properties only end up using small values
anyway, so it doesn't matter, but _NET_WM_WINDOW_OPACITY uses the full
range, and so was previously failing on 64-bit machines.)

https://bugzilla.gnome.org/show_bug.cgi?id=605678
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove all trailing whitespaces in the code tree</title>
<updated>2014-06-26T23:03:32+00:00</updated>
<author>
<name>Joaquín Ignacio Aramendía</name>
<email>samsagax@gmail.com</email>
</author>
<published>2014-06-25T22:06:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.mate-desktop.org/marco/commit/?id=a65a66d49bd0d6ec6c94b8e3ecd551cb570cec95'/>
<id>a65a66d49bd0d6ec6c94b8e3ecd551cb570cec95</id>
<content type='text'>
Just run:
 $ find -name '*.c' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
 $ find -name '*.h' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just run:
 $ find -name '*.c' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
 $ find -name '*.h' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
</pre>
</div>
</content>
</entry>
</feed>
