...
This commit is contained in:
parent
944d730cd1
commit
8a2841a8ab
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
SUBDIRS=src intl po
|
SUBDIRS=src
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ fi
|
|||||||
changequote([,])dnl
|
changequote([,])dnl
|
||||||
|
|
||||||
ALL_LINGUAS=""
|
ALL_LINGUAS=""
|
||||||
AM_GNU_GETTEXT
|
dnl AM_GNU_GETTEXT
|
||||||
|
|
||||||
## here we get the flags we'll actually use
|
## here we get the flags we'll actually use
|
||||||
PKG_CHECK_MODULES(METACITY, gtk+-2.0 >= 1.3.6)
|
PKG_CHECK_MODULES(METACITY, gtk+-2.0 >= 1.3.6)
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
INCLUDES=@METACITY_CFLAGS@ -DMETACITY_LIBEXECDIR=\"$(libexecdir)\" -DHOST_ALIAS=\"@HOST_ALIAS@\"
|
INCLUDES=@METACITY_CFLAGS@ -DMETACITY_LIBEXECDIR=\"$(libexecdir)\" -DHOST_ALIAS=\"@HOST_ALIAS@\"
|
||||||
|
|
||||||
metacity_SOURCES= \
|
metacity_SOURCES= \
|
||||||
|
common.h \
|
||||||
core.c \
|
core.c \
|
||||||
core.h \
|
core.h \
|
||||||
display.c \
|
display.c \
|
||||||
|
15
src/window.c
15
src/window.c
@ -418,7 +418,7 @@ meta_window_new (MetaDisplay *display, Window xwindow,
|
|||||||
window->type == META_WINDOW_TOOLBAR ||
|
window->type == META_WINDOW_TOOLBAR ||
|
||||||
window->type == META_WINDOW_MENU)
|
window->type == META_WINDOW_MENU)
|
||||||
{
|
{
|
||||||
if ((window->size_hints.flags & PPosition) == 0)
|
if (window->size_hints.flags & PPosition)
|
||||||
{
|
{
|
||||||
window->placed = TRUE;
|
window->placed = TRUE;
|
||||||
meta_verbose ("Not placing non-normal non-dialog window with PPosition set\n");
|
meta_verbose ("Not placing non-normal non-dialog window with PPosition set\n");
|
||||||
@ -1721,14 +1721,17 @@ meta_window_configure_request (MetaWindow *window,
|
|||||||
|
|
||||||
meta_window_get_gravity_position (window, &x, &y);
|
meta_window_get_gravity_position (window, &x, &y);
|
||||||
|
|
||||||
if (FALSE && /* For now, always ignore program-specified positions. */
|
if ((window->type == META_WINDOW_DESKTOP ||
|
||||||
|
window->type == META_WINDOW_DOCK ||
|
||||||
|
window->type == META_WINDOW_TOOLBAR ||
|
||||||
|
window->type == META_WINDOW_MENU) &&
|
||||||
(window->size_hints.flags & PPosition))
|
(window->size_hints.flags & PPosition))
|
||||||
{
|
{
|
||||||
if (event->xconfigurerequest.value_mask & CWX)
|
if (event->xconfigurerequest.value_mask & CWX)
|
||||||
x = event->xconfigurerequest.x;
|
x = event->xconfigurerequest.x;
|
||||||
|
|
||||||
if (event->xconfigurerequest.value_mask & CWY)
|
if (event->xconfigurerequest.value_mask & CWY)
|
||||||
y = event->xconfigurerequest.y;
|
y = event->xconfigurerequest.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
width = window->rect.width;
|
width = window->rect.width;
|
||||||
|
@ -248,6 +248,14 @@ void meta_window_queue_move_resize (MetaWindow *window);
|
|||||||
void meta_window_get_position (MetaWindow *window,
|
void meta_window_get_position (MetaWindow *window,
|
||||||
int *x,
|
int *x,
|
||||||
int *y);
|
int *y);
|
||||||
|
/* gets position we need to set to stay in current position,
|
||||||
|
* assuming position will be gravity-compensated. i.e.
|
||||||
|
* this is the position a client would send in a configure
|
||||||
|
* request.
|
||||||
|
*/
|
||||||
|
void meta_window_get_gravity_position (MetaWindow *window,
|
||||||
|
int *x,
|
||||||
|
int *y);
|
||||||
void meta_window_delete (MetaWindow *window,
|
void meta_window_delete (MetaWindow *window,
|
||||||
Time timestamp);
|
Time timestamp);
|
||||||
void meta_window_focus (MetaWindow *window,
|
void meta_window_focus (MetaWindow *window,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user