Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b7e33a43
Commit
b7e33a43
authored
Jul 18, 2007
by
Jan Djärv
Browse files
(x_ewmh_activate_frame): New function.
(XTframe_raise_lower): Move code to x_ewmh_activate_frame.
parent
457a6b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
26 deletions
+24
-26
src/xterm.c
src/xterm.c
+24
-26
No files found.
src/xterm.c
View file @
b7e33a43
...
...
@@ -8853,38 +8853,36 @@ x_lower_frame (f)
}
}
/* Activate frame with Extended Window Manager Hints */
void
x_ewmh_activate_frame (f)
FRAME_PTR f;
{
/* See Window Manager Specification/Extended Window Manager Hints at
http://freedesktop.org/wiki/Standards_2fwm_2dspec */
const char *atom = "_NET_ACTIVE_WINDOW";
if (f->async_visible && wm_supports (f, atom))
{
Lisp_Object frame;
XSETFRAME (frame, f);
Fx_send_client_event (frame, make_number (0), frame,
make_unibyte_string (atom, strlen (atom)),
make_number (32),
Fcons (make_number (1),
Fcons (make_number (last_user_time),
Qnil)));
}
}
static void
XTframe_raise_lower (f, raise_flag)
FRAME_PTR f;
int raise_flag;
{
if (raise_flag)
{
/* The following code is needed for `raise-frame' to work on
some versions of metacity; see Window Manager
Specification/Extended Window Manager Hints at
http://freedesktop.org/wiki/Standards_2fwm_2dspec */
#if 0
/* However, on other versions (metacity 2.17.2-1.fc7), it
reportedly causes hangs when resizing frames. */
const char *atom = "_NET_ACTIVE_WINDOW";
if (f->async_visible && wm_supports (f, atom))
{
Lisp_Object frame;
XSETFRAME (frame, f);
Fx_send_client_event (frame, make_number (0), frame,
make_unibyte_string (atom, strlen (atom)),
make_number (32),
Fcons (make_number (1),
Fcons (make_number (last_user_time),
Qnil)));
}
else
#endif
x_raise_frame (f);
}
x_raise_frame (f);
else
x_lower_frame (f);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment