tobias
3ebe04ee8e
Prevent out of boundary write with configuration files in which too many
...
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@
2020-04-16 17:12:49 +00:00
okan
6407eb9bc1
Allow configuring a percentage window size of the master window during
...
htile/vtile actions. From Uwe Werler, with a few manpage tweaks.
2020-04-16 13:32:35 +00:00
okan
6afdd483c7
zap stray tabs
2020-03-24 14:48:29 +00:00
okan
6c20772841
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.
2020-03-24 14:47:29 +00:00
okan
0a7d8cc5c4
Add support for SIGINT/SIGTERM.
2020-03-23 20:14:27 +00:00
tim
6c7b8261df
Simplify conditional construct.
...
OK okan@
2020-03-20 18:50:08 +00:00
okan
49f839e194
Trim event_mask to those that the root window actually needs.
2020-03-20 15:16:31 +00:00
okan
207b71ef1c
No need to lookup current client early; move to right before it is
...
needed.
2020-03-20 12:13:20 +00:00
tim
3b9b98c024
Recommit 1.259, but now with TAILQ_FOREACH_SAFE.
...
From and OK okan@
Original commit message:
Plug two memory leaks. Also get rid of a variable that is no longer
necessary.
OK okan@
2020-03-16 17:50:44 +00:00
tim
b9213d0a02
Revert previous. Causes a crash as reported by Tom Murphy.
2020-03-14 16:11:09 +00:00
tim
146fa08e4d
Simplify list markup.
...
OK okan@ schwarze@
2020-03-13 20:50:07 +00:00
tim
d8c7d87737
Plug two memory leaks. Also get rid of a variable that is no longer
...
necessary.
OK okan@
2020-03-13 20:49:13 +00:00
okan
3d1a8028c2
Remove ColormaskChange from event-mask since there's no event handler.
2020-02-28 13:38:35 +00:00
okan
96275a835d
Unrelated style fixes, consistency changes and sorting, appropriate
...
dosage/removal of wrappers, simplification of name queue, client cycle joins
other kb/mb bound functions.
2020-02-27 14:56:39 +00:00
okan
7a88b2bdb2
Allow the 'empty' group clients to be window-{h,v}tile'd.
...
Behaviour (or lack there of) noticed by Raf Czlonka.
2020-02-07 18:53:41 +00:00
okan
d3410dd10d
Map ('5') and allow mod5mask (altgr) as a modifier.
...
From Artturi Alm (though changed from 'm' to '5')
2020-02-03 16:38:02 +00:00
okan
83de84b7f8
add, then use, xvasprintf, checking for appropriate return.
2020-01-22 19:58:35 +00:00
okan
2fc191f978
Ensure the pointer stays within client bounds after a window 'snap' (to edge).
...
reported by Stefan Hagen.
2020-01-21 15:50:03 +00:00
okan
781af9c998
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.
ok kn@
2019-08-13 18:45:38 +00:00
okan
6131e36f8a
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.
2019-08-12 00:52:36 +00:00
kn
fdb841c3b0
Add application section
...
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
2019-07-09 21:38:44 +00:00
kn
40000724cc
command uses execvp(3) not execve(2)
...
util.c:u_exec() has been doing so since import.
2019-07-02 23:37:47 +00:00
tim
25b699b582
Plug a memory leak in log_debug(); OK okan@
2019-04-29 19:03:20 +00:00
tim
3f1caab46a
Handle _NET_WM_NAME changes.
...
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@
2019-04-29 19:02:21 +00:00
okan
9a7528f5b9
Check the atom type on propertynotify before iterating.
2019-03-11 15:25:46 +00:00
okan
e55c0d48fa
use screen_find() for xrandr crtc changes
2019-03-10 22:53:11 +00:00
okan
5bc2098c6f
Find the managed screen from the parent window for client_current().
2019-03-10 20:38:28 +00:00
okan
5071baa2aa
Print window id in hex; while here, remove unnecessary newline.
2019-03-08 20:33:30 +00:00
okan
4470a247c8
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.
2019-03-08 17:40:43 +00:00
okan
eab4b7e4b5
extend verbose logging for key/button events
2019-03-08 15:04:39 +00:00
okan
bf43b62414
[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.
2019-03-08 14:48:02 +00:00
okan
2a3c2b5231
add parans for readibility
2019-03-08 13:17:26 +00:00
okan
7c45b87622
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().
2019-03-07 14:28:17 +00:00
okan
01be5b4e4a
check cc->gc directly
2019-03-07 13:24:44 +00:00
okan
823566a653
zip extra lines
2019-03-07 13:24:10 +00:00
okan
aa79351d2e
gc clientq inside groups, instead use the better maintained one per-screen
2019-03-07 13:14:41 +00:00
okan
b26202724a
shuffle deck chairs: rename group actions to match intent for clarity
2019-03-07 12:54:21 +00:00
okan
9efa6c8c85
same thing as screen_find()
2019-03-06 13:32:19 +00:00
okan
0bda8f7606
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.
2019-03-04 19:28:17 +00:00
okan
9d5b0e5d22
fix a few misplaced (and misnamed) ewmh root window functions
2019-03-04 14:48:59 +00:00
okan
fda68a40de
_NET_WORKAREA needs ngroups, so screen_update_geometry() needs to come after
...
conf_group().
2019-03-04 14:36:02 +00:00
okan
0c0551b8bf
simplify xftcolor config
2019-03-04 13:33:39 +00:00
okan
9d25218458
Tie group number and name together during config.
2019-03-01 14:32:01 +00:00
okan
ae231f67d0
Move the group index (desktop number) check to the only 2 callers that require
...
checking due to ewmh.
2019-02-28 23:26:12 +00:00
okan
880b5cda3f
Ensure we don't action on the last group when the requested one is not found.
2019-02-28 23:20:52 +00:00
okan
8cd6d1154c
Selectively hide and show clients based on state; merge client_unhide() and
...
client_show().
2019-02-28 13:11:53 +00:00
okan
cd4be1c17a
Add a configtest flag (-n).
...
based on a diff from Sascha Paunovic.
2019-02-25 18:07:48 +00:00
okan
a5ba9aa9da
Add 'group-close-[n]' action to close all windows within specified group.
...
heavily based on a diff from Nam Nguyen.
2019-02-25 16:40:49 +00:00
okan
43cd19378e
simplify screen 'area' usage for initial client placement
2019-02-23 19:17:17 +00:00
okan
953cf1ce89
restore order from before r1.248 (vtile/vtile containment changes).
2019-02-22 20:52:13 +00:00