Commit graph

1338 commits

Author SHA1 Message Date
Reginald Kennedy
f82969b59c Rename raise_focused to raise and set default binding to M-r.
Rename mvws_next and mvws_prev to mvrg_next and mvrg_prev, respectively.

Fix man page typo.

Tweak styling.
2016-05-03 03:43:53 +08:00
Campbell Barton
bc124ae0b2 Send window to next/previous regions workspace 2016-05-03 02:40:59 +08:00
Yuri D'Elia
df6ae9dcd4 Implement the "raise_focused" function 2016-05-03 01:48:51 +08:00
Yuri D'Elia
a77860696e Always swap regions when using rg_move_next/rg_move_prev
Fixes interaction with the option workspace_clamp
2016-05-03 01:20:27 +08:00
Reginald Kennedy
7a7a5aa571 Remove unused macros. 2016-04-29 23:50:12 +08:00
Reginald Kennedy
8fcba7a479 Update the license in spectrwm.c
spectrwm.c does not contain any 'copy' or 'substantial portion' of dwm.
2016-04-29 22:52:54 +08:00
Marco Peereboom
d4acae1759 Revert "-Werror, because we care"
This reverts commit 962991cc99.

Suggested by LordReg.  Damn him and all his making sense.
2016-04-29 07:25:35 -05:00
Marco Peereboom
962991cc99 -Werror, because we care 2016-04-27 10:56:30 -05:00
David Hill
22faec8354 cleanup warnings 2016-04-27 11:28:11 -04:00
Reginald Kennedy
53fae91f1d Fix segfault when handling RRScreenChangeNotify.
Fixes #118
2016-04-23 04:48:12 +08:00
Reginald Kennedy
77e1075c10 Fix ICCCM 4.2.3 compliance and add special handling for Java.
Fix transient windows blocking focus to respective main windows.

Fix override_redirect window focus issue.

Fix window borders when applications set focus.

Add more details to debug overlay.

Fixes #42
2016-04-22 02:45:13 +08:00
Reginald Kennedy
da92f07e6b Upgrade to window reparenting.
Change X11 window borders to drawn frames.

Add support for _NET_REQUEST_FRAME_EXTENTS.

Disable java_workaround.
We no longer need to spoof the LG3D non-reparenting window manager.
A dummy option is still present to prevent a startup exception.

Remove the use of BORDER() since it is no longer needed.

Fix move_ on tiled.

Add new debug_toggle bind for SWM_DEBUG.

Fix managing of mapped 'withdrawn' windows.

Wait for all x11 events to finish processing on shutdown_cleanup.
2016-04-22 02:41:46 +08:00
Marco Peereboom
0f2ef41b3d give up on printing tag 2016-04-14 09:35:21 -05:00
Reginald Kennedy
37f7ee73cc Fix possible delay on uniconify/search_win/search_workspace. 2016-03-23 10:38:38 +08:00
Marco Peereboom
de026ee5da xcb_aux_sync moved to xcb-util 2016-03-22 11:45:55 -05:00
Reginald Kennedy
e4d823fc43 Fix spectrwm.conf unbind example. 2015-07-04 13:25:39 +08:00
Reginald Kennedy
0e4d41f065 Add SIMPLEQ->STAILQ macros for freebsd. 2015-05-31 07:25:46 +08:00
Marco Peereboom
fdc1517bca Prepare for release 2.7.2. 2015-05-26 17:03:36 -05:00
Marco Peereboom
320dc6342e Revert "Prepare for release 2.8.0."
This reverts commit a7ba4e04cc.
2015-05-26 16:44:49 -05:00
Marco Peereboom
a7ba4e04cc Prepare for release 2.8.0. 2015-05-26 16:41:39 -05:00
Reginald Kennedy
f12e178ce2 Restore Num_Lock workaround.
If Num_Lock is mapped to a modifier, filter the modifier.

closes #103
2015-05-27 04:43:32 +08:00
Marco Peereboom
bcc109d826 Prepare for release 2.7.1. 2015-05-24 09:03:16 -05:00
Reginald Kennedy
19d9110314 Fix autorun.
free() from memory leak fix was too early.
2015-05-24 20:39:37 +08:00
Marco Peereboom
cea3baef91 Prepare for release 2.7.0. 2015-05-22 10:40:59 -05:00
Reginald Kennedy
c7b39bacf2 Cleanup osx/queue.h whitespace.
Remove TAILQ_END from osx/osx.h since it is in osx/queue.h.
2015-05-22 08:41:35 +08:00
Marco Peereboom
354d4e4969 add queue.h to OSX
OSX' queue.h does not provide SIMPLEQ because it is too old.  Pull in
tha latest version from Bitrig and use that instead for all queue
related stuff.
2015-05-22 08:41:35 +08:00
Reginald Kennedy
42bccafc30 Improve the bind[] option to accept pointer buttons.
Buttons are specified as Button<n> (case sensitive) where n is 1 to 255.

	Example:
	bind[move] = MOD+Button8

