Merge lp:~compiz-team/compiz/bump-compiz-to-0.9.11.1 into lp:compiz/0.9.11

Proposed by Christopher Townsend
Status: Superseded
Proposed branch: lp:~compiz-team/compiz/bump-compiz-to-0.9.11.1
Merge into: lp:compiz/0.9.11
Diff against target: 512 lines (+216/-24)
16 files modified
NEWS (+89/-0)
VERSION (+1/-1)
compizconfig/gsettings/src/gsettings.c (+9/-3)
compizconfig/integration/gnome/gsettings/src/ccs_gnome_integration_gsettings_integrated_setting.c (+0/-2)
debian/changelog (+32/-0)
plugins/place/src/place.cpp (+2/-0)
plugins/place/src/screen-size-change/include/screen-size-change.h (+2/-0)
plugins/place/src/screen-size-change/src/screen-size-change.cpp (+6/-3)
plugins/place/src/screen-size-change/tests/screen-size-change/src/test-place-screen-size-change.cpp (+7/-0)
plugins/resize/src/logic/include/resize-logic.h (+3/-0)
plugins/resize/src/logic/src/resize-logic.cpp (+20/-5)
scripts/release.py (+14/-4)
src/event.cpp (+2/-0)
src/screen.cpp (+2/-3)
src/window.cpp (+26/-3)
src/window/extents/src/windowextents.cpp (+1/-0)
To merge this branch: bzr merge lp:~compiz-team/compiz/bump-compiz-to-0.9.11.1
Reviewer Review Type Date Requested Status
Compiz Maintainers Pending
Review via email: mp+225082@code.launchpad.net

Commit message

Bump version to 0.9.11.1.

Description of the change

Bump version to 0.9.11.1.

