okan
25ca41475e
revert 1.138 (WM_TAKE_FOCUS) for now
2013-10-20 01:35:47 +00:00
okan
d5f92c3e42
Using xu_btn_ungrab() buttons during client_leave doesn't work (error
...
BadValue) when the modifier is already AnyModifier . Instead alter
xu_btn_ungrab() to ungrab AnyButton/AnyModifier and call it only when a
client is coming into focus in client_setactive(), instead of iterating
over ignore mods - matches how we handle key grabs.
2013-10-19 19:39:34 +00:00
okan
70cf49457d
I believe we redraw the border in too many cases; likely a leftover from
...
the cc->pwin days - don't redraw on every unhide, resize, and mouse
move/resize Expose event (note, all Expose events trigger a redraw
anyway).
Tested with some finicky X apps I could think of, though I'm sure others
will find more - if so, and they 'lose' the border, please report!
2013-10-19 18:59:22 +00:00
okan
f2ed8ceb47
For clients that support WM_TAKE_FOCUS in their WM_PROTOCOLS property, send
...
a ClientMessage event.
2013-10-19 00:24:54 +00:00
okan
78f4db5140
unify type; no change
2013-10-03 13:51:57 +00:00
okan
76b17dcb11
collapse lines
2013-07-15 23:51:59 +00:00
okan
1ca1aa39ab
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
356be89e9f
move synthetic responses and have client_msg only work with WM_PROTOCOLS,
...
since that's all ClientMessageEvent is for anyway.
2013-06-10 21:37:30 +00:00
okan
4c52391113
alter conf_grab(_kbd) to first ungrab AnyKey/AnyModifier, then proceed
...
to grab keys in keybindingq. we don't need to ungrab/grab on every
addition to the queue, just once with a complete keybindingq; simplify
grabbing keys per screen (during init) and during a MappingNotify.
while here, change conf_grab_{kbd,mouse} to require only a Window.
2013-05-23 16:52:39 +00:00
okan
0667dd4edd
add support for _NET_WM_STATE_MAXIMIZED_{HORZ,VERT}; from Alexander Polakov.
...
while I'm unsure of the final look of _NET_WM_STATE, there's no reason
to delay this support.
2013-05-20 21:13:58 +00:00
okan
9baf72c106
- switch border colors to Xft
...
- merge border/menu color structures/functions since they now both use Xft
- switch xu_xorcolor to operating on XftColor instead of just
XRenderColor (basically adding pixel)
- if color name allocation fails, revert back to default (this, along
with font validation should occur during config parse, but we don't
have screens setup yet - likely to change at some point)
2013-05-19 23:09:59 +00:00
okan
f67063c034
use XGetWMProtocols and simplify WM_PROTOCOL handling
2013-05-19 17:02:04 +00:00
okan
7ab1469590
new -> init
2013-05-11 22:01:07 +00:00
okan
52cbef8a12
remove group in client_delete directly.
2013-05-06 16:03:11 +00:00
okan
fe3f832f4b
mechanical xu_{get,set}state -> xu_{get,set}_wm_state change
2013-04-17 13:57:06 +00:00
okan
62aed144f2
slightly rework WM_STATE set/get to make it less ambigious; will be more clear
...
on what needs to change to make it right in the end.
2013-04-17 13:52:20 +00:00
okan
726def3405
only a window is required to set WM_STATE. also un-confuse xu_ptr_getpos
...
by using 'win' instead of 'rootwin' so as not to imply only the root
window is queried, rather any window.
2013-04-14 16:13:17 +00:00
okan
461decc718
we handle WM_STATE here, so remove misleading comment.
2013-04-12 20:54:27 +00:00
okan
2dfe178aa9
we already set window state in client_hide or client_unhide right before, so
...
there's no need to do it again.
2013-04-12 20:45:57 +00:00
okan
13a11c8799
zap stray whitespace
2013-04-05 17:07:25 +00:00
okan
1eec28aa57
- no reason to breakout ClassHints work, so fold into client_{new,delete},
...
but keep _MOTIF_WM_HINTS separate.
- simplify fetching app/class hint.
- fix _MOTIF_WM_HINTS Atom type.
2013-04-03 20:22:55 +00:00
okan
b0d374e0fb
move XUngrabServer to the end of client_new() to avoid races where clients,
...
such as those using sdl, attempt to manage the clients themselves when the
clients aren't fully ready. other wm's grab the xserver during the whole
client setup process, so match.
behavior found by jsg.
2013-04-03 19:20:50 +00:00
okan
a56cb7d9d2
add per-group vert/horiz tiling support; introduces 2 new bind commands,
...
'vtile' and 'htile'; from Alexander Polakov.
2013-01-08 15:16:04 +00:00
okan
62ff18b6d7
teach screen_find_xinerama() about gap and adjust (simplify) callers;
...
menu becomes gap-aware for free.
2013-01-08 04:12:51 +00:00
okan
1124cee92f
fix menu/client placement in panning setups; XineramaQueryScreens gives
...
us the width of the psuedo screen, but here we need the edge instead
(xmax/ymax); just re-use w/h here for now.
2013-01-07 21:53:23 +00:00
okan
968dc645ee
use cc->bwidth in client_vmax since we've yet to reset it (matches
...
client_hmax); from Jan Stary
2013-01-06 01:01:26 +00:00
okan
65585e276f
rename {h,v}max functions for consistency; from Jan Stary
2013-01-04 16:30:03 +00:00
okan
9e11fcccad
get rid of struct color
2013-01-04 16:23:04 +00:00
okan
7fa6ca94df
re-work client_snapcalc() so it takes client and edge dimensions with
...
snapdist; allows for simplier snap calculations.
required for an upcoming diff for honoring gap.
2013-01-02 21:37:21 +00:00
okan
10e814fedf
have screen_find_xinerama() return struct geom *reliably* instead of
...
XineramaScreenInfo; simplifies goop around the callers.
2013-01-02 16:26:34 +00:00
okan
23c2576b3c
more variable consistency
2013-01-02 02:19:20 +00:00
okan
621a7f2c53
info->xine, for consistent variable names
2013-01-02 02:02:08 +00:00
okan
f67f32f8a5
replace emptystring with strdup here as well so we know we are free'ing
...
a malloc'd variable everytime; from Tiago Cunha
2013-01-01 14:26:29 +00:00
okan
12bed5f129
make num of groups no longer off-by-one; from Alexander Polakov
...
note that a re-exec of cwm will not rewrite the group number atom of
*existing* clients, so they will remain off-by-one until each client has
its atom updated, or of course a restart of X.
2013-01-01 14:19:56 +00:00
okan
b08541104f
cmap -> colormap in client_ctx
2012-12-17 18:35:26 +00:00
okan
8f15d97537
replace client highlight with a client flag
2012-12-17 17:48:57 +00:00
okan
4ef0e7d9d2
make client_mtf static
2012-12-17 14:58:46 +00:00
okan
b926f75dcc
current_client() returns _curcc, so use it where appropriate
2012-12-17 14:26:29 +00:00
okan
4f78cb6835
sort
2012-11-09 03:52:02 +00:00
okan
1e3fec4362
get rid of the xfree() wrapper around free(); from Tiago Cunha.
2012-11-07 20:34:39 +00:00
okan
ab1deebeda
extend client_resize so that it can know when to reset max flags and
...
bwidth; this allows a client to be resized from a max state, which now
gets treated like a non-max'd client. based on a diff that does part of
this in a different way from Alexander Polakov.
2012-09-09 19:47:47 +00:00
okan
476b0dcf17
unify various max routines to match client placement and partially menu ones
...
when calculating screen dimensions.
2012-07-16 01:53:14 +00:00
okan
147b66e3ac
move the HasXinerama check into screen_find_xinerama and simplify logic;
...
moves closer to logic in menu code.
2012-07-16 01:36:30 +00:00
okan
94b92cf7fb
re-use geom struct in client_ctx (saved)geometry.
2012-07-13 17:01:04 +00:00
okan
6ee7c6534f
convert xmax/ymax uses to view geometry.
2012-07-13 15:21:35 +00:00
okan
74ef1605a1
fix missing atom (WM_PROTOCOLS) wrt new style handing; without this, the
...
window manager didn't know if a client supported CLIENT_PROTO_DELETE and
thus used a hammer, XKillClient.
behaviour reported by Tim van der Molen.
2012-07-04 18:00:13 +00:00
okan
d24974f4cb
re-implement atom handing; makes for a normalized and more consistent
...
separation between cwm and ewmh. seen by a few.
2012-07-03 13:49:03 +00:00
okan
adfd269db7
cycle through other common cycling modifiers; based on a diff from
...
Alexander Polakov.
ok sthen@
2012-05-16 01:09:17 +00:00
okan
87d3c25241
altpersist->cycling to be more clear that this is for cycling mod
...
persistence; based on a diff from Alexander Polakov, in preparation for
looping through other potential cycling modifiers.
2012-05-13 15:17:13 +00:00
okan
6dcdd18c5a
knf, some from a diff from Tiago Cunha.
2012-05-13 15:15:54 +00:00