summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* README: update v7.1Leah Neukirchen2022-04-301-0/+11
|
* cvsimportokan2022-02-279-44/+94
|\ | | | | | | | | | | | | | | | | | | | | * refs/heads/master: cycling fix: when no client is active, warp pointer to last active; from Walter Alejandro Iglesias. whitespace Fix spelling of some unused MWM hints; from Sean C. Farley. Add group-last command that shows only the previously active group; ok okan Allow bare numbers for key and mouse bindings; taken from similar support in other parse.y's; from Leon Fischer <lfischer@airmail.cc>. sync parse.y changes from base; ok naddy@ Do not attempt to grab keys without a keycode; this incidentally allows XF86 keys support.
| * cycling fix: when no client is active, warp pointer to last active;okan2022-02-271-1/+10
| | | | | | | | from Walter Alejandro Iglesias.
| * whitespaceokan2022-02-265-6/+6
| |
| * Fix spelling of some unused MWM hints; from Sean C. Farley.okan2022-02-262-23/+34
| | | | | | | | While here, flesh out the rest of the MWM hints.
| * Add group-last command that shows only the previously active group; ok okanop2022-01-276-0/+17
| |
| * Allow bare numbers for key and mouse bindings; taken from similarokan2021-12-241-5/+16
| | | | | | | | support in other parse.y's; from Leon Fischer <lfischer@airmail.cc>.
| * sync parse.y changes from base; ok naddy@okan2021-11-221-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | original from naddy@: > Don't declare variables as "unsigned char *" that are passed to > functions that take "char *" arguments. Where such chars are > assigned to int or passed to ctype functions, explicitly cast them > to unsigned char. > > For OpenBSD's clang, -Wpointer-sign has been disabled by default, > but when the parse.y code was built elsewhere, the compiler would > complain. > > With help from millert@ > ok benno@ deraadt@
| * Do not attempt to grab keys without a keycode; this incidentally allowsokan2021-11-191-0/+2
| | | | | | | | | | | | XF86 keys support. found and fix by Luis Henriques <henrix@camandro.org>
* | Makefile: use implicit rule for yaccLeah Neukirchen2021-11-301-6/+5
| | | | | | | | Closes #15.
* | README: update IRC channelLeah Neukirchen2021-05-211-1/+2
| |
* | cvsimportkn2021-04-221-0/+4
|\| | | | | | | | | * refs/heads/master: Keep pointer within window on maximize/fullscreen toggle
| * Keep pointer within window on maximize/fullscreen togglekn2021-04-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spawn a window, maximize it in any way, move the cursor to a window border that is not on the screen's edge and unmaximize again: While the window goes back the cursor stays at the screen's edge, i.e. focus is lost to the underlaying window. Moving, resizing, tiling or snapping windows in any way always moves the cursor along iff needed, e.g. using MS-[hjkl] to move a small window from the center to the edge keeps the cursor within window borders -- no matter what you do with the keyboard, focus stays on that window. Make CM-f, CM-m, CM-equal and CMS-equal (default bindings) for toggling full-screen mode, maximization, vertical maximization and horizontal maximization of the current window drag the cursor along if needed as well. OK okan kmos dv
* | README: update v6.7Leah Neukirchen2020-05-222-1/+9
| |
* | cvsimportLeah Neukirchen2020-05-1415-521/+540
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/master: Fixed memory leak in xu_get_strprop. Prevent out of boundary write with configuration files in which too many quoted arguments are stored for other window managers. Allow configuring a percentage window size of the master window during htile/vtile actions. From Uwe Werler, with a few manpage tweaks. zap stray tabs Instead of using _NET_ACTIVE_WINDOW on restart, use the pointer location to determine what client to set active. Reduces a round trip for every window. Add support for SIGINT/SIGTERM. Simplify conditional construct. Trim event_mask to those that the root window actually needs. No need to lookup current client early; move to right before it is needed. Recommit 1.259, but now with TAILQ_FOREACH_SAFE. Revert previous. Causes a crash as reported by Tom Murphy. Simplify list markup. Plug two memory leaks. Also get rid of a variable that is no longer necessary. Remove ColormaskChange from event-mask since there's no event handler. Unrelated style fixes, consistency changes and sorting, appropriate dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions.
| * Fixed memory leak in xu_get_strprop.tobias2020-04-251-1/+3
| | | | | | | | | | | | | | If a client calls XSetTextProperty for a window to clear all its properties, then allocated memory within libX11 is not freed. OK okan@
| * Prevent out of boundary write with configuration files in which too manytobias2020-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | quoted arguments are stored for other window managers. The quotation handling happens within the while loop without checking if the "end" limit has been already reached. If this happens, the final NULL assignment leads to an out of boundary write on stack. OK okan@
| * Allow configuring a percentage window size of the master window duringokan2020-04-165-5/+45
| | | | | | | | htile/vtile actions. From Uwe Werler, with a few manpage tweaks.
| * zap stray tabsokan2020-03-241-1/+1
| |
| * Instead of using _NET_ACTIVE_WINDOW on restart, use the pointer locationokan2020-03-245-40/+20
| | | | | | | | | | to determine what client to set active. Reduces a round trip for every window.
| * Add support for SIGINT/SIGTERM.okan2020-03-231-4/+9
| |
| * Simplify conditional construct.tim2020-03-201-5/+2
| | | | | | | | OK okan@
| * Trim event_mask to those that the root window actually needs.okan2020-03-201-10/+7
| |
| * No need to lookup current client early; move to right before it isokan2020-03-201-3/+1
| | | | | | | | needed.
| * Recommit 1.259, but now with TAILQ_FOREACH_SAFE.tim2020-03-161-9/+11
| | | | | | | | | | | | | | | | | | | | | | From and OK okan@ Original commit message: Plug two memory leaks. Also get rid of a variable that is no longer necessary. OK okan@
| * Revert previous. Causes a crash as reported by Tom Murphy.tim2020-03-141-9/+7
| |
| * Simplify list markup.tim2020-03-131-25/+2
| | | | | | | | OK okan@ schwarze@
| * Plug two memory leaks. Also get rid of a variable that is no longertim2020-03-131-7/+9
| | | | | | | | | | | | necessary. OK okan@
| * Remove ColormaskChange from event-mask since there's no event handler.okan2020-02-281-2/+2
| |
| * Unrelated style fixes, consistency changes and sorting, appropriateokan2020-02-2713-439/+458
| | | | | | | | | | dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions.
* | use PKG_CONFIG for cross compilation in gentooA. Tammy2020-04-211-2/+4
| | | | | | | | | | | | | | | | needed for ebuild validity across different platforms which define their specific PKGCONFIG variable add underscore in PKG_CONFIG Closes: #14 [via git-merge-pr]
* | cvsimportokan2020-02-078-27/+25
|\| | | | | | | | | | | | | | | * refs/heads/master: Allow the 'empty' group clients to be window-{h,v}tile'd. Map ('5') and allow mod5mask (altgr) as a modifier. add, then use, xvasprintf, checking for appropriate return. Ensure the pointer stays within client bounds after a window 'snap' (to edge).
| * Allow the 'empty' group clients to be window-{h,v}tile'd.okan2020-02-071-6/+0
| | | | | | | | Behaviour (or lack there of) noticed by Raf Czlonka.
| * Map ('5') and allow mod5mask (altgr) as a modifier.okan2020-02-033-14/+9
| | | | | | | | From Artturi Alm (though changed from 'm' to '5')
| * add, then use, xvasprintf, checking for appropriate return.okan2020-01-223-7/+15
| |
| * Ensure the pointer stays within client bounds after a window 'snap' (to edge).okan2020-01-211-0/+1
| | | | | | | | reported by Stefan Hagen.
* | parse.y: use "queue.h"Leah Neukirchen2020-02-101-1/+1
| | | | | | | | Found by Alexander Müller <ddondy@gmail.com>.
* | README: update v6.6Leah Neukirchen2020-01-041-2/+9
| |
* | Makefile: use gpg2Leah Neukirchen2020-01-041-1/+1
| |
* | cvsimportokan2019-08-136-4/+13
|\| | | | | | | | | | | | | | | | | | | * refs/heads/master: Because cwm warps the pointer during a client move (to stay within the client), there's a window of time where an expose or enternotify event will get generated for a lower client; use a hammer and drain events after keyboard move/resize, until such a time that cwm doesn't warp the pointer. Behavior noticed by kn. Fix regression from r1.107 (lost a return); kettenis@ pointed out the high potential for a use-after-free (true!) where kn@ ran into the regression using an app that actually exercised the XGrabPointer() failure path. Add application section command uses execvp(3) not execve(2) Plug a memory leak in log_debug(); OK okan@ Handle _NET_WM_NAME changes.
| * Because cwm warps the pointer during a client move (to stay within the client),okan2019-08-131-0/+2
| | | | | | | | | | | | | | | | | | there's a window of time where an expose or enternotify event will get generated for a lower client; use a hammer and drain events after keyboard move/resize, until such a time that cwm doesn't warp the pointer. Behavior noticed by kn. ok kn@
| * Fix regression from r1.107 (lost a return); kettenis@ pointed out the highokan2019-08-121-0/+1
| | | | | | | | | | potential for a use-after-free (true!) where kn@ ran into the regression using an app that actually exercised the XGrabPointer() failure path.
| * Add application sectionkn2019-07-091-2/+6
| | | | | | | | | | | | | | | | | | | | Link what is described as "applications" here to how they are actually defined in cwmrc(5). While here, call the configuration file what it is instead of reusing the default path (already mentioned in the FILES section). OK okan
| * command uses execvp(3) not execve(2)kn2019-07-021-1/+1
| | | | | | | | util.c:u_exec() has been doing so since import.
| * Plug a memory leak in log_debug(); OK okan@tim2019-04-291-0/+1
| |
| * Handle _NET_WM_NAME changes.tim2019-04-291-1/+2
| | | | | | | | | | | | | | This fixes the problem where cwm's window menu wouldn't show Firefox's current window title if it contains non-ASCII characters. OK okan@
* | cvsimportokan2019-03-1111-272/+308
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/master: (23 commits) Check the atom type on propertynotify before iterating. use screen_find() for xrandr crtc changes Find the managed screen from the parent window for client_current(). Print window id in hex; while here, remove unnecessary newline. Similar to keypress event, fetch the screen from the event root window in the buttonpress handler; bail if we don't manage the screen. Allows us to find the current client based on the screen/event root. extend verbose logging for key/button events [keypress event] turns out we've been checking the wrong window for a matching client thus always falling back to client_current(); while the current client is problaby right in most cases, use event's subwindow (not window) to find the client. Bail early if this event came to us from a screen we don't manage. This is result of us grabing all keybindings off the root window instead of selectively. add parans for readibility Teach client_current() to use a screen to find the current client instead of iterating over all (fallback if no screen provided for now). Initially convert trivial uses of client_current(). check cc->gc directly zip extra lines gc clientq inside groups, instead use the better maintained one per-screen shuffle deck chairs: rename group actions to match intent for clarity same thing as screen_find() Separate out the menu window from the client resize/move geom window; in each case, create and destroy on-demand. Isolate more menu specific code. fix a few misplaced (and misnamed) ewmh root window functions _NET_WORKAREA needs ngroups, so screen_update_geometry() needs to come after conf_group(). simplify xftcolor config Tie group number and name together during config. Move the group index (desktop number) check to the only 2 callers that require checking due to ewmh. ...
| * Check the atom type on propertynotify before iterating.okan2019-03-111-3/+5
| |
| * use screen_find() for xrandr crtc changesokan2019-03-101-11/+8
| |
| * Find the managed screen from the parent window for client_current().okan2019-03-101-4/+8
| |