mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
Revert "[x11] Don't set actor size on ConfigureNotify"
This reverts commit 29cc027f06
.
I misunderstood the problem, this commit breaks resizes coming from
outside of Clutter.
This commit is contained in:
parent
29cc027f06
commit
8083dc418b
@ -485,6 +485,10 @@ event_translate (ClutterBackend *backend,
|
|||||||
xevent->xconfigure.width,
|
xevent->xconfigure.width,
|
||||||
xevent->xconfigure.height);
|
xevent->xconfigure.height);
|
||||||
|
|
||||||
|
clutter_actor_set_size (CLUTTER_ACTOR (stage),
|
||||||
|
xevent->xconfigure.width,
|
||||||
|
xevent->xconfigure.height);
|
||||||
|
|
||||||
CLUTTER_UNSET_PRIVATE_FLAGS (stage_x11->wrapper,
|
CLUTTER_UNSET_PRIVATE_FLAGS (stage_x11->wrapper,
|
||||||
CLUTTER_STAGE_IN_RESIZE);
|
CLUTTER_STAGE_IN_RESIZE);
|
||||||
|
|
||||||
|
@ -220,12 +220,10 @@ clutter_stage_x11_resize (ClutterStageWindow *stage_window,
|
|||||||
CLUTTER_NOTE (BACKEND, "New size received: (%d, %d)", width, height);
|
CLUTTER_NOTE (BACKEND, "New size received: (%d, %d)", width, height);
|
||||||
|
|
||||||
if (width != stage_x11->xwin_width ||
|
if (width != stage_x11->xwin_width ||
|
||||||
height != stage_x11->xwin_height ||
|
height != stage_x11->xwin_height)
|
||||||
stage_x11->first_allocation)
|
|
||||||
{
|
{
|
||||||
stage_x11->xwin_width = width;
|
stage_x11->xwin_width = width;
|
||||||
stage_x11->xwin_height = height;
|
stage_x11->xwin_height = height;
|
||||||
stage_x11->first_allocation = FALSE;
|
|
||||||
|
|
||||||
if (stage_x11->xwin != None && !stage_x11->is_foreign_xwin)
|
if (stage_x11->xwin != None && !stage_x11->is_foreign_xwin)
|
||||||
{
|
{
|
||||||
@ -661,7 +659,6 @@ clutter_stage_x11_init (ClutterStageX11 *stage)
|
|||||||
stage->xwin = None;
|
stage->xwin = None;
|
||||||
stage->xwin_width = 640;
|
stage->xwin_width = 640;
|
||||||
stage->xwin_height = 480;
|
stage->xwin_height = 480;
|
||||||
stage->first_allocation = TRUE;
|
|
||||||
|
|
||||||
stage->wm_state = STAGE_X11_WITHDRAWN;
|
stage->wm_state = STAGE_X11_WITHDRAWN;
|
||||||
|
|
||||||
|
@ -54,7 +54,6 @@ struct _ClutterStageX11
|
|||||||
guint fullscreen_on_map : 1;
|
guint fullscreen_on_map : 1;
|
||||||
guint is_cursor_visible : 1;
|
guint is_cursor_visible : 1;
|
||||||
guint viewport_initialized : 1;
|
guint viewport_initialized : 1;
|
||||||
guint first_allocation : 1;
|
|
||||||
|
|
||||||
Window xwin;
|
Window xwin;
|
||||||
gint xwin_width;
|
gint xwin_width;
|
||||||
|
Loading…
Reference in New Issue
Block a user