okan
6afdd483c7
zap stray tabs
2020-03-24 14:48:29 +00:00
okan
0a7d8cc5c4
Add support for SIGINT/SIGTERM.
2020-03-23 20:14:27 +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
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
cd4be1c17a
Add a configtest flag (-n).
...
based on a diff from Sascha Paunovic.
2019-02-25 18:07:48 +00:00
okan
1a5f80bd0b
Clean up conf_file/homedir and conf_init() bits.
2018-02-09 19:54:54 +00:00
okan
14c17b5f9b
Slightly expand and expose verbose debugging.
2018-02-04 22:56:26 +00:00
okan
50c0a4eef6
Only exec the fallback when in CWM_EXEC_WM state.
...
Broken quit noticed by Ve Telko.
2018-01-02 14:04:58 +00:00
okan
15ca9c03ba
If the replacement window manager fails to start, restart the fallback (the
...
original invocation of cwm).
2017-12-29 20:09:19 +00:00
okan
156681f0a5
Add support for re-exec'ing with SIGHUP; equivalent to the already built-in
...
'restart' function.
2017-12-27 18:46:18 +00:00
okan
3d7c82936e
Use poll and XNextEvent to replace XNextEvent blocking inside the x11 event
...
handler.
2017-12-27 17:04:35 +00:00
okan
03e5d86952
zap stray that snuck in
2017-12-22 21:30:01 +00:00
okan
dfaf44c0ac
Return the connection number for the display.
2017-12-22 21:27:45 +00:00
okan
c5d03b0853
Fix a few comments and while here, wrap some long lines.
2017-12-22 21:21:44 +00:00
okan
b06ddae624
stash dir into conf since it'll be of use
2017-12-07 15:47:14 +00:00
okan
0bb1be86c6
Refactor callbacks to take a void * so as to not try and generalize into
...
client_ctx in keypress and buttonpress event handlers; pass appropriate *ctx's
based on context.
While here, limit some globals, replace defines with appropriate variables and
fix some naming.
2016-10-18 17:03:30 +00:00
okan
24d6348e52
no need to unmap menu window again
2016-09-29 00:30:40 +00:00
okan
0e8c706633
Mechanical change: move screen menu bits to their own struct.
2016-09-29 00:21:55 +00:00
okan
a2c066e447
pledge "stdio rpath proc exec" cwm before main event loop, after
...
init/setup - mostly for menu building.
ok semarie@ (another cwm user)
2015-11-12 17:56:54 +00:00
okan
e20110f344
Start cleaning up name vs function differences; replace magic numbers.
2015-11-10 20:05:33 +00:00
okan
0fdcf3f3df
On execwm, we should properly release resources before exec'ing into a
...
new window manager; so allow CWM_EXEC_WM to assign new wm to wm_argv and
pass through cwm_status (now EXECWM) so that x_teardown() gets called
before exec'ing the new window manager. Removes the need for a separate
x_restart() now, using new wm_argv; and consolidates errno for execvp.
2015-09-16 17:58:25 +00:00
okan
7936b9b2a7
Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX
...
and HOST_NAME_MAX+1, respectively.
ok doug@
2015-01-19 14:54:16 +00:00
okan
26ba152692
Remove duplicate client queue (mruq); instead, remove and take the
...
global Clientq and place it inside screen_ctx since every client belongs
to a screen, then use the same per screen clientq to track stacking
order (the sole reason for mruq).
2014-09-08 20:11:22 +00:00
okan
3d12b6d1d9
more style nits
2014-09-07 19:27:30 +00:00
okan
977992626a
generic sighandler
2014-09-06 16:24:32 +00:00
okan
ad1b78c6d1
No need to store screen colormap and visual; rather just use the X
...
macros in the one place they are needed.
2014-02-02 16:29:04 +00:00
okan
8b63ac62c2
Let the config parser continue parsing even after encountering an error;
...
original idea (with now-outdated patch) from Thomas Adam. Since we now
report where errors exist, this now makes more sense. Expand a bit on
config file parsing in the cwm(1).
Discussed with a few, including sthen; ok sthen.
2014-02-01 00:25:04 +00:00
okan
51b3fbee52
Move conf_init/clear into main - no behaviour change; from Tiago Cunha.
2014-01-28 00:42:20 +00:00
okan
978a5767ec
cwm_argv doesn't need to be global any longer
2014-01-22 22:26:05 +00:00
okan
5121ea5e10
start properly releasing X resources during teardown
2014-01-22 22:14:02 +00:00
okan
77aa5ac45b
Somewhat streamline event loop/restart/quit handling; most notable
...
change allows a restart to trigger proper teardown first, even though
teardown is not (yet) complete.
After some discussion with oga@nicotinebsd.org regarding a more
complicated version/idea.
2014-01-22 21:48:27 +00:00
okan
ac3162439a
Sprinkle a few more const; from Tiago Cunha.
2014-01-21 15:42:44 +00:00
okan
43ccf4eae0
use consistent types
2014-01-03 15:29:06 +00:00
okan
b276a2ef00
ICCCM explicitly states that server time (CurrentTime) should *not* be
...
used for focus events, but rather the timestamp of the generated event.
Track the last event timestamp and send it down for a WM_TAKE_FOCUS
ClientMessage. I suspect we should do this for clients that don't
announce this Atom as well, though the raciness gets us into a bind.
Solves focus order issue since WM_TAKE_FOCUS; fix verified by sthen@
ok sthen@
2013-12-12 20:15:07 +00:00
okan
4119b5c065
simplify atom handling; allows us to limit to one round-trip to server
...
for gathering Atoms.
2013-07-15 14:50:44 +00:00
okan
7a7e5cd592
whitespace and style fixes; from Tiago Cunha and one from me.
2013-07-08 15:46:16 +00:00
okan
234b8214df
move Cursors into conf.
2013-06-17 17:11:10 +00:00
okan
23d84adb5e
now that we have conf_screen, which configures individual screens
...
*after* config parsing, we no longer need to split up display/screen
initialization, so collapse.
2013-06-17 14:08:51 +00:00
okan
d1eadee922
get rid of long standing XXX: now that we configure screens based on
...
config options, add the keybinding GrabKey calls here
2013-05-22 16:54:09 +00:00
okan
be72620432
if -> ifdef
2013-05-14 13:39:53 +00:00
okan
b5f6bd205c
makes no sense to set an error handler which uses X_Dpy before XOpenDisplay.
2013-04-12 14:49:16 +00:00
okan
6296efadaa
push Screenq into screen_init
2013-04-12 14:46:30 +00:00
okan
b848a2b236
simplify config file setup; with Tiago Cunha
2012-12-18 00:14:41 +00:00
okan
75f65f399e
pull user home directory via getenv or getpwuid and stash it so we don't
...
need to do this everytime; with Tiago Cunha
2012-12-17 23:03:41 +00:00
okan
6900cd3612
non-trivial menu drawing rewrite, moving to Xft and solving various
...
font/color drawing issues; from Alexander Polakov
2012-12-17 02:28:45 +00:00
okan
a3aaad2c18
zap extra lines
2012-11-29 16:50:03 +00:00
okan
7edabe94f2
x_setupscreen -> screen_init; no functional change.
2012-11-29 03:54:46 +00:00
okan
28224ff830
sort
2012-11-09 03:52:02 +00:00
okan
4fb420514d
replace 'reload' with 'restart', which merely re-exec's cwm using the
...
existing argv; same idea with respect to argv saving as Alexander
Polakov. reload support was half-complete and is getting in the way.
agreed to by many
2012-10-31 19:30:19 +00:00
okan
7071261bde
support multibyte input to menu code; from Alexander Polakov with a tiny tweak.
2012-08-07 14:05:49 +00:00