Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bca7e28
)
XGetTransientForHint to XCB
author
David Hill
<dhill@conformal.com>
Wed, 11 Jul 2012 05:54:43 +0000
(
01:54
-0400)
committer
Reginald Kennedy
<rk@rejii.com>
Fri, 20 Jul 2012 21:58:32 +0000
(
05:58
+0800)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
1b8b74a
..
ed9a201
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-6274,7
+6274,7
@@
out:
}
void
}
void
-set_child_transient(struct ws_win *win, Window *trans)
+set_child_transient(struct ws_win *win, xcb_window_t *trans)
{
struct ws_win *parent, *w;
struct swm_region *r;
{
struct ws_win *parent, *w;
struct swm_region *r;
@@
-6305,7
+6305,7
@@
set_child_transient(struct ws_win *win, Window *trans)
w->child_trans = win;
win->transient = w->id;
*trans = w->id;
w->child_trans = win;
win->transient = w->id;
*trans = w->id;
- DNPRINTF(SWM_D_MISC, "set_child_transient: asjusting "
+ DNPRINTF(SWM_D_MISC, "set_child_transient: adjusting "
"transient to 0x%x\n", win->transient);
break;
}
"transient to 0x%x\n", win->transient);
break;
}
@@
-6356,7
+6356,7
@@
tryharder:
struct ws_win *
manage_window(xcb_window_t id)
{
struct ws_win *
manage_window(xcb_window_t id)
{
- Window trans = 0;
+ xcb_window_t trans = XCB_WINDOW_NONE;
struct workspace *ws;
struct ws_win *win, *ww;
int format, i, ws_idx, border_me = 0;
struct workspace *ws;
struct ws_win *win, *ww;
int format, i, ws_idx, border_me = 0;
@@
-6426,7
+6426,9
@@
manage_window(xcb_window_t id)
xcb_icccm_get_wm_hints_reply(conn,
xcb_icccm_get_wm_hints(conn, id),
&win->hints, NULL);
xcb_icccm_get_wm_hints_reply(conn,
xcb_icccm_get_wm_hints(conn, id),
&win->hints, NULL);
- XGetTransientForHint(display, id, &trans);
+ xcb_get_wm_transient_for_reply(conn,
+ xcb_get_wm_transient_for(conn, id),
+ &trans, NULL);
if (trans) {
win->transient = trans;
set_child_transient(win, &trans);
if (trans) {
win->transient = trans;
set_child_transient(win, &trans);