aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Remove ssh menuWynn Wolf Arbor2021-04-27-85/+0
| | | | | | There is no point in keeping this functionality. Saving a few key strokes is not worth the added complexity of the window manager parsing the known_hosts file.
* Remove path completion in the exec menuWynn Wolf Arbor2021-04-27-48/+0
| | | | | | | | | | | | | There are a couple of issues I found with this functionality: 1) To my knowledge, it is undocumented and extremely specific. 2) Since this function would only complete a full path (by wrapping it in quotes before passing it on), it is entirely useless when composing a command that has more than one argument. 3) The snprintf call has no check for truncation, possibly leading to the path not being quoted properly.
* Add gitignoreWynn Wolf Arbor2021-04-27-0/+5
|
* Convert MakefileWynn Wolf Arbor2021-04-27-17/+23
|
* Add BSD compatibility functions and headersWynn Wolf Arbor2021-04-27-13/+786
| | | | | | | | | Original file locations in the OpenBSD tree: - lib/libc/stdlib/reallocarray.c - lib/libc/stdlib/strtonum.c - lib/libc/string/strlcat.c - lib/libc/string/strlcpy.c - sys/sys/queue.h
* Revert "use u_char for buffers in yylex"Wynn Wolf Arbor2021-04-27-5/+5
| | | | | | | This reverts commit 603548105b9bf9ffd11eb053e62db99f9433e821. Using u_char instead of char will generate signedness warnings for strtonum(), lookup(), and xstrdup().
* Replace INFTIM with -1Wynn Wolf Arbor2021-04-27-1/+1
|
* Use pledge(3) only on OpenBSDWynn Wolf Arbor2021-04-27-0/+2
|
* Define __dead if missingWynn Wolf Arbor2021-04-27-0/+4
|
* Keep pointer within window on maximize/fullscreen togglekn@openbsd.org2021-04-27-1/+5
| | | | | | | | | | | | | | | | | | 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
* Fixed memory leak in xu_get_strprop.tobias2020-04-26-2/+4
| | | | | | | 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 many ↵tobias2020-04-18-2/+2
| | | | | | | | | | 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 during ↵okan2020-04-18-11/+51
| | | | htile/vtile actions. From Uwe Werler, with a few manpage tweaks.
* zap stray tabsokan2020-03-26-2/+2
|
* Instead of using _NET_ACTIVE_WINDOW on restart, use the pointer location to ↵okan2020-03-26-45/+25
| | | | determine what client to set active. Reduces a round trip for every window.
* Add support for SIGINT/SIGTERM.okan2020-03-26-5/+10
|
* Simplify conditional construct.tim2020-03-26-6/+3
| | | | OK okan@
* Trim event_mask to those that the root window actually needs.okan2020-03-26-11/+8
|
* No need to lookup current client early; move to right before it is needed.okan2020-03-26-4/+2
|
* Recommit 1.259, but now with TAILQ_FOREACH_SAFE.tim2020-03-26-10/+12
| | | | | | | | | | | 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-18-10/+8
|
* Simplify list markup.tim2020-03-18-27/+4
| | | | OK okan@ schwarze@
* Plug two memory leaks. Also get rid of a variable that is no longer necessary.tim2020-03-18-8/+10
| | | | OK okan@
* Remove ColormaskChange from event-mask since there's no event handler.okan2020-03-18-3/+3
|
* Unrelated style fixes, consistency changes and sorting, appropriate ↵okan2020-03-18-452/+471
| | | | dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions.
* Allow the 'empty' group clients to be window-{h,v}tile'd.okan2020-03-18-7/+1
| | | | Behaviour (or lack there of) noticed by Raf Czlonka.
* Map ('5') and allow mod5mask (altgr) as a modifier.okan2020-03-18-18/+13
| | | | From Artturi Alm (though changed from 'm' to '5')
* add, then use, xvasprintf, checking for appropriate return.okan2020-03-18-10/+18
|
* Ensure the pointer stays within client bounds after a window 'snap' (to edge).okan2020-03-18-1/+2
| | | | reported by Stefan Hagen.
* Because cwm warps the pointer during a client move (to stay within the ↵okan2019-08-24-1/+3
| | | | | | 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. ok kn@
* Fix regression from r1.107 (lost a return); kettenis@ pointed out the high ↵okan2019-08-24-1/+2
| | | | 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-09-4/+8
| | | | | | | | | | 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-02-3/+3
| | | | util.c:u_exec() has been doing so since import.
* Plug a memory leak in log_debug(); OK okan@tim2019-04-29-1/+2
|
* Handle _NET_WM_NAME changes.tim2019-04-29-2/+3
| | | | | | | 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@
* Check the atom type on propertynotify before iterating.okan2019-03-11-4/+6
|
* use screen_find() for xrandr crtc changesokan2019-03-10-12/+9
|
* Find the managed screen from the parent window for client_current().okan2019-03-10-5/+9
|
* Print window id in hex; while here, remove unnecessary newline.okan2019-03-08-2/+2
|
* Similar to keypress event, fetch the screen from the event root window in theokan2019-03-08-7/+5
| | | | | 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 eventsokan2019-03-08-5/+8
|
* [keypress event] turns out we've been checking the wrong window for a matchingokan2019-03-08-7/+8
| | | | | | | | 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 readibilityokan2019-03-08-5/+5
|
* Teach client_current() to use a screen to find the current client instead ofokan2019-03-07-16/+23
| | | | | iterating over all (fallback if no screen provided for now). Initially convert trivial uses of client_current().
* check cc->gc directlyokan2019-03-07-5/+3
|
* zip extra linesokan2019-03-07-6/+2
|
* gc clientq inside groups, instead use the better maintained one per-screenokan2019-03-07-31/+43
|
* shuffle deck chairs: rename group actions to match intent for clarityokan2019-03-07-34/+34
|
* same thing as screen_find()okan2019-03-06-8/+4
|
* Separate out the menu window from the client resize/move geom window; in eachokan2019-03-04-86/+99
| | | | case, create and destroy on-demand. Isolate more menu specific code.