aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2016-11-11Fix "unused variable" warningsJussi Kukkonen
Some were removed as unused, some just silenced with the gcc attribute since they were actually somehow used and fixing otherwise would have been more invasive. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
2016-11-11matchbox-remote: Fix execvp() argumentJussi Kukkonen
The second argument is a NULL-terminated array. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
2016-11-09ewmh: Actually set _NET_CURRENT_DESKTOPJussi Kukkonen
The property wasn't being set properly (both value and crucially number of elements were wrong), leading to an assert in debug chromium. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
2016-04-26wm: Do not set MB theme based on Net/ThemeNameJussi Kukkonen
MBWM already supports setting MB theme with "MATCHBOX/THEME", there is no advantage to also set it with "Net/ThemeName" -- the expectation that MBWM has a matching theme for all toolkit themes is not realistic. Net/ThemeName is used by Gtk+ to set Gtk theme so this change allows the Gtk theme and MBWM theme to have different names. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
2016-04-12keys: Grab all modifier combosJussi Kukkonen
Handle even the last combo, the one with all modifiers applied at the same time. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-12wm: disregard Caps/Num/Scroll-lock when handling keypressesJussi Kukkonen
<alt>-Tab and other keybindings should work even when the various locks are on. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-03-18ewmh: Fix data type of a few XChangeProperty callsJussi Kukkonen
XChangeProperty documentation: "If the specified format is 32, the property data must be a long array." Using int can lead to bogus data being used on platforms where long actually is different from int. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-08-13ewmh: icon data are longs on 64-bit hostsRoss Burton
On 64-bit hosts XLib returns 32-bit values in a long type, not an int. Notably this causes crashes when handling image data which is misinterpreted. Fix this by changing the relevant types to long, and using the new _from_long_data() function in libmatchbox. Signed-off-by: Ross Burton <ross.burton@intel.com>
2011-11-18src/client_common.c: Fix XChangeProperty variable typeRichard Purdie
According to XChangeProperty doc, array of "long" should be used when format is 32. This patch changes the variable to the correct type. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-18ewmh.c: Fix variable type in _NET_WORKAREA codeZhai Edwin
According to XChangeProperty doc, array of "long" should be used when format is 32. Wrong _NET_WORKAREA parameter caused blank screen in matchbox-desktop on 64 bit platforms. This patch changes the variable to the correct type. [YOCTO #1689] Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2007-11-012007-11-01 Tomas Frydrych <tf@o-hand.com>tf
* src/keys.c: (keys_keysym_needs_shift): Fixed retrival of shift mask for keys that have matching symbol in column 0 of the key map (bug #570). git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1761 b067294f-1dea-0310-9683-c47a78595994
2007-09-212007-09-21 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_handle_configure_request): Dont resize desktop windows for input windows. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1692 b067294f-1dea-0310-9683-c47a78595994
2007-09-122007-09-12 Matthew Allum <mallum@openedhand.com>mallum
* src/mbtheme.c: (_theme_paint_core): Clamp x,y destination values for safety. (Tapani Palli) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1662 b067294f-1dea-0310-9683-c47a78595994
2007-09-102007-09-10 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_make_new_client): Fix crasher introduced from 2007-09-04. (Tapani Palli) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1656 b067294f-1dea-0310-9683-c47a78595994
2007-09-052007-09-05 Matthew Allum <mallum@openedhand.com>mallum
* src/toolbar_client_alt.c: Correction to previous patch (Tapani Palli) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1646 b067294f-1dea-0310-9683-c47a78595994
2007-09-042007-09-04 Matthew Allum <mallum@openedhand.com>mallum
* src/toolbar_client_alt.c: * src/wm.c: Ignore minimised flag for alt input windows. Fixes for not resizing desktop with alt input window. (Tapani Palli) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1638 b067294f-1dea-0310-9683-c47a78595994
2007-08-162007-08-16 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_make_new_client): Always send config notifiy to new clients (Tapani Palli) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1629 b067294f-1dea-0310-9683-c47a78595994
2007-08-132007-08-13 Matthew Allum <mallum@openedhand.com>mallum
* src/client_common.c: (client_button_do_ops): Set time from event rather that CurrentTime when sending MB_GRAB_TRANSFER (Tapani Palli) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1628 b067294f-1dea-0310-9683-c47a78595994
2007-06-222007-06-22 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_make_new_client): Make sure EWMH lists are updated when app starts in iconized state. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1579 b067294f-1dea-0310-9683-c47a78595994
2007-06-212007-06-21 Matthew Allum <mallum@openedhand.com>mallum
* src/structs.h: * src/base_client.c: * src/wm.c: (wm_handle_configure_request), (wm_make_new_client): Change handling of affected dialogs when an (alt) input window. (Via Tapani) Handle application windows starting in iconized state (Sugar) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1577 b067294f-1dea-0310-9683-c47a78595994
2007-05-252007-05-25 Matthew Allum <mallum@openedhand.com>mallum
* src/client_common.c: (client_button_do_ops): Send button number with 'grab tranfer' (#334) (Via Tapani) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1548 b067294f-1dea-0310-9683-c47a78595994
2007-04-262007-04-26 Matthew Allum <mallum@openedhand.com>mallum
* src/ewmh.c: (ewmh_init), (ewmh_update_lists): * src/structs.h: Add new _MB_NUM_SYSTEM_MODAL_WINDOWS_PRESENT prop. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1530 b067294f-1dea-0310-9683-c47a78595994
2007-04-232007-04-23 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_make_new_client): Make sure dialog ABOVE state is inherited. (via Tapani) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1528 b067294f-1dea-0310-9683-c47a78595994
2007-03-192007-03-19 Matthew Allum <mallum@openedhand.com>mallum
* src/ewmh.c: (ewmh_init): * src/structs.h: * src/wm.c: (wm_make_new_client): Add basic support for; _NET_WM_WINDOW_TYPE_POPUP_MENU & _NET_WM_WINDOW_TYPE_DROPDOWN_MENU git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1483 b067294f-1dea-0310-9683-c47a78595994
2007-02-172007-02-17 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: (dialog_client_move_resize): Dont attempt to move non existstant frame of non decorated dialog window. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1466 b067294f-1dea-0310-9683-c47a78595994
2007-02-062007-02-06 Matthew Allum <mallum@openedhand.com>mallum
* src/ewmh.c: (ewmh_init_props): Set _NET_CURRENT_DESKTOP to 0 git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1465 b067294f-1dea-0310-9683-c47a78595994
2007-02-062007-02-06 Matthew Allum <mallum@openedhand.com>mallum
* src/ewmh.c: (ewmh_update_rects), (set_supported): Dont list _NET_CURRENT_DESKTOP supported twice. Fix _NET_DESKTOP_GEOMETRY to be correctly WxH rather than full geom. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1464 b067294f-1dea-0310-9683-c47a78595994
2007-01-252007-01-25 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_handle_configure_request): Allow decorationless dialogs to *re*position themselves offscreen. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1443 b067294f-1dea-0310-9683-c47a78595994
2007-01-172007-01-17 Matthew Allum <mallum@openedhand.com>mallum
* src/ewmh.c: * src/structs.h: * src/wm.c: Add support for _NET_WM_WINDOW_TYPE_NOTIFICATION (maps to mb only TYPE_MESSAGE, can be deprecated) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1439 b067294f-1dea-0310-9683-c47a78595994
2007-01-162007-01-16 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: Fix Maemo input win vertical resize handling. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1438 b067294f-1dea-0310-9683-c47a78595994
2007-01-112007-01-11 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: Fixes to focus chaining in presence of modal dialogs. * src/stack.c: (stack_dump): * src/wm.c: (wm_activate_client): Improve debug stack dumping info. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1436 b067294f-1dea-0310-9683-c47a78595994
2006-12-222006-12-22 Matthew Allum <mallum@openedhand.com>mallum
* src/ewmh.c: * src/structs.h: Add very basic support for an _MB_WM_STATE prop. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1433 b067294f-1dea-0310-9683-c47a78595994
2006-12-152006-12-15 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: Fix small XSet #define typo (thanks to Tapani) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1431 b067294f-1dea-0310-9683-c47a78595994
2006-12-142006-12-14 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_update_layout): Handle resizing of dialogs better when a input window unmaps. (Note, for non alt-input-wins, i.e. maemo) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1430 b067294f-1dea-0310-9683-c47a78595994
2006-12-142006-12-14 Matthew Allum <mallum@openedhand.com>mallum
* src/base_client.c: (base_client_destroy): Release passive button grab on client destruction git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1429 b067294f-1dea-0310-9683-c47a78595994
2006-11-232006-11-23 Matthew Allum <mallum@openedhand.com>mallum
* data/themes/blondie/theme.xml: * src/mbtheme.c: (mbtheme_init): Allow theme to set cursor theme and size. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1427 b067294f-1dea-0310-9683-c47a78595994
2006-11-172006-11-17 Matthew Allum <mallum@openedhand.com>mallum
* configure.ac: * src/Makefile.am: * src/wm.c: (wm_xsettings_notify_cb): Sync with cursor theme and size GTK xsettings propertys git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1423 b067294f-1dea-0310-9683-c47a78595994
2006-11-032006-11-03 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: (dialog_init_geometry): On position a splash window centered if positioned initially at 0,0 Fixes position issues with mb panel applet message wins. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1422 b067294f-1dea-0310-9683-c47a78595994
2006-10-112006-10-11 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: (dialog_get_available_area): Backout 2006-09-07 change (uneeded) * src/wm.c: (wm_handle_configure_request), (wm_activate_client): Dont let alt input wins resize horizontal. Misc cleanups ( a c++ comment ) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1420 b067294f-1dea-0310-9683-c47a78595994
2006-09-222006-09-22 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: * src/ewmh.c: * src/structs.h: Set modal indicator desktop hint for all modal dialogs, not just system ones. Be sure to set panel in titlebar state hints (#40723) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1415 b067294f-1dea-0310-9683-c47a78595994
2006-09-182006-09-18 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_handle_button_event): Dont attempt to move focus from a modal dialog to parent (maemo #40455) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1414 b067294f-1dea-0310-9683-c47a78595994
2006-09-182006-09-18 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: (dialog_get_available_area), (dialog_client_button_press): Fix alt input win positioning. Add better check for modal window presence to disable decoration buttons ( in super modal mode ). git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1413 b067294f-1dea-0310-9683-c47a78595994
2006-09-072006-09-07 Matthew Allum <mallum@openedhand.com>mallum
* src/ewmh.c: (ewmh_init), (ewmh_update_lists): * src/structs.h: Advertise presence of modal blocker wins on root window ( in maemo super modal mode ) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1412 b067294f-1dea-0310-9683-c47a78595994
2006-09-072006-09-07 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: (dialog_get_available_area): Fix for returning correct available area for dialogs when alt input win present. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1411 b067294f-1dea-0310-9683-c47a78595994
2006-09-052006-09-05 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: Redo dialog dragging code to use XShape for outlines rather that XOR'ing. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1410 b067294f-1dea-0310-9683-c47a78595994
2006-08-282006-08-28 Matthew Allum <mallum@openedhand.com>mallum
* src/dialog_client.c: (dialog_init_geometry): Still allow decorationless dialogs to position themselves freely - fixes error in previous commit. ( Thanks to Marco ) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1406 b067294f-1dea-0310-9683-c47a78595994
2006-08-282006-08-28 Matthew Allum <mallum@openedhand.com>mallum
* src/base_client.c: (base_client_new): Remove spurious repositioning if client positioned with negative positions ( should get fixed later ). * src/structs.h: * src/dialog_client.c: (dialog_init_geometry): * src/wm.c: (wm_make_new_client): Only center 0,0 non decorated clients if they have splash screen hint set. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1405 b067294f-1dea-0310-9683-c47a78595994
2006-08-242006-08-24 Matthew Allum <mallum@openedhand.com>mallum
* configure.ac: * src/Makefile.am: * src/wm.c: Support XFixesHide/ShowCursor if XFixes lib and recent enough extension available. Really hides cursor now. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1404 b067294f-1dea-0310-9683-c47a78595994
2006-08-242006-08-24 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_update_layout): Dont let panels changing size ( or unmapping ) effect fullscreen app windows. git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1403 b067294f-1dea-0310-9683-c47a78595994
2006-08-242006-08-24 Matthew Allum <mallum@openedhand.com>mallum
* src/wm.c: (wm_remove_client): Only check for lack of main win, not desktop also for mb app active prop update ( see last commit ) git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager@1401 b067294f-1dea-0310-9683-c47a78595994