avoid focusing a window on tab popup popdown
2001-08-29 Havoc Pennington <hp@pobox.com> * src/display.c (event_callback): avoid focusing a window on tab popup popdown * src/screen.c (meta_screen_ensure_tab_popup): compute frame outline size here
This commit is contained in:

committed by
Havoc Pennington

parent
6d31d4756e
commit
3e1c68b88a
29
src/core.c
29
src/core.c
@@ -23,24 +23,6 @@
|
||||
#include "frame.h"
|
||||
#include "workspace.h"
|
||||
|
||||
void
|
||||
meta_core_get_outer_rect (Display *xdisplay,
|
||||
Window frame_xwindow,
|
||||
GdkRectangle *rect)
|
||||
{
|
||||
MetaDisplay *display;
|
||||
MetaWindow *window;
|
||||
MetaRectangle r;
|
||||
|
||||
display = meta_display_for_x_display (xdisplay);
|
||||
window = meta_display_lookup_x_window (display, frame_xwindow);
|
||||
|
||||
if (window == NULL || window->frame == NULL)
|
||||
meta_bug ("No such frame window 0x%lx!\n", frame_xwindow);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
meta_core_get_frame_size (Display *xdisplay,
|
||||
Window frame_xwindow,
|
||||
@@ -510,3 +492,14 @@ meta_core_set_screen_cursor (Display *xdisplay,
|
||||
|
||||
meta_screen_set_cursor (window->screen, cursor);
|
||||
}
|
||||
|
||||
void
|
||||
meta_core_increment_event_serial (Display *xdisplay)
|
||||
{
|
||||
MetaDisplay *display;
|
||||
|
||||
display = meta_display_for_x_display (xdisplay);
|
||||
|
||||
meta_display_increment_event_serial (display);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user