XXX remove this some day...that would be nice. but really unexpected
from Sun Microsystems.
*/
- g_print("x %d y %d grav %d %d\n", x, y, client->gravity, NorthWestGravity);
- if (x == 0 && y == 0 && client->gravity == NorthWestGravity) {
+ if (x == 0 && y == 0 && client->gravity == NorthWestGravity &&
+ client_normal(client))
+ {
const Rect to = { x, y, w, h };
/* oldschool fullscreen windows are allowed */
} else if (msgtype == XA_WM_HINTS) {
client_update_wmhints(client);
} else if (msgtype == XA_WM_TRANSIENT_FOR) {
- client_update_transient_for(client);
+ /* get the transient-ness first, as this affects if the client
+ decides to be transient for the group or not in
+ client_update_transient_for() */
client_get_type_and_transientness(client);
+ client_update_transient_for(client);
/* type may have changed, so update the layer */
client_calc_layer(client);
client_setup_decor_and_functions(client, TRUE);
ret = TRUE;
}
- else if (sym == XK_Return) {
+ else if (sym == XK_Return || sym == XK_KP_Enter) {
frame->press_doexec = TRUE;
ret = TRUE;
}