summaryrefslogtreecommitdiff
path: root/ewmh
AgeCommit message (Collapse)AuthorFilesLines
2024-07-23update documentation to reflect the parameter changesHEADmasterRobert Knutsson1-2/+5
2014-02-13make: compile the library with standard xorg warning flagsGaetan Nadon1-1/+1
The new BASE_CFLAGS variable contains only warning flags that do not alter the generated byte code, unlike the deprecated CWARNFLAGS which turns off the GNUCC strict aliasing optimization. Also, update m4 submodule as util-macros version 1.16 or later is required. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2014-02-10make: implement the silent rules for m4 generated files.Gaetan Nadon1-2/+2
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2014-02-07make: using EXTRA_DIST for xcb-*.pc.in is redundantGaetan Nadon1-2/+0
All files mentionned in AC_CONFIG_FILES have their source files distributed automatically. http://www.gnu.org/software/automake/manual/automake.html Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2014-02-07make: there should be no attempt to remove any Makefile.in fileGaetan Nadon1-1/+0
Files generated by autoconf (and the various tools it calls) must not be removed by running a makefile. This is outside the scope of the makefile. http://lists.gnu.org/archive/html/autoconf/2007-03/msg00043.html One can use git-clean to return to the original state of the module prior to running autogen.sh, autoreconf or configure. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2014-02-07make: use AM_CPPFLAGS rather than per-target libxcb_*_la_CPPFLAGSGaetan Nadon1-1/+1
There is only one target in this directory, so we do not need to trigger the per-target infrastructure which would require AC_PROG_CC_C_O macro. So libxcb_ewmh_la-ewmh.o simply becomes ewmh.o. http://www.gnu.org/software/automake/manual/automake.html#Renamed-Objects Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2014-02-07make: remove unused XPROTO_CFLAGS and XPROTO_LIBSGaetan Nadon1-2/+2
These should have been removed with the patch: "Split up icccm and ewmh into their own repository" back in 2011. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2014-02-07Do not distribute ewmh C source file as they are generated with M4.Arnaud Fontaine1-2/+3
Signed-off-by: Arnaud Fontaine <arnau@debian.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2014-02-03config: drop the check for sys/types.hGaetan Nadon1-3/+1
All the X supported systems do have this header file. None of the xorg modules have this check, so it is safe to remove. Reviewed-by: Arnaud Fontaine <arnau@debian.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2014-02-03config: use AC_CONFIG_HEADERS to create a config.h fileGaetan Nadon1-0/+5
This file contains C preprocessor #define statements which replace the current -Ds added to each compilation invocation. This makes the gcc output command easier to read and prevents exceeding the max line limits on some computers. This is the preferred method in al the xorg modules. Reviewed-by: Arnaud Fontaine <arnau@debian.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2014-01-29xcb-proto should have never been required as xcb provides the Atoms.Arnaud Fontaine1-1/+1
Reported on Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=722632 Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2013-07-16Even though EWMH spec does not mandate window to be set, some WM expect it ↵Arnaud Fontaine1-3/+6
to be set. For example, Awesome 3.4 with Zaphod mode checks this attribute to match it to the relevant root window. Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2012-05-31Bump SONAME version following 23a4eb6.Arnaud Fontaine1-1/+1
Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2012-05-30Fix GCC warning on ewmh_atom_t type.Arnaud Fontaine1-1/+1
Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2011-08-29Fix incomplete implementation of _NET_SUPPORTING_WM_CHECK.Arnaud Fontaine2-10/+10
EWMH specification states that _NET_SUPPORTING_WM_CHECK must also be set on the child window, not only on the root window.
2011-04-23Untabify for consistency.Arnaud Fontaine2-19/+19
Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2011-04-23Fix setters for _NET_WM_ICON to allow more than one icon.Arnaud Fontaine2-22/+63
Only one icon could be given at a time, thus add append setters to only set one icon at a time in a convenient way and make the general setters more generic. Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2011-03-26Fix unintialized variable for the number of iconsArnaud Fontaine1-0/+1
2011-03-26Link with -no-undefinedJon TURNEY1-1/+1
Use -no-undefined to assure libtool that the library has no unresolved symbols at link time, so that libtool will build a shared library for platforms require that all symbols are resolved when the library is linked. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Acked-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2011-03-26Return more icons from _NET_WM_ICONUli Schlachter2-10/+87
EWMH says that _NET_WM_ICON is an array of icon. That means that it can contain more than one icon. This way, apps can provide icons of different sizes. Common sizes seem to be 16x16, 32x32 and 48x48. This commit makes it possible to access all the icons in _NET_WM_ICON via iterators instead of just the first one. Thanks to Arnaud Fontaine for his help with the API. Signed-off-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Arnaud Fontaine <arnau@debian.org>
2011-03-26xcb_ewmh_get_wm_icon_reply: Fix crash on errorUli Schlachter1-5/+3
When the GetProperty request fails due to an error, xcb_ewmh_get_wm_icon_from_reply will be called with a NULL pointer for the reply. This function would then call xcb_get_property_value_length on this NULL pointer which caused a crash. Fix this by moving the NULL-pointer check before the call to value_length(). Signed-off-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2011-03-26_NET_WM_ICON: Fix the length checkUli Schlachter1-2/+2
expected_len is the expected length in number-of-pixels, but r_value_len is the number of bytes in the reply. Since a pixel consists of 4 bytes, we have to divide the number of bytes by 4 to get the number of pixels. Signed-off-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
2011-03-07Check more carefully the reply of a _NET_WM_ICON which may containsArnaud Fontaine1-3/+12
several icons
2011-03-06Split up icccm and ewmh into their own repositoryArnaud Fontaine1-1/+7
2011-03-06Rename time function parameter to xtime in to avoid clash with time.hArnaud Fontaine1-10/+10
2011-03-06Add missing inclusion of stdlib.h in EWMH headerArnaud Fontaine2-3/+4
2010-11-14xcb_ewmh_get_wm_name_reply should have always been staticArnaud Fontaine1-4/+5
2010-11-14xcb_ewmh_init_atoms: don't use VLA for wm_cm_sn declarationArnaud Fontaine1-4/+5
2010-11-14xcb_ewmh_init_atoms: use xcb_setup_roots_length()Arnaud Fontaine1-7/+6
2010-11-14xcb_ewmh_send_client_message: check whether the data fit the ClientMessageArnaud Fontaine1-0/+2
2010-11-14A given connection may have several screens associatedArnaud Fontaine5-154/+321
2010-11-14Remove useless constArnaud Fontaine2-4/+4
2010-11-14Fix typos on _NET_WM_SYNC_REQUEST_COUNTER functions and add it in the Atoms listArnaud Fontaine2-4/+6
2010-11-14Make code generated by m4 more readableArnaud Fontaine2-4/+4
2010-11-14Replace all the ugly if statements with a loopArnaud Fontaine1-14/+13
2010-11-14Fix compiler warning by casting the value to uint64_t before the shiftArnaud Fontaine1-1/+1
2010-11-14xcb_ewmh_send_client_message: use memcpy() instead of a loop and make ↵Arnaud Fontaine2-20/+18
data_len the length in bytes
2010-11-14Fix indentation and change email addressArnaud Fontaine2-31/+31
2010-11-14Atoms previously defined in xcb_atom are now defined in xprotoArnaud Fontaine3-69/+91
2010-11-14Fix indentation and untabifyArnaud Fontaine2-123/+123
2010-11-14Use sizeof() instead of plain integerArnaud Fontaine1-9/+3
2010-11-14Use countof when possible and fix WM_SYNC_REQUEST_COUNTERArnaud Fontaine1-8/+10
2010-11-14Add missing _NET_WM_HANDLED_ICONSArnaud Fontaine2-2/+38
2010-11-14Use countof when possibleArnaud Fontaine1-2/+3
2010-11-14Fix _NET_WM_STRUT and _NET_WM_STRUT_PARTIALArnaud Fontaine2-27/+84
2010-11-14Use countof when possibleArnaud Fontaine1-4/+4
2010-11-14Remove UTF8 reply macro in favor of inline functionsArnaud Fontaine2-54/+72
2010-11-14CosmeticArnaud Fontaine1-5/+5
2010-11-14CosmeticArnaud Fontaine1-189/+175
2010-11-14Use countof() instead of the length value directlyArnaud Fontaine1-15/+21