okan
a623680c7e
Set dim.{x,y} during client_init and update on resize, instead of
...
(re)calculating only when applying hints.
2016-12-06 21:00:13 +00:00
okan
4811ec0433
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
4e1d180946
Check the ptr bounds in the new client during cycling, since not all
...
actions do ptrsave, such as restoring client geometry; adapted from a
diff by Vadim Vygonets.
2016-10-06 14:30:05 +00:00
okan
a7e1d9acfc
Calculate client nameqlen in client_setname(), the only place it's
...
needed/used.
2016-10-04 15:52:32 +00:00
okan
6889482fc7
Defaults are split between defines and conf_init(); normalize these, as
...
well as give 'sticky' groups its own variable.
2016-10-03 14:42:34 +00:00
okan
3881d6ad85
client_ptrwarp should not deal with unhiding or raising clients (non ptr
...
requests); most callers do this already - deal with the few that do not.
client_ptrwarp becomes a simple wrapper (setpos) but it will be expanded.
2016-10-03 13:41:30 +00:00
okan
5a1d71fd93
Set the initial ptr position during client init, instead of waiting
...
until (maybe) a ptrwarp call. Likewise, explicitly ensure an inbounds ptr
position (same as initial) when saving.
2016-09-30 20:55:54 +00:00
okan
489250a384
de-static client_inbound()
2016-09-20 19:11:19 +00:00
okan
d9f512008b
Get rid of curcc, instead cycle through the queue; removes the need for
...
client_none().
2016-09-20 18:21:32 +00:00
okan
9b943acf32
During init, query screen for _NET_ACTIVE_WINDOW and set that client as
...
active; while we already look at what's under the pointer, use this
information first, then look under the pointer (saving that round-trip).
This restores the active state to a client after restart even if the
pointer is not above it (and of course the pointer is not above another
client).
2016-09-16 14:32:02 +00:00
okan
faafc6dd35
Some clients fail to setup hints at all, so initalize for them; fallout
...
from r1.218 switching to malloc - clearly missed this case.
found the hard way by brynet@
2016-09-14 21:00:24 +00:00
okan
b0ab7f2e87
Fix-up a few simple uses of client_current(): check CLIENT_ACTIVE flag
...
instead of relying on curcc.
2016-09-14 19:45:33 +00:00
okan
237d1b1cf5
init label
2016-09-13 17:42:58 +00:00
okan
14d946c938
Switch to just malloc since we need initialize most everything anyway.
2016-09-12 13:48:41 +00:00
okan
6c5b694356
Simplify toggling flags; from Vadim Vygonets.
2016-09-02 15:08:44 +00:00
okan
b9b225cb85
Do not draw borders on ignored clients when returning from fullscreen;
...
from Vadim Vygonets.
2016-09-01 18:38:52 +00:00
okan
0aaaf77e6b
Remove redundant minimum client size adjustment (minw and minh are
...
always positive since r1.214); from Vadim Vygonets.
2016-09-01 18:34:04 +00:00
okan
6e55f9d89b
If a client sets hints, honor them for kb resize requests, just like we
...
do for mouse based resize requests.
Based on a patch from Vadim Vygonets.
2015-11-12 18:33:30 +00:00
okan
a7bbf5197e
Partial revert of replacing screen_area() with region_find(); until a
...
fix for a regression is found; this bug has been around for a long time
it seems, but this change exposed it. Likely need to track clients in to
and out of regions.
2015-11-11 14:22:01 +00:00
okan
0abb5fd0f1
Start cleaning up name vs function differences; replace magic numbers.
2015-11-10 20:05:33 +00:00
okan
ffc7945b8d
Extend region to include both view and work areas; switch to
...
region_find() which no longer needs to recalculate gap each time
a client (or menu) is created or altered. If no RandR, fall back
to display dimensions while building regions instead of during
execution.
2015-11-09 20:03:29 +00:00
okan
afa59e563a
Only when mapping clients from an initial wm start or restart, query the
...
pointer and if it matches the child window, activate it; new clients
will not need to make this roundtrip to the server.
Based on a patch from Preben Guldberg.
2015-09-23 14:09:40 +00:00
okan
cc66816c13
Mechanical change: group->gc
2015-08-27 18:53:14 +00:00
okan
72c4ff3268
Add consistent checks against NULL.
2015-08-27 18:42:56 +00:00
okan
db9c5cf159
Move client cycle grab/ungrab into a more relevant place; while here,
...
update comments about why we need to grab/ungrab the keyboard.
2015-08-27 18:40:09 +00:00
okan
66a2bc1f37
Split out sticky mode checks and the restoring of a client's group and
...
_NET_WM_DESKTOP from the config-based auto-grouping; no (intentional)
behavior changes. Needed for further work in cleaning up this area.
2015-08-25 18:29:10 +00:00
okan
ee0c4ddc88
Implement _NET_CLIENT_LIST_STACKING (from Thomas Admin), but
...
bottom-to-top order, as per spec (notified Thomas as well).
2015-08-24 15:42:57 +00:00
okan
555cb59fca
Don't allow freeze operations on fullscreen (consistent with what
...
fullscreen does).
2015-08-24 14:57:19 +00:00
okan
a0e868af33
Move CLIENT_STICKY logic from client hide/unhide to group hide/unhide;
...
rationale being that clients should be able to hide/unhide independently
of group switching.
2015-08-23 17:31:20 +00:00
okan
ba02c63913
Fix whitespace.
2015-08-21 16:52:37 +00:00
okan
1e8d4a7d04
Add client freeze extension to _NET_WM_STATE Atom, allowing flag to
...
persist. As usual with new Atoms, requires X restart.
2015-08-21 16:30:02 +00:00
okan
d01e312b01
_NET_WM_STATE_STICKY implies only sticky at the group/desktop level, not
...
position and size; based on discussion with a few.
2015-08-21 16:14:39 +00:00
okan
5640e2e0a3
Bring group and client cycle closer together.
2015-08-21 15:52:49 +00:00
okan
56fb99c70c
style
2015-07-01 14:36:42 +00:00
okan
eb3dae29d1
Re-implement XClientMessage handling so that we can feed screen_find and
...
client_find valid resources as needed, relieving the need for
screen_find to ungracefully handle invalid root windows. Removes a long
standing XXX. Should theoretically allow XClientMessage handling on
more than one X screen. Alter callers of screen_find to handle
failures.
2015-06-30 14:01:43 +00:00
okan
b7512d9dd0
move client_find down
2015-06-28 19:54:37 +00:00
okan
a585206d81
replace assert usage
2015-06-28 19:50:46 +00:00
okan
933ce723de
Mechanical change from xinerama to region backed areas.
2015-06-26 17:17:46 +00:00
okan
5a1ff2b250
stash window dimensions
2015-06-08 15:11:29 +00:00
okan
2c1757a009
fill in mwm defines
2015-05-20 23:54:39 +00:00
okan
704330faff
plug a leak
2015-03-29 00:21:05 +00:00
okan
3d638de617
First restore net_wm_state(ewmh), then wm_state(iccc); prevents clients
...
from re-hiding on restart due to flag toggling (note that this is ripe
for re-vamping). Behavior only observed on restarts.
Problem found by, and initial patch from, Henri Kemppainen (thanks!),
though ever so slightly different one applied.
2015-01-23 19:35:11 +00:00
okan
c199720bcc
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
c9178afc38
these have nothing to do with 'sticky', but rather group membership; rename.
2014-09-27 19:04:32 +00:00
okan
1d2cb82cf4
these client actions are just toggles; less confusing with better names
2014-09-17 18:41:44 +00:00
okan
9daa5fe3e6
ewmh states _NET_WM_STATE_STICKY should not alter position
2014-09-17 18:09:30 +00:00
okan
49d0fee8b5
don't toggle _WM_STATE_HIDDEN here yet
2014-09-17 16:30:21 +00:00
okan
8ffcf70d79
Implement EWMH _NET_WM_STATE_HIDDEN.
2014-09-17 16:00:44 +00:00
okan
50da66bd50
use similiar style for client flags
2014-09-15 13:00:49 +00:00
okan
3d7b8e2b10
fold in 'active' into 'flags'
2014-09-10 20:30:38 +00:00