Commit Graph

1179 Commits

Author SHA1 Message Date
Danielle Foré
28954a6953
Dialogs: use computer-fail for force quit dialog (#1432) 2022-06-09 21:14:15 +00:00
Danielle Foré
14cdefed9d
WindowClone: explicit namespace, make internal classes private (#1433) 2022-05-24 21:42:48 +00:00
Danielle Foré
87547ef50f
WindowManager: set workspace switch duration directly (#1429) 2022-05-24 08:48:28 -07:00
Danielle Foré
1f94db16c6
WindowManager: save/restore easing on workspace switch (#1430) 2022-05-23 19:11:51 -07:00
Josh Mars
f09b95c564
hotcorners: Add a minimum time delay between trigger and re-trigger events(#1421) 2022-05-22 19:09:14 +00:00
José Expósito
f74d8fdad5
Granite drawing removals (#1428)
* Drawing: Migrate functions removed from Granite 7

Some drawing utilities used by Gala were removed from Granite 7:
https://github.com/elementary/granite/pull/603

Add them to Gala.

* Drawing: Use drawings functions from Gala instead of Granite
2022-05-22 18:02:45 +00:00
Danielle Foré
fc838d7add
MultitaskingView: Remove key_focus_out override (#1418) 2022-05-16 08:07:39 +00:00
Danielle Foré
890f78d7f9
WorkspaceClone: draw stroke with Cairo (#1419) 2022-05-14 14:15:46 -07:00
Vishal Rao
e0095415cd
Fix initial alt-tab switcher indicator visibility. (#1417) 2022-05-12 12:16:38 -07:00
David Hewitt
e86a9518c2
Move screenshot shortcuts in-house (#1411) 2022-04-23 15:26:40 -07:00
David Hewitt
1e223b3027
Move panel-main-menu schema in house (#1409) 2022-04-22 18:00:27 +02:00
Vishal Rao
f9008e4f7a
WindowSwitcher: Fix missing focus on selected window upon release key with Mutter 42 (#1408) 2022-04-22 13:41:30 +02:00
Corentin Noël
9641704ec7
Use Clutter.Grab with Mutter 42 (#1407) 2022-04-21 15:33:24 -07:00
Corentin Noël
60861a4c70
Update to latest mutter bindings and use Transition objects (#1406)
This allows for a better transition handling than setting properties.
2022-04-21 15:28:36 -07:00
José Expósito
268a1976df Tooltip: Remove text size workaround for Mutter 10
Previous to Mutter 10 it was necessary to set the text size to large in
order to avoid displaying a tiny text in a Clutter.Text.

With Mutter 10, the default text size matches the system font size and
the workaround is no longer necessary.
2022-04-12 21:26:51 +00:00
Gustavo Marques
f0916a669b
Dialogs: add CloseDialog (#1340) 2022-04-07 09:29:59 -07:00
Jeremy Wootten
7a13e044bb
Fix compile warnings (#1384)
* Fix GObject property warnings

* Fix hiding set_size function

* Fix duration type conversion

* Fix faulty conflict resolution

* Do not clamp duration

* Reduce indentation

* Return unowned region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned custom region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned keybinding filter

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned Xrectangle

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Codestyle

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* unowned var filter

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* unowned var custom_region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>
2022-04-05 10:01:39 +00:00
David Hewitt
edc3bfd09f
Allow super key in multitasking view (#1393) 2022-03-30 11:49:25 +00:00
Jeremy Wootten
e3a9953607 Remove redundant test 2022-03-10 20:09:55 +01:00
Corentin Noël
cdcb87afcb Update bindings to latest Mutter
Update to mutter 42.beta
2022-03-10 11:20:47 +00:00
José Expósito
1a2109e571 WindowClone: Remove Granite.CloseButtonPosition
The API Granite.CloseButtonPosition has been deprecated [1].

Remove it from Gala and use Mutter's API to get the close button
position.

[1] https://github.com/elementary/granite/pull/568
2022-01-23 10:12:24 +01:00
Corentin Noël
7ce7414132 Add support for Mutter 42 2022-01-18 15:26:24 +01:00
Tom Beckmann
e43ae576ca fix workspace clone not resizing on monitor geometry changes 2021-12-27 08:47:05 +01:00
Tom Beckmann
26ebdae58a some windows may report null for their titles, catch that case when assigning tooltips 2021-12-27 08:47:05 +01:00
Tom Beckmann
33cd59742f fix segfault if portal could not be acquired 2021-12-27 08:47:05 +01:00
Tom Beckmann
8a433d7030 opacity transition on WindowIcons can be null on WM startup 2021-12-27 08:47:05 +01:00
Jack Gleeson
eb70d6dbba
Always subtract from nat_width the scaled padding over children count (#1336)
This fixes an off-by-one adjacent error that left the indicator off by
an amount based on the scale factor times the children.

Co-authored-by: José Expósito <jose.exposito89@gmail.com>
2021-12-12 19:00:47 +00:00
Tom Beckmann
962accdf1a
switcher: fix container staying reactive in scene
Fix #1322
2021-12-12 18:50:34 +00:00
Danielle Foré
a1fc426b42
WindowManager: Rewrite display settings labels (#1329) 2021-12-01 22:39:54 +00:00
Gustavo Marques
e1f3a15102
Dialogs: add AccessDialog class (#1327) 2021-12-01 22:28:52 +00:00
José Expósito
cce53acffe WindowSwitcher: Clear indicator background
Since 0c64b60729 the window switcher
indicator shows artifacts as background.

Clear it before painting to make sure the background is properly
displayed.
2021-11-29 11:37:55 +01:00
José Expósito
92d3a735e5 WindowSwitcher: Follow accent color
Repaint the window switcher indicator when the accent color changes.

Fix #1316
2021-11-28 11:50:12 -07:00
Corentin Noël
cc83db8fe3 WindowSwitcher: Simplify the window indicator by handling directly its content
Remove the RoundedActor class.
2021-11-25 13:40:24 +01:00
luzpaz
faac78782c
Fix various typos (#1310)
* Fix various typos

Found via `codespell -q 3 -S *.po`

* Fix deamon->daemon

Co-authored-by: Jeremy Wootten <jeremy@elementaryos.org>
2021-11-20 16:56:53 +00:00
Danielle Foré
6b65615de4
WindowManager: don't type check when undim (#1304) 2021-11-18 14:58:02 -08:00
Danielle Foré
9d416f6b26 Update src/Widgets/WindowClone.vala
Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
2021-11-16 23:50:30 +01:00
Danielle Foré
c544da1364 WindowClone: Include spread in bounding box 2021-11-16 23:50:30 +01:00
Danielle Foré
869aa70cfe
Tooltip: get text color from style context (#1295)
* Tooltip: get text color from style context

* cache the math
2021-11-10 07:27:45 +01:00
Danielle Foré
1e3a7c171a
WindowManager: dialogs fall down (#1297)
* WindowManager: dialogs fall down

* Update gala.appdata.xml.in

Co-authored-by: José Expósito <jose.exposito89@gmail.com>
2021-11-07 02:36:25 +01:00
Danielle Foré
e1bd8bc306
WindowManager: explicitly dim and undim (#1298) 2021-11-06 15:39:31 -07:00
Danielle Foré
336332f4e7
Remove DockThemeManager (#1294) 2021-11-06 18:17:57 +00:00
Danielle Foré
ebfa8ea45d
Tooltip: null check text_actor before removing (#1293) 2021-11-06 17:59:39 +00:00
Danielle Foré
de1b897bab
WindowManager: dim parents of modals (#1285) 2021-11-06 17:00:51 +00:00
Danielle Foré
65da8f7767 MultitaskingView: don't set custom easing mode 2021-11-06 10:08:05 +01:00
Danielle Foré
e5523a2afb IconGroupContainer: add null check to get_next_sibling 2021-11-06 10:02:49 +01:00
Corentin Noël
9d6f980d19 Handle signal to close Gala gracefully on Mutter 3.41
Closes #1258
2021-11-06 09:57:26 +01:00
Danielle Foré
72869e0e34
WindowManager: handle empty action keys (#1290) 2021-11-05 16:37:25 -07:00
Felix Andreas
4eeaca579b open WindowSwitcher on current monitor 2021-11-05 10:30:05 +01:00
José Expósito
2fbe184042
multitasking: Show nudge animation only on the primary display (#1275)
When the multitasking view is opened and a the keyboard shortcuts are
used to switch between workspaces, avoid showing the nudge/bump
animation on the non-primary display.

Partially address #927
2021-11-03 19:09:57 +00:00
David Hewitt
52cbc3cc7b
Bring "Catts" in-tree (#1234) 2021-11-02 11:56:54 -07:00
José Expósito
a682b59ae6
multitasking: Enable bump animation for mouse scroll (#1270) 2021-10-27 16:13:03 -07:00
José Expósito
d2dcfdefdf
multitasking: Don't use smooth scroll events to handle mouse wheel (#1266)
Instead of relying on a magic value to know detect mouse wheel "clicks"
use the discrete events sent by Mutter.

This will avoid breaking the multitasking scroll once
xf86-input-libinput 1.2.0 lands in Ubuntu with high-resolution scroll
wheel support.
2021-10-09 20:52:30 +00:00
David Hewitt
d425959aa2
Add systemd units (#1256) 2021-09-29 18:51:50 +00:00
Bobby Rong
fe45c2d07e Fix session crash when taking screenshots with mutter 3.38 2021-09-29 09:39:32 +02:00
José Expósito
49e20812ed background: Fix crash changing wallpaper
Fix a regression changing the wallpaper introduced in
4aec79ae0d

The lambda function wasn't capturing the value of "i". Instead,
"OPTIONS.length" was always used.
2021-09-10 09:16:09 +02:00
Corentin Noël
78abc34aca Do not use color properties directly
They are being copied when retrieving as they are simple structs.
2021-09-10 08:00:04 +02:00
Daniel Foré
5f26f2fd0c Tooltip: render from stylecontext 2021-09-08 14:17:33 -06:00
José Expósito
e2b86b2392 hot corners: Pressure corner to trigger
In order to avoid accidental triggers, don't trigger the hot corner
until a given threshold is reached.

Fix #1100
2021-09-01 08:55:14 +02:00
José Expósito
2eb419ea88 hot corners: Pressure corner to trigger again
When the mouse pointer pressures the hot corner after activation,
trigger the action again when a given threshold is reached without
requiring  to leave and enter the hot corner again.

Fix #1078
2021-09-01 08:55:14 +02:00
José Expósito
c483cbe663 hot corners: Release the barrier after pressure
When the mouse pointer pressures the barrier without activating the hot
corner, release it when a given threshold is reached.
2021-09-01 08:55:14 +02:00
José Expósito
0696ede909 hot corners: Use barriers
Use Meta.Barrier to implement the hot corner functionality instead of
using a Clutter.Actor.

This approach makes easier to trigger the hot corner in multi-monitor
setups and avoids capturing events accidentally.

Fix #719
Fix #1054
2021-09-01 08:55:14 +02:00
José Expósito
a5f32b3331 hot corners: Refactor hot corners
Move the hot corners code from the WindowManager to its own class.

Refator, no functional changes.
2021-09-01 08:55:14 +02:00
Corentin Noël
9a137bd707 Add initial support for Mutter 41 2021-08-30 17:47:55 +02:00
Corentin Noël
737b960ed5 MediaFeedback: Simplify the handling of the notification bus
Simply send notifications if the daemon is currently running.
2021-08-19 07:25:00 +00:00
Corentin Noël
bb0ee8ebbf IconGroup: Resize the canvas after objects creations
Resize is then calling draw which requires icon_container to exist.
2021-08-19 07:09:18 +00:00
Corentin Noël
4aec79ae0d Reduce the number of warnings
No functional change.
2021-08-18 05:49:00 +00:00
Corentin Noël
87d51c50fb
Add initial support for Mutter 40 (#980) 2021-08-16 16:23:46 -06:00
Bobby Rong
605aa10ea2 l10n: Correctly setup the locales 2021-08-16 09:01:01 +02:00
José Expósito
af59aa680b
screenshot: Include server side decorations (#1194) 2021-08-11 15:51:09 +00:00
José Expósito
866d82ac75 screenshot: Play shutter sound
We currently rely on Screenshot to play the shutter sound. This means
that it needs pulseaudio permissions in Flatpak and depending on the app
taking the screenshot you might not get a sound when a screenshot is
taken.

In addition, no sound was played when a screenshot was copied directly
to the clipboard.

Play the shutter sound in Gala to avoid this problems.
2021-06-30 08:45:55 +02:00
José Expósito
491b3cc6e5 Screenshot: Save to clipboard using shortcuts
Allow to save screenshot to clipboard when the filename received is
empty.

Not changing the save_image_to_file to keep backward compatibility.

Fix #1137
2021-06-17 10:51:11 -06:00
José Expósito
0c9a68aa8b Screenshot: Refactor ScreenshotManager.save_image
In previous versions of GNOME Settings daemon (elementary OS <= 5),
saving to clipboard was handled by the daemon. The daemon used to
request Gala to save the screenshot in a temp path like
"/tmp/gnome-settings-daemon-screenshot-XXXX" and copied the image to
the  clipboard from there.

More information: https://github.com/elementary/gala/issues/474

Now, Gala is in charge of copying to clipboard when the take screenshot
methods receive an empty filename.

This commit: Move the code from save_image to save_image_to_file.
2021-06-17 10:51:11 -06:00
José Expósito
c0506cb99b Multitasking view: Ajust window icon on scaling factor change 2021-06-17 10:19:43 -06:00
José Expósito
4be64574c0 Multitasking view: Ajust close window button on scaling factor change 2021-06-17 10:19:43 -06:00
José Expósito
afa6d6bd43 Multitasking view: Do not reuse scaling factor
The scaling factor can change at any point, but the WindowClone was
saving a value calculated in the constructor, creating several bugs when
scaling was changed.

Remove that pre-calculated value and use always a fresh value.
2021-06-17 10:19:43 -06:00
Jeremy Wootten
8d3bbc7635 Fix lint error in src/InternalUtils.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
bef79790a6 Fix lint errors in src/WindowManager.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
25c83a2dde Fix lint errors in src/Background/BackgroundSource.vala & src/Widgets/Screenshield.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
6d025daa69 Fix lint error in src/Widgets/WindowCLone.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
3101cafbb2 Fix lint error in src/Widgets/WorkspaceClone.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
eaa05aeb68 Fix lint errors in /src/DBus.vala 2021-06-15 13:50:50 -06:00
José Expósito
11643da1e5
a11y: Delay dwell click timer animation (#1156) 2021-06-04 09:00:42 -07:00
José Expósito
29cd5ad361 IconGroupContainer: Force re-layout
To avoid visual glitches when the scaling factor is changed, re-layout
the IconGroupContainer before the multitasking view is opened.
2021-06-04 09:57:24 -06:00
José Expósito
218cf00402 WindowIconActor: Resize on scalling factor change
To avoid visual glitches when the scaling factor is change, take
scalling factor into account to resize the icon.
2021-06-04 09:57:24 -06:00
José Expósito
f02019fd76 IconGroup: Resize the close button on redraw
To avoid visual glitches when the scaling factor is changed, adjust the
close button size on redraw to make sure the current scale factor is
used.
2021-06-04 09:57:24 -06:00
José Expósito
a7fb5107fe IconGroup: Refactor the close button placement
Move the code to place the IconGroup close button to a funtion to be
able to reuse it.

Refactor, no functional changes.
2021-06-04 09:57:24 -06:00
José Expósito
d993d095c1 IconGroup: Resize the canvas on redraw
To avoid visual glitches when the scaling factor is change, adjust the
canvas size on redraw to make sure the current scale factor is used.
2021-06-04 09:57:24 -06:00
José Expósito
ab351ea321 IconGroup: Refactor the canvas resize logic
Move the code to resize the IconGroup canvas to a funtion to be able to
reuse it.

Refactor, no functional changes.
2021-06-04 09:57:24 -06:00
José Expósito
55b34dd5eb
Fix #1131: Multitasking view: Keyboard focus highlight should use accent color (#1133) 2021-05-18 11:59:14 -07:00
José Expósito
16c112ccef
Multitasking view: Animate the dock when small size is selected (#1138) 2021-05-18 11:55:01 -07:00
José Expósito
ef536fa014
multitasking-view: Keyboard navigation rounded highlight (#1130) 2021-05-09 10:11:58 -07:00
Marius Meisenzahl
915712865d
Set accent color based on primary color (#1124) 2021-05-03 10:58:30 -07:00
Marius Meisenzahl
5cf9308ca6
Set accent color based on wallpaper (#1104)
* Add libgexiv2-dev as dependency

* Add classes

* Add demo

* Fix signal

* Cleanup

* Use Granite.Settings

* Revert "Use Granite.Settings"

This reverts commit a2da4bbbdb.

* Sort dependencies alphabetically

* Cleanup class NamedColor

* Read color from Gtk theme

* Cleanup
2021-04-29 16:36:59 -06:00
José Expósito
3449bef59a
Fix #1112: Adjust gap between notification bubbles (#1115) 2021-04-25 10:50:34 -07:00
Daniel Foré
dab8325b94
Rewrite gesture schemas (#1108) 2021-04-21 08:42:56 -07:00
David Hewitt
9f6b6a35c3
Minor screen shield fixes (#1111) 2021-04-13 17:27:19 +02:00
Daniel Foré
3846d120df
InternalUtils: Remoev unused constants (#1103) 2021-04-06 11:30:02 -07:00
JoseExposito
476c767bb6 Follow animation settings on zoom gesture 2021-04-06 10:26:46 -07:00
JoseExposito
d96322d9b8 Follow animation settings on zoom shortcut 2021-04-06 10:26:46 -07:00
Daniel Foré
8f92acba3a
InternalUtils: manually build label width path (#1102) 2021-04-06 09:26:03 -07:00
José Expósito
ac8a21e990
Show window titles in Multitasking View (#1076) 2021-04-05 18:19:52 -07:00
JoseExposito
3916d058c9 Make multitasking view nudge animation movement match workspace animation movement 2021-04-05 10:08:10 -07:00
JoseExposito
aec4f89c42 Make nudge animation movement match workspace animation movement 2021-04-05 10:08:10 -07:00
JoseExposito
585119ee75 Add a util function to get the workspaces geometry following the only_on_primary settings 2021-04-05 10:08:10 -07:00
JoseExposito
afa0b81699 Fix #1029: Zoom using multi-touch gestures 2021-04-02 10:04:00 -07:00
JoseExposito
1e42575351 Add GSettings to configure zoom gesture 2021-04-02 10:04:00 -07:00
JoseExposito
0480c42b95 Refactor the Zoom.zoom method to easily integrate gestures 2021-04-02 10:04:00 -07:00
JoseExposito
854059f44c Move the zoom plugin to the core code 2021-04-02 10:04:00 -07:00
José Expósito
282ee282f8
Fix #509: Follow animation settings in the workspace nudge animation (#1088) 2021-03-31 09:21:37 +02:00
José Expósito
92bc6b8a1e
Fix #1074: Window menu says Unmaximize when tiled (#1087) 2021-03-29 13:39:11 +02:00
Jeremy Wootten
0d43e6de20
Ignore ibus type source when setting keymap (#1041)
Co-authored-by: Ryo Nakano <26003928+ryonakano@users.noreply.github.com>
2021-03-14 11:47:15 +00:00
José Expósito
ed77206168
Fix #955: Add Take Screenshot to the header context menu (#1068) 2021-03-05 07:48:28 +01:00
José Expósito
702e31825d
Do not recalculate the multitasking view layout when a window not present in that layout is removed (#1072) 2021-03-02 10:02:05 -08:00
JoseExposito
c617f2e374 Remove old code 2021-03-01 10:25:46 -08:00
JoseExposito
5bba638ccf Multitasking view animation use GestureTracker 2021-03-01 10:25:46 -08:00
JoseExposito
104f819e76 Switch workspace animation use GestureTracker 2021-03-01 10:25:46 -08:00
JoseExposito
ef3285ce9c Enable 3/4 finger swipes in the multitasking view 2021-03-01 10:25:46 -08:00
JoseExposito
a1cb337880 Add a Touchégg as a backend of the GestureTracker 2021-03-01 10:25:46 -08:00
José Expósito
0913f46c7c
Fix #1027: Plank appears on background when switching from fullscreen workspace (#1037)
Co-authored-by: Daniel Foré <daniel@elementary.io>
2021-02-23 16:02:54 -08:00
José Expósito
3a0c856d7a
Multitasking view 1:1 switch desktop animation with scroll events (#1051) 2021-02-22 16:34:43 -08:00
José Expósito
590f0c6b68
Faster animation when using keyboard shortcuts (#1048) 2021-02-16 12:54:26 -08:00
José Expósito
48fd09e895
Fix #1018: Align multi-touch animations to physical pixels (#1023)
* Fix #1018: Align multi-touch animations to physical pixels

* Add documentation for GestureAnimationDirector.animation_value

Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
2021-02-04 16:25:44 -08:00
Felipe Escoto
746b089803
Don't move to next workspace when maximizing a window on secondary monitor (#1033) 2021-02-02 12:13:09 -08:00
José Expósito
1b152c1d1b
Multi-touch gestures aren't pixel-precise at low speeds + D-Bus (#1017) 2021-02-02 12:05:50 -08:00
David Hewitt
8ec131223b
Calculate notification width dynamically (#1039) 2021-02-02 11:55:14 -08:00
José Expósito
29b304c508
Fix #1001: Grey backdrop after switching workspace via gestures (#1024) 2021-01-23 10:27:45 +01:00
David Hewitt
5784505020
ScreenShield: Use async versions of Bus.get_proxy (#1020) 2021-01-16 20:34:06 +01:00
José Expósito
49d35796d0
#989: Multi-touch gestures have no upper speed limit (#1006)
* Initial test

* #989: Add maximum velocity to gesture update

* Simplify the GestureAnimationDirector moving the min/max times to the constructor

* Fix merge conflict

* Revert change
2021-01-06 14:15:06 -08:00
Corentin Noël
c74298b49c Bump Mutter to 3.36 2021-01-04 13:33:03 -08:00
Corentin Noël
f89686af61 Bump Mutter to 3.34 2021-01-04 13:33:03 -08:00
Corentin Noël
e46f9e9ca9 Bump Mutter to 3.32 2021-01-04 13:33:03 -08:00
Corentin Noël
57c3608c51 Bump Mutter to 3.30 2021-01-04 13:33:03 -08:00
José Expósito
9aee122c18
Workspaces in multitasking view should not animate as if they are stacked (#1002) 2020-12-29 14:07:44 -08:00
José Expósito
0d0d4a5fd3
Background disappears while switching workspaces with multiple displays (#994)
* Fix #926: Background disappears while switching workspaces with multiple displays

* #926: Adjust Y when monitors have different size

Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
2020-12-22 11:05:14 -07:00
Felix Andreas
813abb7ea6
WindowManager: use accent color for tiling preview (#960) 2020-12-21 13:22:53 -08:00
José Expósito
fd98933ed1
Fix #991: Add a gap between workspaces when swiping/navigating (#996) 2020-12-21 09:44:17 -08:00
José Expósito
933ca7bf7f
Multi-touch support (#983) 2020-12-16 13:04:52 -08:00
Corentin Noël
381e1d6474
Initial support for mutter-7 (#854)
* meson: Add support for libmutter-7 in the build system

This commit only adds support within the build system, no further attempt to make it build has been tried.

* mutter: Update the .vapi for libmutter-7

* Fix vapi syntax

* Make it work with mutter-7

* Re-enable PIP plugin

* Fix screenshot code

* Fix type

* Cleanup workspaces sooner

So we don't see the workspace removed animation on login

Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
Co-authored-by: David Hewitt <davidmhewitt@gmail.com>
2020-11-17 12:11:52 +01:00
Felix Andreas
991f3f9ac7
Codestyle: Initialize Objects with Properites (#965) 2020-11-12 10:38:59 +00:00
David Hewitt
dd21895437
pip: Use DragDropAction for move (#959) 2020-11-09 10:15:00 +01:00
Julian Raschke
f1be427cc8
Rename 'Minimize' to 'Hide' (#953) 2020-11-03 12:34:59 -08:00
David Hewitt
3755df80b3
Replace BAMF for icon loading (#939)
* Initial work to replace window matching and icon loading

* Support file icons

* Start caching desktop file info, support StartupWMClass

* Remove bamf vapi

* Listen for changes to desktop files

* Rate limit cache updates

* Remove bamf from README

* Pixbuf caching and gapp matching

* Also cache unknown icons

* Get windows from group

* Add a fallback for failing to load icon

* Check sandbox prefixes

* Switch icon cache class to struct
2020-10-27 12:15:57 -06:00
Corentin Noël
8e92cd4e4c
meson: Compare libmutter_dep version instead of checking for mutter336_dep (#949)
Using libmutter_dep allows to have a future-proof checking for this.
2020-10-27 16:00:26 +00:00
WORLDofPEACE
c124a8552d
build: fix build with mutter less than 3.36 (#945) 2020-10-26 11:49:58 +01:00
David Hewitt
c0c8b991ed
InternalUtils: Prevent X11 specific calls on wayland (#938) 2020-10-19 09:28:31 -07:00
Diego Rocha
4e820e9ce7
WindowManager: fixed nudge flicker and improved performance (#930) 2020-10-12 10:09:39 -07:00
Adam Bieńkowski
598ab52023
Also fix destroying (#920) 2020-09-20 15:58:07 -07:00
David Hewitt
8d836e8d69
KeyboardManager: listen to sources gsettings key (#910) 2020-08-27 10:06:16 -07:00
David Hewitt
a00b6257a6
Remove org.freedesktop.ScreenSaver interface (#911) 2020-08-27 10:02:59 -07:00
Daniel Foré
03fae35d74
Set accent color in DwellClick and PointerLocator (#909) 2020-08-26 15:44:01 -07:00
David Hewitt
bba97d4654
Add visual indicator for dwell click (#904) 2020-08-26 10:58:39 -07:00
David Hewitt
42528d7cf1
PointerLocator: Re-use surface (#908) 2020-08-26 19:40:23 +02:00
David Hewitt
a44e26cb7d
Locate pointer (#905) 2020-08-25 10:35:32 -07:00
Daniel Foré
0feaf35c75
Use GLib.Settings for shadow settings (#900) 2020-08-20 11:40:17 -07:00
Felix Andreas
82f3cac1d5
allow esc to quit alt-tab view (#892) 2020-08-03 13:59:01 -07:00
Felix Andreas
eaae7267fe
seems to work (#891) 2020-08-03 19:08:23 +02:00
Felix Andreas
517748bcac
Make fullscreen to new workspace feature optional (#738) 2020-07-28 15:54:49 -07:00
Cassidy James Blaede
7573fa7d00
Add editorconfig; fix whitespace (#881) 2020-07-20 22:06:57 +02:00
Lains
7de1313128
Desktop context menu (#879) 2020-07-20 21:36:05 +02:00
Felix Andreas
a9c18bbd65
Close multitasking view if workspace is selected (#795) 2020-07-12 11:43:38 -07:00
Felix Andreas
945ea7a8fb
use Gdk.Seat instead of Gdk.DeviceManager (#872)
Co-authored-by: Daniel Foré <daniel@elementary.io>
2020-07-12 10:56:23 -07:00
Daniel Foré
8683d9046d
WindowListener: explicit and inline namespace (#689)
Co-authored-by: Felix Andreas <felix.andreas95@googlemail.com>
2020-07-12 10:38:33 -07:00
Daniel Foré
85d290c75e
BackgroundSource: use map values, not map entries (#869) 2020-07-12 09:19:25 -07:00
Daniel Foré
481749cee5
Use GLib.Settings for Behavior (#860) 2020-06-26 07:02:51 +02:00
Daniel Foré
6aff576247
Use GLib.Settings for appearance (#843) 2020-06-20 11:43:16 +02:00
Daniel Foré
de379d7875
WindowManager: Use GLib.Settings for background (#844) 2020-06-20 11:39:27 +02:00
Daniel Foré
b65fada9ac
WindowManager: Use GLib.Settings for behavior (#845) 2020-06-20 11:37:32 +02:00
Daniel Foré
6fa690167c
WindowManager: Use GLib.Settings for keybinding (#842) 2020-06-20 11:35:23 +02:00
Diego Rocha
f393bb70ed Multitasking view: Fixed window clone position during drag canceled animation 2020-06-17 10:38:34 -07:00
Diego Rocha
2e5233f73a Multitasking view: Fixed window icon position during animations 2020-06-17 10:38:34 -07:00
David Hewitt
244aed5960
Cancel multitasking drag and drop when removing workspace (#833) 2020-06-08 16:08:34 -07:00
David Hewitt
7dece426d1
Use GNOME key for enabling screen locker (#820) 2020-05-27 15:10:10 -07:00
David Hewitt
e120718103
ScreenShield: Set locked hint on logind (#818) 2020-05-26 12:35:36 +01:00
Daniel Foré
41d7ab1383
Remove old Notify plugin (#814)
* Remove old Notify plugin

* missed a spot
2020-05-25 14:23:07 -07:00
Daniel Foré
28afa1f9fd
Gschema: Move screensaver keys to io.elementary.desktop (#813) 2020-05-25 11:14:52 -07:00
David Hewitt
f110140150
Implement ScreenSaver interfaces (#809) 2020-05-25 10:10:43 -07:00
David Hewitt
2b670d42e7
Implement color picker interface (#801) 2020-05-25 08:26:11 -07:00
Alexey Ten
e741cbac50
Fix "Always on Visible Workspace" windows are remaining invisible after changing workspace (#785)
`continue` was meant for `null` or destroyed window.
This is handled in lines above.
Fixes #764
2020-04-30 23:15:56 +02:00
Ivan Toshkov
3f7cb0e251
Fix a crash when meta_window is null (#780)
This may happen when there's an open menu and the user changes
workspace.

Fixes #766
2020-04-24 09:07:31 +02:00
David Hewitt
79f998e75d
DBusAccelerator: Fix grab_accelerator argument order (#761) 2020-04-02 11:29:25 -07:00
worldofpeace
b450a98314
Support g-s-d UngrabAccelerators API (#760)
This was added in g-s-d 3.33.0

Co-authored-by: David Hewitt <davidmhewitt@users.noreply.github.com>
2020-04-01 16:43:18 +01:00
David Hewitt
a814cecc19
Backport media keys fixes to earlier GSD versions (#754) 2020-03-13 06:56:51 +01:00
David Hewitt
d9434d0be6
Update DBus API for Mutter 3.36 media keys (#753) 2020-03-12 23:53:50 +01:00
David Hewitt
2732d81c22
Mutter 3.36 support (#751) 2020-03-12 23:38:28 +01:00
Corentin Noël
6e3d6a5190
cogl: Sanitize the .vapi dependencies (#746)
* cogl: Remove cogl-fixes when mutter-cogl is now enough

* Remove compat.vapi

This is not used anymore
2020-03-12 11:34:34 +01:00
Corentin Noël
c43e2d0bcd WindowManager: Ensure that we have a valid WindowActor before using it (#714)
This triggered crashes on my end
2020-01-22 10:33:58 -07:00
Adam Bieńkowski
9556d70680 Fix broken state of notification windows when switching workspaces (#711) 2020-01-20 12:08:10 -08:00
Corentin Noël
2aa417cdb1 notify: Make it build with Mutter >= 3.30 (#708)
The previous modification didn't took the API changes from 3.30, this commit resolves this issue.
2020-01-15 10:44:25 -08:00
Daniel Foré
07d8d6c8af Remove unused TextShadowEffect (#690) 2020-01-15 11:50:58 +01:00
Cassidy James Blaede
a127d09a22 Optionally support native notification windows (#552) 2020-01-14 13:59:01 -08:00
Daniel Foré
45e5188045
WindowManager: Explicitly namespace Meta (#687) 2020-01-14 09:19:52 -08:00
Daniel Foré
6f41f9f666 WindowManager: Remove unused top_stack (#688) 2020-01-14 10:22:27 +01:00
Daniel Foré
42701bf833
Misc whitespace clean ups in src (#686) 2020-01-09 12:45:00 -08:00
Daniel Foré
7a76ae3028
Use one true brace style in src (#685) 2020-01-09 12:29:01 -08:00
Daniel Foré
97cb42fb2d
Convert all tabs to spaces (#684) 2020-01-09 11:26:30 -08:00
Alexander Mikhaylenko
0df948f702 ScreenshotManager: Add ScreenshotAreaWithCursor() and ConcealText() (#633) 2019-12-17 01:25:15 +01:00
Corentin Noël
309d594a16 Use the .metadata to regenerate the .vapi files (#642) 2019-11-21 12:00:52 -08:00
Corentin Noël
2c22f2de80 Make Mutter 3.28 the minimum libmutter version (#640) 2019-11-20 09:10:51 -08:00
Corentin Noël
7845530b9b InternalUtils: Remove unused stuff (#639) 2019-11-18 13:18:08 -08:00
Tireg
70cfe7e6c8 Fix mutter 3.3x crashes (#635)
* Make gala build against Mutter 3.32

* Add schemas override for Mutter 3.3x

* Fix Gala.WorkspaceManager.workspace_removed callback that cause a SIGABRT

* Fix Gala.WorkspaceManager.cleanup method which causes SIGABRT by trying to get non-existing workspaces

* Fix Gala.WorkspaceManager.cleanup method which deletes all workspace instead of keeping at least the last workspace

* Fix Multitasking-View remove_workspace callback which has an incorrect algorithm to remove destroyed workspaces

* Add missing manager.workspace_reordered callback for Mutter 3.34
2019-11-13 21:55:15 +01:00
Alexander Mikhaylenko
8540e84549 Make legacy shadows more subtle (#629) 2019-11-04 11:30:08 -08:00
Alexander Mikhaylenko
d1d415c9f0 ScreenshotManager: Null-check the window in screenshot_window() (#627) 2019-11-04 09:18:25 -08:00
Alexander Mikhaylenko
909832a3e5 SelectionArea: Align the rectangle to pixel grid (#628) 2019-11-04 09:12:09 -08:00
Corentin Noël
0f0724c97a Adapt to mutter 3.33 (#566) 2019-10-31 22:22:38 +01:00
Felix Andreas
589884570b Fix: Animations for two tiled windows (#583) 2019-10-28 17:30:59 +01:00
Adam Bieńkowski
8b2afe3123 Move maximized windows to their own workspace (#578) 2019-10-22 09:19:57 -07:00
Corentin Noël
50694796d4 Remove duration settings and use constants (#513) 2019-07-21 10:55:23 +02:00
Adam Bieńkowski
da85223ff8 Add ability to reorder workspaces (#464) 2019-07-15 17:01:12 -07:00
Felix Andreas
a790d2d0f8 Fix fullscreen a maximized chromium window on secondary screen (#540) 2019-07-12 07:13:02 -07:00
Peter Uithoven
5f1dbf15a7 Add scale factor to screenshot file (#489) 2019-07-01 16:39:03 -07:00
Peter Uithoven
6df680d933 Prevent double BackgroundManager destroy (#562) 2019-07-01 16:33:18 -07:00
statiolake
1024813560 Fix minimize animation in HiDPI monitor (#164) (#541)
* Fix minimize animation in HiDPI monitor (#164)
2019-06-01 00:44:37 +02:00
Adam Bieńkowski
ca32785fe4 Hide selection while dragging window clone in workspace-view (#526) 2019-05-14 10:37:49 +02:00
Adam Bieńkowski
5a7f0cd85f Allow <Enter> to leave workspace-view without selecting window (#525) 2019-05-14 10:29:48 +02:00
Adam Bieńkowski
2a6da29d8b Do not try to move window to workspace which it is already on (#527) 2019-05-14 10:24:27 +02:00
Peter Uithoven
2c610b3bc8 Fix app switcher left and right padding (#479)
Fixes: #447
2019-03-07 18:46:39 +00:00
Peter Uithoven
395670ec3d Fixed saving screenshot to clipboard (#481)
Fixed: #474
2019-03-02 02:12:16 +01:00
Peter Uithoven
6da349e939 windowswitcher: Update scale factor when updating dock (#471) 2019-02-27 17:54:09 +01:00
Peter Uithoven
dca99e0c0b Tile switching fix for position only changes (#387)
Looks like the size_change isn't called when switching directly between
tile positions using the keyboard. Because the size isn't changed, but
position_changed is emitted.
2019-02-07 19:36:59 +01:00
Peter Uithoven
df0022c4b8 Allow to cancel screenshot when pressing ESC (#463) 2019-02-07 17:02:37 +01:00
Adam Bieńkowski
bbd5963da5 Do not block stage drawing when saving the screenshots (#460) 2019-02-07 09:24:25 +01:00
Rico Tzschichholz
9493139c78
screenshotmanager: Only create non-existing "Screenshots" subfolder in PICTURES (#462) 2019-02-06 13:47:17 +01:00
Peter Uithoven
74e7541c2b
Save screenshots to (self created) screenshots folder (#459)
* Save screenshots to (self created) screenshots folder

* Fallback to pictures folder

* Explicitly forwarding error
2019-02-06 01:15:02 +01:00
Adam Bieńkowski
6654145bb2 ScreenshotManager: implement flash_area and handle flash parameter (#147) 2019-01-28 02:17:58 -06:00
Corentin Noël
fe52fb1288 data: Add gala.css and texture.png to GResource 2019-01-23 21:58:01 +01:00
David Hewitt
7f1e392e03 Restore daemon watch (#429)
This was accidentally removed in #330 and is the major reason
why window menus aren't appearing.
2018-12-16 01:36:35 +01:00
Rico Tzschichholz
c9c6338d0d Fix type-argument mismatches of GLib.(S)List variables found by newer valac 2018-11-08 14:26:35 +01:00
Julian Raschke
a1bad2672b Nvidia drivers: Refresh background and screen corners (#21) (#330)
* Nvidia drivers: Refresh background and screen corners (#21)

* Fix merge artifacts

* Remove unused GL_VENDOR constant

* Remove unused logind constants

* Cleanup: Turn refresh_backgrounds method into a closure
2018-10-20 10:02:04 -06:00
David Hewitt
1970bac81e Use separate daemon to display GTK window menus (#179)
* Use separate process to create window menus

* Reduce line count with code style changes

* Fix some formatting

* Code style fixes

* Prevent menu closing instantly after open

* Resolve warnings in new code

* Remove GLib namespace prefix from exceptions

* Update main.vala

* Remove timeout by positioning the menu outside of the mouse pos

* daemon: Use lambda as popup callback

* io.elementary.gala -> org.pantheon.gala

* org.pantheon.gala.daemon -> gala-daemon

* Clean up

* Fix daemon object path

* Some cleaning
2018-09-10 16:16:52 -06:00
Adam Bieńkowski
2995cd6495 Implement org.gnome.SessionManager.EndSessionManager (#314)
... and forward DBus calls to the session indicator of wingpanel
2018-09-10 15:27:14 +02:00
Rico Tzschichholz
d38aed64e7 Silence a few valac warnings regarding error-handling of DBus methods 2018-09-10 14:45:42 +02:00
Julian Raschke
4ce4b83bce Adjust y position of wallpapers during workspace transition (#327) 2018-09-10 14:18:02 +02:00
David Hewitt
678e361896 Don't remove workspaces for sticky windows (#331) 2018-09-10 14:12:58 +02:00
Corentin Noël
15f722ac8f Render shadows using Gtk (#250)
* Render shadows using Gtk

* Do only apply shadow on fullscreen/maximized windows

* Add per-workspace style-class

* update shadow values

* Disconnect signals
2018-07-28 19:59:03 -06:00
Adam Bieńkowski
6bdc718832 multitaskingview: Fix adding last workspace animation (#281)
Fixes a weird animation when moving an app from one workspace
to the last one caused by initially not positioned new workspace
clone that's being added.
This is actually an easy fix that just tells that update_position
should not animate the position of the workspace when a workspace
is added.
2018-07-10 08:27:57 +02:00
JosephMcc
953c7ad58e windowlistener: Don't bail out of window_maximized_changed (#288)
The unmaximized_state_geometry is being reset when a window is
unmaximized. This causes the tile animation to break when it
follows a maximize/unmaximize because the old information is
being used.
2018-07-10 08:24:35 +02:00
Corentin Noël
985baa08bd Ensure that the correct workspaces are removed (#269) 2018-06-07 22:15:53 +02:00
Adam Bieńkowski
3661cbd77a Fix selection area appearing in screenshots (#214)
Waits for the stage to repaint before returning from SelectArea.
This makes the combination of methods like SelectArea and
ScreenshotArea work correctly, as previously the selection area
actor was removed from the stage but the caller
(org.gnome.SettingsDaemon.MediaKeys) called ScreenshotArea
immediately so the stage didn't have any time to redraw itself.
2018-06-03 10:21:06 +02:00
David Hewitt
da1cd0efb7 Add HiDPI support for Workspace Switcher (#242)
Based on previous work of Adam Bieńkowski
2018-06-03 09:05:12 +02:00
Adam Bieńkowski
4d4c18f570 Expose keep-below windows (#162)
Creates a little animation when a bottom-stack window appears
on the stage: fades out all the windows except the keep-below
window, and animates it's scale to highlight it more.
2018-06-03 08:16:34 +02:00
Corentin Noël
96f7799533 Fix old maximize not being destroyed 2018-06-03 07:56:27 +02:00
Corentin Noël
48d63995b9 Prevent the use of a null current_window 2018-06-03 07:55:54 +02:00
Felipe Escoto
60478f3281 Fix switching workspaces and maximizing a window distorts it (#58)
Use the previously unused maximized and unmaximized lists to keep track
of which windows are being animated. Remove animations in
end_switch_workspace to prevent window breakage.

https://bugs.launchpad.net/gala/+bug/1602722
2018-05-16 07:58:01 +02:00
Adam Bieńkowski
f02b776d95 Provide action to switch to the last workspace (#229) 2018-05-01 19:59:11 +02:00
Adam Bieńkowski
f1a491753a Dont move single window from last workspace to a new one (#240)
Fix incorrect counting of windows when moving window to a new workspace.
2018-04-30 08:03:16 +02:00
Adam Bieńkowski
a15dc07379 Wait for Window.size_changed signal to fix maximize/minimize animations (#239)
The window's frame_rect, which we were using, was not updated yet.
2018-04-30 06:27:13 +02:00
Rico Tzschichholz
95aa47d8f4 Drop autotools buildsystem 2018-03-18 16:11:11 +01:00
Rico Tzschichholz
b31075a0d7 utils: Optimize insert_workspace_with_window() a bit 2018-03-14 16:19:21 +01:00
Adam Bieńkowski
80cee97550 windowsmanager: Insert new workspace for fullscreen windows next to current one 2018-03-14 16:19:21 +01:00
Adam Bieńkowski
95b0f2bb31 windowmanager: Show a tile preview when tiling a window 2018-03-14 09:22:02 +01:00