summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-07-24autogen: add default patch prefixHEADmasterAlan Coopersmith1-0/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-1/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith1-1/+5
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-20Add xcwm_internal.h to libxcwm_la_SOURCES to fix 'make distcheck'Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-20gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-20Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-03-17XtoqImageRep: Remove imageUnfilteredTypesJeremy Huddleston Sequoia2-12/+0
It is dead code and doesn't compile cleanly due to nullability errors. Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2021-03-17Fix _XCWM_XCWM_H_ header guardJeremy Huddleston Sequoia1-1/+1
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2021-03-17Add missing xcb-xfixes to address current build failureJeremy Huddleston Sequoia1-1/+1
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Ignore XCB_MAPPING_NOTIFY eventsJon TURNEY1-0/+3
They are sent to all clients. There is no mechanism to express disinterest in this event. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Fix some typosJon TURNEY8-13/+13
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Factor out _xcwm_atom_get() utility functionJon TURNEY1-44/+24
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Adopt existing windows at startupJon TURNEY1-0/+56
The helps when testing changes to a libxcwm-based WM, as you don't need to restart the clients to see the effect. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Fix parameter transposition in xcwm_window_configure()Jon TURNEY3-5/+5
xcwm_window_configure() has width and height parameters in the opposite order to the order used everywhere else. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Remove unused x,y parameters to xcwm_input_mouse_button_event()Jon TURNEY3-16/+5
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Remove unused button parameter to xcwm_input_mouse_motion()Jon TURNEY3-4/+3
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Report an error, rather than just segfaulting, if the X server can't be ↵Jon TURNEY1-0/+5
contacted Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Fix a use after free of return_evtJon TURNEY1-1/+1
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Update xcb_ewmh_set_supporting_wm_check() for and require xcb-util-wm 0.3.9Jon TURNEY2-2/+6
xcb-util-wm commit 23a4eb6059e0a694e342c3ff41ab076dad50b745, present in 0.3.9, changes the xcb_ewmh_set_supporting_wm_check() API. Update for that and require xcb-util-wm 0.3.9 Use the updated xcb_ewmh_set_supporting_wm_check() to more correctly implement EWMH, setting the _NET_SUPPORTING_WM_CHECK property on the root *and* child window. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Clean up a mention of xtoq in libxcwmJon TURNEY1-3/+3
Also, make debug output for injected input events a bit clearer Also, add button number to xcwm_input_mouse_button_event debug output Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Fix a lingering XTOQ in an include guard in libxcwmJon TURNEY1-3/+3
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-21Use standard X.Org .gitignoreJon TURNEY1-52/+75
Also keep a few Apple specific patterns Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-02Install a pkg-config .pc fileJon TURNEY4-2/+24
Install a pkg-config .pc file, along with the library and headers Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-11-02Link libxcwm with -no-undefined libtool flagJon 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 on platforms that require that all symbols are resolved when the library is linked." Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm: Removing initial damage on override-redirect window.Jess VanDerwalker1-11/+43
The initial damage event for override-redirect windows are reported relative to screen, not window. This initial damage is removed, and then the whole window is marked as damaged (using window relative coordinates). Override-redirect can also report damage events with an incorrect height. This case is treated the same as the initial damage event. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm: keyboard.h/.c created for keymapping functions.Jess VanDerwalker5-2/+162
Created keyboard.h/.c which contain functions for setting keyboard mapping and modifier mapping. Added these files to the build process. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm: Building and setting modifier keymap.Jess VanDerwalker1-7/+90
Modifer keymap is built in XtoQBuildModifierMaps() taking advantage of existing logic to determine keysyms in key map. Call to xcb_set_modifier_mapping() added to set mapping of modifiers. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm: Setting _NET_WM_STATE_HIDDEN on iconic windows.Jess VanDerwalker4-10/+59
Added xcwm_window_state_t enum for the window states supported by library. _xcwm_atoms_set_wm_state() updated to use xcwm_window_state_t as param. Also, _xcwm_atoms_set_wm_state sets the _NET_WM_STATE atom to _NET_WM_STATE_HIDDEN when window is made iconic, and removes it when window is de-iconified. Signed-off-by: Jess VanDerwalker <washu@sonic.net>
2012-08-29xtoq: Handlers for window miniaturization and de-miniaturization.Jess VanDerwalker2-0/+39
Handlers added for Xtoq window miniaturization (iconify) and de-miniaturization (de-iconify). Calls xcwm_window_iconify() and xcwm_window_deiconify() to update window state. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm: Functions in atoms.c and window.c for setting of ICCCM WM_STATE atom.Jess VanDerwalker4-1/+76
A wm_state_atom field added to xcwm_atoms_t and value determined on atom init. Functions to change state to Iconic or Normal added to window.c and atoms.c. Functions in window.c are wrappers for the atoms.c functions. The window.c functions are to be called by window manager when window is iconified or de-iconified. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm, xtoq: Handlers for window name change event.Jess VanDerwalker6-12/+68
In libxcwm, WM_NAME atom retrieved and added to the xcwm_atoms_t structure for context. _xcwm_atoms_set_window_name() now checks _NET_WM_NAME first, before WM_NAME. XCWM_EVENT_WINDOW_NAME event added to enum. In event loop, event of type XCB_PROPERTY_NOTIFY is checked to see if atom matches _NET_WM_NAME or WM_NAME. If so, event sent to xtoq. Function to handle update to window name added to XtoqController.m and case for XCWM_EVENT_WINDOW_NAME added to eventHandler(). Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm: Setting window type based on EWMH _NET_WM_WINDOW_TYPEJess VanDerwalker1-22/+82
ICCCM WM_TRANSIENT_FOR atoms is checked, and if set, window is set to XCWM_WINDOW_TYPE_DIALOG, otherwise XCWM_WINDOW_TYPE_NORMAL. Then the EWMH _NET_WINDOW_TYPE atoms is checked, if set, type is determined from its value - otherwise previous value is used. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm: Removed keysym cruft from previous testing.Jess VanDerwalker1-6/+0
Removed a call to xcb_key_symbols_alloc() that serves no purpose. Believe left over from test code that has since been removed. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddlestone Seqouia <jeremyhu@apple.com>
2012-08-29libxcwm: Creating window for EWMH compliant window manager.Jess VanDerwalker3-6/+71
Creating a window that is never mapped, but has name of EWMH compliant window manager and has _NET_SUPPORTING_WM_CHECK set to its ID on both itself and the root window. As specified in the EWMH spec: http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2577320 _xcwm_atoms_init now returns 0 on success, or XCB error code if atom initialization fails or if another EWMH compliant window manager is running. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddlestone Sequoia <jeremyhu@apple.com>
2012-08-29libxcwm: Initializing and setting supported EWMH atoms for connection.Jess VanDerwalker6-20/+70
Initializing of EWMH atoms done through xcb_ewmh_init_atoms() and xcb_ewmh_init_atoms_replies(). This populates a structure, xcb_ewmh_connection_t with the values for all EWMH atoms and the WM_PROTOCOLS atom. xcb_ewmh_connection_t added to xcwm_wm_atoms_t, and wm_protocols_atom removed. Value for the connection's screen added to xcwm_context_t, as it is used in initializing xcb_ewmh_connection_t. Added _xcwm_atoms_release() to handle cleaning up the xcb_ewmh_connection_t in context. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddlestone Seqouia <jeremyhu@apple.com>
2012-08-29libxcwm: atoms.c created for ICCCM functions.Jess VanDerwalker8-167/+238
Created an atoms.c file to hold functions that deal with initializing and getting and setting data from ICCCM atoms. Moved functions from window.c and init.c that handle ICCCM atoms into this file. atoms.c added to Makefile.am Removed global xcwm_wm_atoms_t _wm_atoms variable and placed in xcwm_context_t as xcwm_context_t *atoms. Updated references so they now point to context->atoms. Allocation memory for struct in context initalization and freeing in xcwm_context_close(). Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddlestone Seqouia <jeremyhu@apple.com>
2012-07-26xtoq: NSFlagsChanged case added to XtoqApplication sendEvent()Jess VanDerwalker2-3/+49
Press and release of modifier keys are not passed by NSKeyUp or NSKeyDown events, but in NSFlagsChanged. Added an NSFlagsChanged case to the sendEvent switch. The modifier flags of the event are checked against the current set of modifier flags to determine if the modifier key, as specified in the event's keyCode, has been pressed or released. Keycode is then sent on to keyUp/DownInView handler. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-07-26xtoq: Properly setting offset of window by height of Mac window bar.Jess VanDerwalker1-1/+1
The position of the window on the X server was being set incorrectly, creating a difference in positions between OS X window position and X server position. Signed-off-by: Jess VanDerwalker <washu@sonic.net>
2012-07-26libxcwm: Configure requests for unmanaged windows accepted.Jess VanDerwalker3-30/+21
The configure requests for unmanaged windows are passed on and accepted with a call to xcb_configure_window in _xcwm_resize_window. Added x and y position information to _xcwm_resize_window and its call to xcb_configure_window. Signed-off-by: Jess VanDerwalker <washu@sonic.net>
2012-07-26libxcwm: Propery change notification for WM_DELETE handled.Jess VanDerwalker3-6/+45
Windows may set WM_DELETE after being mapped, so XCB_EVENT_MASK_PROPERTY_CHANGE event mask set on all newly created windows so we can get notification. XCB_PROPERTY_NOTIFY case added to event loop to catch propery change events. In window.c set_wm_delete_win_in_context changed to _xcwm_window_set_wm_delete as it is now a function that is called across modules. XCB_PROPERTY_NOTIFY handles case where WM_PROTOCOLS has changed, then calls _xcwm_window_set_wm_delete to determine if WM_DELETE atom has changed. Signed-off-by: Jess VanDerwalker <washu@sonic.net>
2012-07-26libxcwm: Fix for build fail do to missing paren.Jess VanDerwalker1-6/+4
Missing paren was in memset statement for window sizing struct. Removed memset statement, moved memory allocation for xcwm_window_t sizing to xcwm_window_create() and changed to calloc to 0 fill xcwm_sizing_t structure. Properly freeing memory for window sizing struct in xcwm_window_release. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-07-25xtoq: Support for window sizing restrictions added.Jess VanDerwalker1-0/+15
On window creation, XtoQ gets the sizing data for the window and sets the resizing increments, max size, and min size of the window. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-07-25libxcwm: Using strlen() to get length of atom names.Jess VanDerwalker1-2/+3
Calls to get atoms were previously using preset numbers. strlen guards against atom name and length getting out of sync. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-07-25libxcwm: Support for WM_TRANSIENT_FOR and WM_SIZE_HINTS addedJess VanDerwalker4-46/+160
Getting values of ICCCM properties has been changed to use the xcb_icccm.h functions available to simplify library code. On receiving a mapping event, WM_TRANSIENT_FOR and WM_SIZE_HINTS for window are checked for the window, and values in xcwm_window_t are set. Enumeration added for different EWMH window types, currently only XCWM_WINDOW_TYPE_DIALOG and XCWM_WINDOW_TYPE_NORMAL are used. A xcwm_sizing_t structure was added to hold WM_SIZE_HINT data for the window. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-07-25xtoq: Standalone keymap application.Jess VanDerwalker4-28/+101
Added keymap_main.c to function as driver for keymap.c code. main in keymap_main.c takes display to connect to on command line, opens connection and passes the connection on to the keymap.c code through XtoQKeymapReSync. Added build target to src/xtoq/Makefile.am to build stand alone application. In keymap.c, XtoQKeymapReSync and XtoQKeyboardReloadHandler now take xcb_connection_t as parameter. XtoQKeyboardReloadHandler uses call to xcb_change_keyboard_mapping_checked to send keyymap with proper keysyms to X server. References to KeySyms changed to xcb_keysym_t for compatibility with xcb_change_keyboard_mapping_checked. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-07-25libxcwm: Replaced event type defines with enum.Jess VanDerwalker3-30/+18
Also removed xcwm_context_t from xcwm_event_t and accessor functions. Context available through window. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2012-07-25libxcwm: The root context's root window's context set to root context.Jess VanDerwalker1-0/+2
Awkward circular assignment, but it addresses issue where window manager client may ask for the xcwm_context_t of the root window. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>