mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
...
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
|
||||
|
||||
ALL_LINGUAS=""
|
||||
AM_GNU_GETTEXT
|
||||
dnl AM_GNU_GETTEXT
|
||||
|
||||
## here we get the flags we'll actually use
|
||||
PKG_CHECK_MODULES(METACITY, gtk+-2.0 >= 1.3.6)
|
||||
|
@ -2,6 +2,7 @@
|
||||
INCLUDES=@METACITY_CFLAGS@ -DMETACITY_LIBEXECDIR=\"$(libexecdir)\" -DHOST_ALIAS=\"@HOST_ALIAS@\"
|
||||
|
||||
metacity_SOURCES= \
|
||||
common.h \
|
||||
core.c \
|
||||
core.h \
|
||||
display.c \
|
||||
|
17
src/window.c
17
src/window.c
@ -418,7 +418,7 @@ meta_window_new (MetaDisplay *display, Window xwindow,
|
||||
window->type == META_WINDOW_TOOLBAR ||
|
||||
window->type == META_WINDOW_MENU)
|
||||
{
|
||||
if ((window->size_hints.flags & PPosition) == 0)
|
||||
if (window->size_hints.flags & PPosition)
|
||||
{
|
||||
window->placed = TRUE;
|
||||
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);
|
||||
|
||||
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))
|
||||
{
|
||||
if (event->xconfigurerequest.value_mask & CWX)
|
||||
x = event->xconfigurerequest.x;
|
||||
|
||||
if (event->xconfigurerequest.value_mask & CWY)
|
||||
y = event->xconfigurerequest.y;
|
||||
if (event->xconfigurerequest.value_mask & CWX)
|
||||
x = event->xconfigurerequest.x;
|
||||
|
||||
if (event->xconfigurerequest.value_mask & CWY)
|
||||
y = event->xconfigurerequest.y;
|
||||
}
|
||||
|
||||
width = window->rect.width;
|
||||
|
@ -248,6 +248,14 @@ void meta_window_queue_move_resize (MetaWindow *window);
|
||||
void meta_window_get_position (MetaWindow *window,
|
||||
int *x,
|
||||
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,
|
||||
Time timestamp);
|
||||
void meta_window_focus (MetaWindow *window,
|
||||
|
Loading…
Reference in New Issue
Block a user