To post a comment you must log in.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS'
--- NEWS 2013-07-22 06:34:49 +0000
+++ NEWS 2014-06-30 20:48:27 +0000
@@ -1,3 +1,92 @@
1Release 0.9.11 (2014-6-30 Christopher Townsend <christopher.townsend@canonical.com>)
2=============================================================================
3
4Bugs Fixed (https://launchpad.net/compiz/+milestone/0.9.11)
5
6 1019139 - [regression] Horizontally resizing a vertically maximized
7 terminal is now very slow, unresponsive.
8 1019923 - Stuck in scale mode, can't get out without killing compiz
9 1027868 - Changing "Composite > Detect Refresh Rate" is ignored initially
10 1031710 - Multi-Monitor. Workspace switcher on monitor 2 is drawn under
11 launcher
12 1055166 - compiz crashed with SIGSEGV in memmove() from
13 drisw_update_tex_buffer() from dri_set_tex_buffer2() from
14 operator() from compiz::opengl::bindTexImageGLX() from ... from
15 unity::UnityWindow::DrawWindowDecoration
16 1063617 - 1:0.9.8+bzr3319-0ubuntu1 regression: keeps setting gsettings
17 keys to wrong values
18 1087090 - [raring][regression] Window management - Maximized windows
19 aren't fullscreen in the workspace switcher
20 1092323 - Window management - Switching to windows placed on two work
21 spaces causes the workspace to switch
22 1104236 - [regression] Unity show desktop fade out makes them invisible in
23 spread.
24 1171342 - mouse scroll wheel not working in gedit & System Monitor
25 1171878 - Adding/Removing an external monitor causes maximized windows to
26 move to another workspace
27 1176898 - Grid: Snap animation uses wrong window
28 1184159 - [saucy] scrolling with a touchpad is jerky with bindings set in
29 compiz for Desktop-based Viewport Switching
30 1191853 - gtk-window-decorator crashed with SIGSEGV in
31 wnck_window_get_actions()
32 1192028 - Compiz refresh rate resets to 50 Hz automatically w/ Nvidia
33 proprietary driver
34 1200829 - Regression: Enabling typical bindings in "Desktop-based
35 Viewport Switching" breaks scrollwheel scrolling in some windows
36 with a usb mouse on a laptop
37 1204307 - Regression: The size of all windows grows by the size of the
38 decoration each time Compiz gets restarted
39 1217286 - Regression r3751: Restarting Compiz changes size and position of
40 windows
41 1228352 - [regression] Alt-Tab for all viewports will not switch viewports
42 when selecting a window on another viewport
43 1228507 - Cannot move certain windows via the top half of the titlebar in
44 Ubuntu 13.10
45 1236899 - [regression] Ctrl+Alt+KP_0 should minimize a window
46 1238111 - Compiz causes Motif window shrunk
47 1240957 - Scrolling behaviour and window focus has changed and is
48 inconsistent
49 1244754 - [regression] compiz freezes when dragging a window to the top
50 bar after being semi-maximized
51 1251777 - [regression] Semi-maximizing and then restoring the window does
52 not return it to it's original place using Ctrl-Super-Left/Right
53 1277487 - Create Unity Settings Daemon so can remain on old GNOME Settings
54 Daemon version
55 1280377 - Resizing vertically a window in normal mode doesn't vertically
56 maximize it correctly
57 1280616 - When launcher is in autohide mode the launcher icons are not
58 clickable
59 1281370 - Unity should use "Normal" resize mode by default
60 1282304 - Bottom-edge window placement doesn't take decoration height into
61 consideration
62 1282305 - Repeatedly undecorating and redecorating a window shrinks it
63 vertically
64 1287472 - compiz unnecessarily shrinks new windows
65 1288953 - fix kde4-window-decorator build
66 1289820 - 'Move to Another Workspace' causes window to disappear
67 1292220 - ccsm crashed with UnboundLocalError in AskUser(): local variable
68 'msg_dict' referenced before assignment
69 1294341 - Some of the input fields are blank in CompizConfig Settings
70 Manager
71 1303068 - Regression: rev 3847 No focus on Desktop possible if a window is
72 open
73 1303462 - [Regression] Window titlebars placed behind panel
74 1304531 - Removing an external monitor will move a maximized window to the
75 current workspace
76 1304877 - Functions assigned to extra mouse buttons in compiz do not work
77 anymore.
78 1305586 - Lock screen is unusable when some windows have a keyboard/mouse
79 grab
80 1311303 - Compiz mouse functions mapped to horizontal scrolling buttons do
81 not work
82 1311788 - compiz lower window:<Alt>Button5 stops working
83 347390 - Compiz can't resize a window vertically AND horizontally with
84 keyboard.
85 890747 - Keyboard shortcut - Ctrl Alt Del doesn't do what most people
86 typing it would expect
87 992697 - Window management - 'Ctrl-Alt-Numpad 4' and 'Ctrl-Alt-Numpad 6'
88 window placement shortcuts are broken
89
1Release 0.9.10.0 (2013-7-21 Sam Spilsbury <smspillaz@gmail.com>)90Release 0.9.10.0 (2013-7-21 Sam Spilsbury <smspillaz@gmail.com>)
2================================================================91================================================================
392
493
=== modified file 'VERSION'
--- VERSION 2013-07-23 02:01:11 +0000
+++ VERSION 2014-06-30 20:48:27 +0000
@@ -1,1 +1,1 @@
10.9.1110.9.11.1
22
=== modified file 'compizconfig/gsettings/src/gsettings.c'
--- compizconfig/gsettings/src/gsettings.c 2013-02-20 14:05:36 +0000
+++ compizconfig/gsettings/src/gsettings.c 2014-06-30 20:48:27 +0000
@@ -423,13 +423,19 @@
423static void423static void
424updateSetting (CCSBackend *backend, CCSContext *context, CCSPlugin *plugin, CCSSetting *setting)424updateSetting (CCSBackend *backend, CCSContext *context, CCSPlugin *plugin, CCSSetting *setting)
425{425{
426 Bool status;
426 CCSIntegratedSetting *integrated = ccsGSettingsBackendGetIntegratedSetting (backend, setting);427 CCSIntegratedSetting *integrated = ccsGSettingsBackendGetIntegratedSetting (backend, setting);
427428
428 ccsBackendReadInit (backend, context);429 if (ccsGetIntegrationEnabled (context) &&
429 if (!readOption (backend, setting))430 integrated)
430 {431 {
432 status = readIntegratedOption (backend, setting, integrated);
433 }
434 else
435 status = readOption (backend, setting);
436
437 if (!status)
431 ccsResetToDefault (setting, TRUE);438 ccsResetToDefault (setting, TRUE);
432 }
433439
434 if (ccsGetIntegrationEnabled (context) &&440 if (ccsGetIntegrationEnabled (context) &&
435 integrated)441 integrated)
436442
=== modified file 'compizconfig/integration/gnome/gsettings/src/ccs_gnome_integration_gsettings_integrated_setting.c'
--- compizconfig/integration/gnome/gsettings/src/ccs_gnome_integration_gsettings_integrated_setting.c 2014-03-04 20:00:28 +0000
+++ compizconfig/integration/gnome/gsettings/src/ccs_gnome_integration_gsettings_integrated_setting.c 2014-06-30 20:48:27 +0000
@@ -244,8 +244,6 @@
244 /* g_settings_set_value consumes the reference */244 /* g_settings_set_value consumes the reference */
245 if (newVariant)245 if (newVariant)
246 ccsGSettingsWrapperSetValue (priv->wrapper, gsettingsTranslatedName, newVariant);246 ccsGSettingsWrapperSetValue (priv->wrapper, gsettingsTranslatedName, newVariant);
247 else
248 ccsGSettingsWrapperResetKey (priv->wrapper, gsettingsTranslatedName);
249247
250 g_variant_unref (variant);248 g_variant_unref (variant);
251 free (gsettingsTranslatedName);249 free (gsettingsTranslatedName);
252250
=== modified file 'debian/changelog'
--- debian/changelog 2014-04-23 14:56:06 +0000
+++ debian/changelog 2014-06-30 20:48:27 +0000
@@ -1,3 +1,35 @@
1compiz (1:0.9.11.1-0ubuntu1) UNRELEASED; urgency=medium
2
3 * Bump version to 0.9.11.1.
4
5 -- Chris Townsend <christopher.townsend@canonical.com> Mon, 30 Jun 2014 16:41:37 -0400
6
7compiz (1:0.9.11+14.04.20140423-0ubuntu2) UNRELEASED; urgency=medium
8
9 [ Chris Townsend ]
10 * Fix issue where window decorations would be placed under the Panel
11 when opening a new window from an already open window. This is due
12 to the already open window being taller or just as tall without be
13 maximized than the workspace. (LP: #1303462)
14 * Only constrain the non-modifier scrolling to the vertical scrolling
15 buttons - buttons 4 & 5. (LP: #1311303)
16 * Fix issue where maximized windows would get moved to different
17 workspaces when disconnecting/connecting an external monitor.
18 Windows should stay in the same workspace they are in when the
19 monitor event occurs. (LP: #1304531)
20 * Fix issue where horizontal and vertical keyboard resizing could not
21 happen at the same time. (LP: #347390)
22
23 [ Marco Trevisan (TreviƱo) ]
24 * Event: set the screen grabbed also when we get a NotifyWhileGrabbed
25 Focus{In,Out} event (LP: #1305586)
26
27 [ Lukas Vacek ]
28 * Fix issue where custom keyboard shortcuts would get reset to
29 defaults when rebooting or restarting Compiz. (LP: #1063617)
30
31 -- Chris Townsend <christopher.townsend@canonical.com> Wed, 11 Jun 2014 10:26:04 -0400
32
1compiz (1:0.9.11+14.04.20140423-0ubuntu1) trusty; urgency=low33compiz (1:0.9.11+14.04.20140423-0ubuntu1) trusty; urgency=low
234
3 [ Ryan Tandy ]35 [ Ryan Tandy ]
436
=== modified file 'plugins/place/src/place.cpp'
--- plugins/place/src/place.cpp 2013-07-22 17:19:59 +0000
+++ plugins/place/src/place.cpp 2014-06-30 20:48:27 +0000
@@ -123,6 +123,8 @@
123 state |= compiz::place::WindowAbove;123 state |= compiz::place::WindowAbove;
124 if (window->state () & CompWindowStateBelowMask)124 if (window->state () & CompWindowStateBelowMask)
125 state |= compiz::place::WindowBelow;125 state |= compiz::place::WindowBelow;
126 if (window->state () & CompWindowStateMaximizedVertMask || window->state () & CompWindowStateMaximizedHorzMask)
127 state |= compiz::place::WindowMaximized;
126128
127 return state;129 return state;
128}130}
129131
=== modified file 'plugins/place/src/screen-size-change/include/screen-size-change.h'
--- plugins/place/src/screen-size-change/include/screen-size-change.h 2012-01-20 06:27:10 +0000
+++ plugins/place/src/screen-size-change/include/screen-size-change.h 2014-06-30 20:48:27 +0000
@@ -36,6 +36,7 @@
36{36{
37namespace place37namespace place
38{38{
39 const unsigned int WindowMaximized = 1 << 2;
3940
40class ScreenSizeChangeObject41class ScreenSizeChangeObject
41{42{
@@ -50,6 +51,7 @@
50 virtual const CompPoint & getViewport () const = 0;51 virtual const CompPoint & getViewport () const = 0;
51 virtual const CompRect & getWorkarea (const compiz::window::Geometry &g) const = 0;52 virtual const CompRect & getWorkarea (const compiz::window::Geometry &g) const = 0;
52 virtual const compiz::window::extents::Extents & getExtents () const = 0;53 virtual const compiz::window::extents::Extents & getExtents () const = 0;
54 virtual unsigned int getState () const = 0;
5355
54 compiz::window::Geometry adjustForSize (const CompSize &oldSize,56 compiz::window::Geometry adjustForSize (const CompSize &oldSize,
55 const CompSize &newSize);57 const CompSize &newSize);
5658
=== modified file 'plugins/place/src/screen-size-change/src/screen-size-change.cpp'
--- plugins/place/src/screen-size-change/src/screen-size-change.cpp 2013-04-07 08:45:50 +0000
+++ plugins/place/src/screen-size-change/src/screen-size-change.cpp 2014-06-30 20:48:27 +0000
@@ -39,7 +39,7 @@
39{39{
40 int vpX, vpY;40 int vpX, vpY;
41 compiz::window::Geometry g, vpRelRect;41 compiz::window::Geometry g, vpRelRect;
42 int pivotX, pivotY;42 int pivotX, pivotY, pivotWidth, pivotHeight;
4343
44 g = getGeometry ();44 g = getGeometry ();
45 compiz::window::Geometry og (g);45 compiz::window::Geometry og (g);
@@ -50,10 +50,13 @@
50 /* FIXME: Should use saved geometry for maximized / fullscreen windows */50 /* FIXME: Should use saved geometry for maximized / fullscreen windows */
5151
52 /* calculate target vp x, y index for window's pivot point */52 /* calculate target vp x, y index for window's pivot point */
53 vpX = pivotX / oldSize.width ();53 pivotWidth = (getState () & compiz::place::WindowMaximized) ? newSize.width () : oldSize.width ();
54 pivotHeight = (getState () & compiz::place::WindowMaximized) ? newSize.height () : oldSize.height ();
55
56 vpX = pivotX / pivotWidth;
54 if (pivotX < 0)57 if (pivotX < 0)
55 vpX -= 1;58 vpX -= 1;
56 vpY = pivotY / oldSize.height ();59 vpY = pivotY / pivotHeight;
57 if (pivotY < 0)60 if (pivotY < 0)
58 vpY -= 1;61 vpY -= 1;
5962
6063
=== modified file 'plugins/place/src/screen-size-change/tests/screen-size-change/src/test-place-screen-size-change.cpp'
--- plugins/place/src/screen-size-change/tests/screen-size-change/src/test-place-screen-size-change.cpp 2013-04-16 04:24:22 +0000
+++ plugins/place/src/screen-size-change/tests/screen-size-change/src/test-place-screen-size-change.cpp 2014-06-30 20:48:27 +0000
@@ -62,6 +62,7 @@
62 const CompPoint & getViewport () const;62 const CompPoint & getViewport () const;
63 const CompRect & getWorkarea (const cw::Geometry &g) const;63 const CompRect & getWorkarea (const cw::Geometry &g) const;
64 const cw::extents::Extents & getExtents () const;64 const cw::extents::Extents & getExtents () const;
65 unsigned int getState () const;
6566
66 void setVp (const CompPoint &);67 void setVp (const CompPoint &);
67 void setWorkArea (const CompRect &);68 void setWorkArea (const CompRect &);
@@ -214,6 +215,12 @@
214 return mCurrentExtents;215 return mCurrentExtents;
215}216}
216217
218unsigned int
219StubScreenSizeChangeObject::getState () const
220{
221 return 0;
222}
223
217void224void
218StubScreenSizeChangeObject::setVp (const CompPoint &p)225StubScreenSizeChangeObject::setVp (const CompPoint &p)
219{226{
220227
=== modified file 'plugins/resize/src/logic/include/resize-logic.h'
--- plugins/resize/src/logic/include/resize-logic.h 2012-08-15 21:36:40 +0000
+++ plugins/resize/src/logic/include/resize-logic.h 2014-06-30 20:48:27 +0000
@@ -176,6 +176,9 @@
176 unsigned int output,176 unsigned int output,
177 int &op,177 int &op,
178 int &wap);178 int &wap);
179
180 unsigned int lastMaskX;
181 unsigned int lastMaskY;
179};182};
180183
181#endif /* RESIZELOGIC_H */184#endif /* RESIZELOGIC_H */
182185
=== modified file 'plugins/resize/src/logic/src/resize-logic.cpp'
--- plugins/resize/src/logic/src/resize-logic.cpp 2014-03-11 18:35:18 +0000
+++ plugins/resize/src/logic/src/resize-logic.cpp 2014-06-30 20:48:27 +0000
@@ -65,7 +65,9 @@
65 offWorkAreaConstrained (true),65 offWorkAreaConstrained (true),
66 options (NULL),66 options (NULL),
67 cScreen (NULL),67 cScreen (NULL),
68 gScreen (NULL)68 gScreen (NULL),
69 lastMaskX (0),
70 lastMaskY (0)
69{71{
70 rKeys[0].name = "Left";72 rKeys[0].name = "Left";
71 rKeys[0].dx = -1;73 rKeys[0].dx = -1;
@@ -411,6 +413,19 @@
411413
412 mask = rKeys[i].resizeMask;414 mask = rKeys[i].resizeMask;
413415
416 if ((mask & ResizeLeftMask || mask & ResizeRightMask) && (mask != lastMaskX))
417 {
418 pointerDx *= -1;
419
420 lastMaskX = mask;
421 }
422 if ((mask & ResizeUpMask || mask & ResizeDownMask) && (mask != lastMaskY))
423 {
424 pointerDy *= -1;
425
426 lastMaskY = mask;
427 }
428
414 mScreen->updateGrab (grabIndex, cursor[i]);429 mScreen->updateGrab (grabIndex, cursor[i]);
415 }430 }
416 break;431 break;
@@ -439,14 +454,14 @@
439 accumulatePointerMotion (xRoot, yRoot);454 accumulatePointerMotion (xRoot, yRoot);
440 }455 }
441456
442 if (mask & ResizeLeftMask)457 if (mask & ResizeLeftMask || lastMaskX & ResizeLeftMask)
443 wi -= pointerDx;458 wi -= pointerDx;
444 else if (mask & ResizeRightMask)459 else if (mask & ResizeRightMask || lastMaskX & ResizeRightMask)
445 wi += pointerDx;460 wi += pointerDx;
446461
447 if (mask & ResizeUpMask)462 if (mask & ResizeUpMask || lastMaskY & ResizeUpMask)
448 he -= pointerDy;463 he -= pointerDy;
449 else if (mask & ResizeDownMask)464 else if (mask & ResizeDownMask || lastMaskY & ResizeDownMask)
450 he += pointerDy;465 he += pointerDy;
451466
452 if (w->state () & CompWindowStateMaximizedVertMask)467 if (w->state () & CompWindowStateMaximizedVertMask)
453468
=== modified file 'scripts/release.py'
--- scripts/release.py 2013-07-07 19:17:59 +0000
+++ scripts/release.py 2014-06-30 20:48:27 +0000
@@ -26,11 +26,11 @@
26import datetime26import datetime
2727
28def usage ():28def usage ():
29 print ("release.py VERSION")29 print ("release.py VERSION [SINCE]")
30 print ("Make a release and bump version to VERSION")30 print ("Make a release and bump version to VERSION")
31 sys.exit (1)31 sys.exit (1)
3232
33if len(sys.argv) != 2:33if len(sys.argv) < 2:
34 usage ()34 usage ()
3535
36if not "release.py" in os.listdir ("."):36if not "release.py" in os.listdir ("."):
@@ -56,13 +56,23 @@
5656
57most_recent_revision = 057most_recent_revision = 0
5858
59# Find the last tagged revision59since = None
60
61if len (sys.argv) == 3:
62 since = sys.argv[2];
63
64# Find the last tagged revision or the specified tag
60for tag, revid in tags:65for tag, revid in tags:
61 try:66 try:
62 revision = compiz_branch.revision_id_to_dotted_revno (revid)[0]67 revision = compiz_branch.revision_id_to_dotted_revno (revid)[0]
6368
64 if int (revision) > most_recent_revision:69 if since != None:
70 if tag == since:
71 most_recent_revision = revision
72
73 elif int (revision) > most_recent_revision:
65 most_recent_revision = revision74 most_recent_revision = revision
75
66 except (errors.NoSuchRevision,76 except (errors.NoSuchRevision,
67 errors.GhostRevisionsHaveNoRevno,77 errors.GhostRevisionsHaveNoRevno,
68 errors.UnsupportedOperation):78 errors.UnsupportedOperation):
6979
=== modified file 'src/event.cpp'
--- src/event.cpp 2014-04-16 12:35:24 +0000
+++ src/event.cpp 2014-06-30 20:48:27 +0000
@@ -2333,6 +2333,8 @@
2333 case FocusOut:2333 case FocusOut:
2334 if (event->xfocus.mode == NotifyUngrab)2334 if (event->xfocus.mode == NotifyUngrab)
2335 privateScreen.eventManager.ungrabNotified ();2335 privateScreen.eventManager.ungrabNotified ();
2336 else if (event->xfocus.mode == NotifyWhileGrabbed)
2337 privateScreen.eventManager.grabNotified ();
2336 break;2338 break;
2337 case EnterNotify:2339 case EnterNotify:
2338 if (event->xcrossing.root == privateScreen.rootWindow())2340 if (event->xcrossing.root == privateScreen.rootWindow())
23392341
=== modified file 'src/screen.cpp'
--- src/screen.cpp 2014-04-16 12:35:24 +0000
+++ src/screen.cpp 2014-06-30 20:48:27 +0000
@@ -3421,12 +3421,11 @@
3421 if (ignore & ~modHandler->ignoredModMask ())3421 if (ignore & ~modHandler->ignoredModMask ())
3422 continue;3422 continue;
34233423
3424 /* Do not allow binding of the scroll wheel for windows other than the desktop3424 /* Do not allow binding of vertical scrolling for windows other than the desktop
3425 * unless there is a modifier defined */3425 * unless there is a modifier defined */
3426 if (window &&3426 if (window &&
3427 !(window->type () & CompWindowTypeDesktopMask) &&3427 !(window->type () & CompWindowTypeDesktopMask) &&
3428 bind.button > 3 &&3428 (bind.button == Button4 || bind.button == Button5) &&
3429 bind.button < 8 &&
3430 !mods)3429 !mods)
3431 continue;3430 continue;
34323431
34333432
=== modified file 'src/window.cpp'
--- src/window.cpp 2014-04-09 15:52:47 +0000
+++ src/window.cpp 2014-06-30 20:48:27 +0000
@@ -3553,11 +3553,20 @@
3553 int mask = 0;3553 int mask = 0;
3554 CompPoint viewport;3554 CompPoint viewport;
35553555
3556 if (old.intersects (CompRect (0, 0, screen->width (), screen->height ())))3556 if (old.intersects (CompRect (0, 0, screen->width (), screen->height ())) &&
3557 !(state & CompWindowStateMaximizedHorzMask || state & CompWindowStateMaximizedVertMask))
3557 viewport = screen->vp ();3558 viewport = screen->vp ();
3559 else if ((state & CompWindowStateMaximizedHorzMask || state & CompWindowStateMaximizedVertMask) &&
3560 window->moved ())
3561 viewport = initialViewport;
3558 else3562 else
3559 screen->viewportForGeometry (old, viewport);3563 screen->viewportForGeometry (old, viewport);
35603564
3565 if (viewport.x () > screen->vpSize ().width () - 1)
3566 viewport.setX (screen->vpSize ().width () - 1);
3567 if (viewport.y () > screen->vpSize ().height () - 1)
3568 viewport.setY (screen->vpSize ().height () - 1);
3569
3561 int x = (viewport.x () - screen->vp ().x ()) * screen->width ();3570 int x = (viewport.x () - screen->vp ().x ()) * screen->width ();
3562 int y = (viewport.y () - screen->vp ().y ()) * screen->height ();3571 int y = (viewport.y () - screen->vp ().y ()) * screen->height ();
35633572
@@ -4021,6 +4030,8 @@
40214030
4022 if (placed)4031 if (placed)
4023 priv->placed = true;4032 priv->placed = true;
4033
4034 priv->initialViewport = defaultViewport ();
4024}4035}
40254036
4026bool4037bool
@@ -4674,6 +4685,8 @@
4674 if (overrideRedirect ())4685 if (overrideRedirect ())
4675 return;4686 return;
46764687
4688 priv->initialViewport = screen->vp ();
4689
4677 state = constrainWindowState (state, priv->actions);4690 state = constrainWindowState (state, priv->actions);
46784691
4679 state &= MAXIMIZE_STATE;4692 state &= MAXIMIZE_STATE;
@@ -5637,8 +5650,8 @@
56375650
5638 if (!(priv->type & CompWindowTypeDesktopMask))5651 if (!(priv->type & CompWindowTypeDesktopMask))
5639 {5652 {
5640 /* Ungrab Buttons 4-7 for scrolling if the window is not the desktop window */5653 /* Ungrab Buttons 4 & 5 for vertical scrolling if the window is not the desktop window */
5641 for (int i = 4; i <= 7; i++)5654 for (int i = Button4; i <= Button5; ++i)
5642 XUngrabButton (screen->dpy (), i, AnyModifier, frame);5655 XUngrabButton (screen->dpy (), i, AnyModifier, frame);
5643 }5656 }
5644 }5657 }
@@ -5832,6 +5845,10 @@
5832 xwc.y = serverGeometry ().y () + wy;5845 xwc.y = serverGeometry ().y () + wy;
58335846
5834 configureXWindow (valueMask, &xwc);5847 configureXWindow (valueMask, &xwc);
5848
5849 if ((state () & CompWindowStateMaximizedHorzMask || state () & CompWindowStateMaximizedVertMask) &&
5850 (defaultViewport () == screen->vp ()))
5851 priv->initialViewport = screen->vp ();
5835 }5852 }
5836}5853}
58375854
@@ -6664,6 +6681,9 @@
66646681
6665 if (xwc.x < workarea.x ())6682 if (xwc.x < workarea.x ())
6666 xwc.x = workarea.x () + movement.x ();6683 xwc.x = workarea.x () + movement.x ();
6684
6685 if (xwc.x - boffset.x () < workarea.x ())
6686 xwc.x += boffset.x ();
6667 }6687 }
66686688
6669 if (xwc.y + xwc.height > workarea.y2 ())6689 if (xwc.y + xwc.height > workarea.y2 ())
@@ -6672,6 +6692,9 @@
66726692
6673 if (xwc.y < workarea.y ())6693 if (xwc.y < workarea.y ())
6674 xwc.y = workarea.y () + movement.y ();6694 xwc.y = workarea.y () + movement.y ();
6695
6696 if (xwc.y - boffset.y () < workarea.y ())
6697 xwc.y += boffset.y ();
6675 }6698 }
66766699
6677 if (priv->actions & CompWindowActionResizeMask)6700 if (priv->actions & CompWindowActionResizeMask)
66786701
=== modified file 'src/window/extents/src/windowextents.cpp'
--- src/window/extents/src/windowextents.cpp 2014-03-10 12:53:17 +0000
+++ src/window/extents/src/windowextents.cpp 2014-06-30 20:48:27 +0000
@@ -43,6 +43,7 @@
43 case NorthGravity:43 case NorthGravity:
44 case NorthWestGravity:44 case NorthWestGravity:
45 case NorthEastGravity:45 case NorthEastGravity:
46 case CenterGravity:
46 rv.setY (extents.top);47 rv.setY (extents.top);
47 break;48 break;
48 case SouthGravity:49 case SouthGravity:

Subscribers

People subscribed via source and target branches

to all changes: