Commit Graph

5223 Commits

Author SHA1 Message Date
Carlos Garnacho
991fdeb9dd display: Use meta_device_grab() for pointer active grabs. 2012-11-03 19:47:35 -04:00
Carlos Garnacho
df908e5256 keybindings: Use meta_device_grab() for keyboard active grabs 2012-11-03 19:47:35 -04:00
Carlos Garnacho
4b88c1c72a window: Use meta_device_pointer_warp() 2012-11-03 19:47:35 -04:00
Carlos Garnacho
33d4732bde core: Keep track of per pointer/keyboard grabs
There is now a MetaGrabInfo struct, holding all information about
an ongoing grab, there were unfortunately no means of making this
commit smaller, as things are too intertwined to separate it,

On places where it was most obvious, the correct device has been
used (in reaction to events, for example), in other parts, the
private API has been extended to include the MetaDevice (or device
ID for core.h functions), in other places, the virtual core
pointer/keyboard are used out of cluelessness.
2012-11-03 19:47:35 -04:00
Carlos Garnacho
2bbd82ba51 ui: Use input-events.h to translate XEvents to GdkEvents
This is the only use in the UI part of core functions not
exported via core.h, but this is sort of a hack within a hack,
and still better than doing the XInput2 vs core dance again.
2012-11-03 19:47:35 -04:00
Carlos Garnacho
13acafabe2 devices: Make MetaDevice/MetaDeviceMap partly public
MetaDevice is quite limited outside of the core, mostly useful
to represent a device, and get the paired one.
2012-11-03 19:47:34 -04:00
Carlos Garnacho
20537b9bb0 keybindings: Replace XGrabKey() with meta_device_map_grab_key() 2012-11-03 19:47:34 -04:00
Carlos Garnacho
373ef2e6f1 display: Replace XGrabButton with meta_device_map_grab_button() 2012-11-03 19:47:34 -04:00
Carlos Garnacho
93c7a22161 core: Add XInput2 device map implementation 2012-11-03 19:47:34 -04:00
Carlos Garnacho
9f06372e17 Replace XAllowEvents with meta_device_allow_events() 2012-11-03 19:37:53 -04:00
Carlos Garnacho
b3ecd268f6 Use meta_core_select_events() for input events 2012-11-03 19:37:52 -04:00
Carlos Garnacho
c32ee410e9 core: Add method to select events on a window
This function handles XInput2 vs core in input events.
2012-11-03 19:37:52 -04:00
Carlos Garnacho
3584f38d08 devices-xi2: Export function to translate event mask 2012-11-03 19:37:52 -04:00
Carlos Garnacho
712d2feb73 Add XInput2 input devices implementation 2012-11-03 19:37:52 -04:00
Carlos Garnacho
7b21bd8c6f window: use input event helper functions in grab operations. 2012-11-03 19:37:52 -04:00
Carlos Garnacho
c7c1053ade input-events: Add method to get the device for an event 2012-11-03 19:37:52 -04:00
Carlos Garnacho
d7bd7c9a40 core: Add device map object
It will contain the input devices available
2012-11-03 19:37:52 -04:00
Carlos Garnacho
96cdedf569 core: Add core devices implementation 2012-11-03 19:37:52 -04:00
Carlos Garnacho
8865578933 device: Add methods to pair devices 2012-11-03 19:37:52 -04:00
Carlos Garnacho
1a29f2cd0f Add pointer/keyboard abstract classes 2012-11-03 19:37:52 -04:00
Carlos Garnacho
324d9fdb14 compositor: Use helper functions for input events 2012-11-03 19:37:52 -04:00
Carlos Garnacho
190037cd72 keybindings: Use input event helper functions 2012-11-03 19:37:52 -04:00
Carlos Garnacho
a3ca52bf0f window: use input event helper functions on notify_focus() 2012-11-03 19:37:51 -04:00
Carlos Garnacho
29b5fd7fd7 display: get crossing/focus events details via helper functions 2012-11-03 19:37:51 -04:00
Carlos Garnacho
7a3d49b88e display: get button event coordinates with the helper functions 2012-11-03 19:37:51 -04:00
Carlos Garnacho
3e3ad71a68 display: get button events state from helper functions 2012-11-03 19:37:51 -04:00
Carlos Garnacho
1c3b695848 display: get button number from helper input event function 2012-11-03 19:37:51 -04:00
Carlos Garnacho
e1379441d4 display: Use helper function to get input events' timestamp 2012-11-03 19:37:51 -04:00
Carlos Garnacho
d75f43f504 display: Use helper functions for getting window/root in input events 2012-11-03 19:37:51 -04:00
Carlos Garnacho
de6dceb3ac display: Get the right window/time for input events 2012-11-03 19:37:51 -04:00
Carlos Garnacho
03ddc0cd94 display: separate input/non-input events handling in the event callback
We now use meta_input_event_get_type() to discern input events from the
others. This commit has involved plenty of indenting changes, so it's
better seen with git diff -b.
2012-11-03 19:37:51 -04:00
Carlos Garnacho
f440af2c02 core: Add helper code to handle input events
These will be used with every input event out there so they're
dealt with uniformly.
2012-11-03 19:37:51 -04:00
Carlos Garnacho
8b3ef16460 display: Add XInput2 variables in private struct 2012-11-03 19:37:51 -04:00
Carlos Garnacho
7d587770f3 configure: Check for XInput2 2012-11-03 19:37:51 -04:00
Jasper St. Pierre
188d532438 display: Ignore DamageNotify in spew 2012-11-03 19:37:51 -04:00
Owen W. Taylor
f258556cec MetaPluginManager: don't send events to Clutter twice
When support for multiple plugins was removed, the logic that was
supposed to send events to Clutter directly *only if there is no filter
function from a plugin* was broken, so events were being sent to
Clutter twice if Clutter didn't consume them the first time.