Existing pointer actions are now available for bind[]:
	focus - Focus window/region under pointer.
	move - Move window with pointer while binding is pressed.
	resize - Resize window with pointer while binding is pressed.
	resize_centered - Same as resize but keep window centered.

	Defaults:
	bind[focus] = ANYMOD+REPLAY+Button1
	bind[move] = MOD+Button1
	bind[resize] = MOD+Button3
	bind[resize_centered] = MOD+Shift+Button3

Button binds can be unbound the same as key binds:

	Example:
	bind[] = MOD+Button1 # unbind default move binding.

Add new special bind arguments:
	ANYMOD
	Binds all modifier combinations not handled by another binding.

	REPLAY
	Allows other programs to receive press/release events for bind.
	Unavailable for move, resize and resize_centered.
2015-05-22 08:41:30 +08:00
Reginald Kennedy
5aee442940 Pacify -Wconditional-uninitialized warnings. 2015-05-21 04:18:44 +08:00
Reginald Kennedy
a3b566b69b Cleanup libswmhack.so. 2015-05-21 03:30:53 +08:00
Andreas Eriksson
1fbe5348a3 Change libswmhack.so to use RTLD_NEXT functionality when _GNU_SOURCE is defined, and add some error handling. 2015-05-21 03:22:24 +08:00
Reginald Kennedy
4e5c9bd680 Tweak the urgency indicator default padding for urgent_collapse = 1.
e.g. * 1 3* -> *1 3*

Add clarification for urgent_collapse in the man page.

closes #96
2015-05-14 13:05:40 +08:00
Reginald Kennedy
ee4e60a8d4 Sort quirks in man page. 2015-04-22 18:30:52 +08:00
Reginald Kennedy
8aa184cb8b Additional shutdown cleanup.
Initialize some global pointers to NULL.

Fix more leaks.

Fix styling.

closes #93
2015-04-19 18:31:32 +08:00
Campbell Barton
d5362eb9f7 Resolve memory leaks on exit 2015-04-19 18:31:32 +08:00
Reginald Kennedy
978e4b1b00 Fix MINIMALBORDER on region focus cycling.
Fix quirk ordering in man page.
2015-04-19 18:31:29 +08:00
Yuri D'Elia
734f4a1b0e Add 'MINIMALBORDER' quirk to remove borders from floating/unfocused windows. 2015-04-16 22:14:22 +08:00
Reginald Kennedy
b95155ee80 Keep function prototypes in alphabetical order.
closes #92
2015-04-15 17:52:49 +08:00
Campbell Barton
4f61f95463 Resolve memory leaks on exit. 2015-04-15 17:52:17 +08:00
Reginald Kennedy
05be57f687 Fix segfault when attempting to switch workspace during startup. 2015-03-26 00:58:20 +08:00
Reginald Kennedy
6638851238 Add new option: warp_focus
Focus on the target window/workspace/region when clamped.
For example, when attempting to switch to a workspace that is mapped on
another region and workspace_clamp is enabled, focus on the region with
the target workspace.  Enable by setting to 1.

Rename visible_noswap to workspace_clamp and update man page:
Prevents workspaces from being swapped when attempting to switch to a
workspace that is mapped to another region.  Use warp_focus if you want
to focus on the region containing the workspace and warp_pointer if you
want to also send the pointer.  Enable by setting to 1.

closes #80.
2015-02-28 04:05:37 +08:00
Jonathan Armani
0a755545f7 Document visible_noswap and at it in spectrwm.conf 2015-02-28 03:59:25 +08:00
Jonathan Armani
aac2f2f4ba Add a new visible_noswap option that allow to not swap two visible workspace
This is useful in multi monitor setup, if you have workspace 1 on left
and workspace 2 on right monitor, trying to switch from 1 to 2 on left
region now does nothing.

This option can be enabled in combination with warp_pointer to send the
mouse pointer on the non-swapped workspace.
2015-02-28 03:59:25 +08:00
Reginald Kennedy
a4487a2d1d Add missing binds to keymapping files. 2015-02-28 03:59:19 +08:00
Reginald Kennedy
79df455b47 Revert "Mouse button mapping config option, by levaidaniel"
This reverts commit e0e24c4fa6.
2015-02-28 02:23:32 +08:00
Reginald Kennedy
7709861107 Change rg_move_(prev|next) and stack_balance to be unbound by default.
Some cleanup.
2015-02-25 08:49:31 +08:00
Yuri D'Elia
edfc16af9a Strip trailing padding with urgent_collapse 2015-02-17 12:59:19 -06:00
Marco Peereboom
10f544c6db ad yuri to copyrights 2015-02-17 12:53:34 -06:00
Yuri D'Elia
6705289444 Implement rg_move_prev/rg_move_next to move workspaces across regions/screens. 2015-02-17 12:52:30 -06:00
Yuri D'Elia
5a6f9473f2 Add 'maximize_hide_bar' to also hide the bar when maximing a window. 2015-02-17 12:48:59 -06:00
Yuri D'Elia
f78f487b20 Implement quirk NOFOCUSCYCLE to remove a window from the normal focus cycle. 2015-02-17 12:42:33 -06:00