https://bugzilla.gnome.org/show_bug.cgi?id=686406
2012-11-03 19:36:41 -04:00
Jasper St. Pierre
62dbaa89ca mutter: Don't call g_type_init
It has been deprecated upstream.
2012-11-02 11:45:11 -04:00
Tobias Endrigkeit
b56396eca5 Updated German translation 2012-10-30 18:59:33 +01:00
Rafael Ferreira
0fdc36cac4 Updated Brazilian Portuguese Translation 2012-10-29 16:29:49 -02:00
Florian Müllner
2cc0d31b17 window: Avoid spurious focus-window changes when showing desktop
When using the show-desktop shortcut with no desktop window, unshowing
will focus the second-most-recently-used window. If we find a desktop
window, it will be focused explicitly and everything works as expected;
however without a desktop window, we end up hiding the focus window,
which will use focus_default_window() with the not_this_one parameter
to move focus away. We used to get away with this, as the not_this_one
parameter was ignored until commit e257580b94, now with bug 675982
fixed, we need to explicitly handle the show-desktop case.

https://bugzilla.gnome.org/show_bug.cgi?id=686928
2012-10-26 15:52:32 +02:00
Florian Müllner
e2bf91cd61 Bump version to 3.7.1
Update NEWS
2012-10-23 14:50:37 +02:00
Mattias Põldaru
294311b2d1 [l10n] Updated Estonian translation 2012-10-22 22:02:58 +03:00
Kjartan Maraas
db6d89b742 Updated Norwegian bokmål translation 2012-10-22 19:52:14 +02:00
Florian Müllner
2717a02a8d screen: Ignore num-workspaces when using dynamic workspaces
On startup, workspaces are initialized according to the num-workspaces
preference. However when using dynamic workspaces, the actual number
of workspaces in use might be greater than the preference (when
replacing the window manager), forcing windows on those workspaces
to the first workspace.
To fix, ignore the preference completely when using dynamic workspaces
and try to restore the previous number of workspaces (as read from
_NET_NUMBER_OF_DESKTOPS).

https://bugzilla.gnome.org/show_bug.cgi?id=685439
2012-10-17 22:43:26 +02:00
Мирослав Николић
4344c9e192 Updated Serbian translation 2012-10-17 10:11:38 +02:00
Marek Černocký
53e2d34628 Updated Czech translation 2012-10-17 08:27:39 +02:00
Andika Triwidada
c602d53649 Updated Indonesian translation 2012-10-16 23:42:05 +07:00
Daniel Mustieles
43a121c8d9 Updated Spanish translation 2012-10-16 18:12:08 +02:00
Fran Diéguez
a8c5100fbb Updated Galician translations 2012-10-16 17:06:40 +02:00
Matej Urbančič
5034bd8a7e Updated Slovenian translation 2012-10-16 15:33:58 +02:00