Commit Graph

4815 Commits

Author SHA1 Message Date
Carlos Garnacho
199395a395 Replace XAllowEvents with meta_device_allow_events() 2011-10-30 18:18:49 +01:00
Carlos Garnacho
ad911d6cce Use meta_core_select_events() for input events 2011-10-30 18:18:49 +01:00
Carlos Garnacho
daeaf44e02 core: Add method to select events on a window
This function handles XInput2 vs core in input events.
2011-10-30 18:18:49 +01:00
Carlos Garnacho
ec587190e8 devices-xi2: Export function to translate event mask 2011-10-30 18:18:49 +01:00
Carlos Garnacho
22a44bf007 Add XInput2 input devices implementation 2011-10-30 18:18:49 +01:00
Carlos Garnacho
e1679cb35b input-events: Add method to get the device for an event 2011-10-30 18:18:49 +01:00
Carlos Garnacho
5da2ff0f4e core: Add device map object
It will contain the input devices available
2011-10-30 18:18:49 +01:00
Carlos Garnacho
a547596be4 core: Add core devices implementation 2011-10-30 18:18:49 +01:00
Carlos Garnacho
bb7d549136 device: Add methods to pair devices 2011-10-30 18:18:49 +01:00
Carlos Garnacho
e800da2bca Add pointer/keyboard abstract classes 2011-10-30 18:18:48 +01:00
Carlos Garnacho
3def650a93 compositor: Use helper functions for input events 2011-10-30 18:18:48 +01:00
Carlos Garnacho
48f59d88fa keybindings: Use input event helper functions 2011-10-30 18:18:48 +01:00
Carlos Garnacho
01e77bae9d window: use input event helper functions on notify_focus() 2011-10-30 18:18:48 +01:00
Carlos Garnacho
66e9720cb7 window: use input event helper functions in grab operations. 2011-10-30 18:18:48 +01:00
Carlos Garnacho
3a8837f8ab display: get crossing/focus events details via helper functions 2011-10-30 18:18:48 +01:00
Carlos Garnacho
cc4f66bc8a display: get button event coordinates with the helper functions 2011-10-30 18:18:48 +01:00
Carlos Garnacho
90287cb3f6 display: get button events state from helper functions 2011-10-30 18:18:47 +01:00
Carlos Garnacho
0c317e8ced display: get button number from helper input event function 2011-10-30 18:18:47 +01:00
Carlos Garnacho
33c829ee39 display: Use helper function to get input events' timestamp 2011-10-30 18:18:47 +01:00
Carlos Garnacho
e92757ac8b display: Use helper functions for getting window/root in input events 2011-10-30 18:18:47 +01:00
Carlos Garnacho
08f06ba012 display: Get the right window/time for input events 2011-10-30 18:18:47 +01:00
Carlos Garnacho
e49cbb3614 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.
2011-10-30 18:18:47 +01:00
Carlos Garnacho
98e95ed5e8 core: Add helper code to handle input events
These will be used with every input event out there so they're
dealt with uniformly.
2011-10-30 18:18:47 +01:00
Carlos Garnacho
5338134b49 display: Add XInput2 variables in private struct 2011-10-30 18:18:47 +01:00
Carlos Garnacho
f5aab9398b configure: Check for XInput2 2011-10-30 18:18:47 +01:00
Jasper St. Pierre
3beb33bb44 mutter-mag: Quit when the user hits escape
https://bugzilla.gnome.org/show_bug.cgi?id=662895
2011-10-28 21:21:57 -04:00
Jasper St. Pierre
1b04a40dce mutter-mag: Remove deprecated stuff
https://bugzilla.gnome.org/show_bug.cgi?id=662895
2011-10-28 21:21:56 -04:00
Jasper St. Pierre
8087872130 theme-viewer: Fix layout
https://bugzilla.gnome.org/show_bug.cgi?id=662895
2011-10-28 15:09:21 -04:00
Jasper St. Pierre
3ad25a62cd ui: Remove deprecated stuff
https://bugzilla.gnome.org/show_bug.cgi?id=662895
2011-10-28 15:09:21 -04:00
Jasper St. Pierre
7ecd673d23 mutter-window-demo: Remove deprecated stuff
https://bugzilla.gnome.org/show_bug.cgi?id=662895
2011-10-28 15:09:21 -04:00
Jasper St. Pierre
331c9aaee4 Reverting "configure: Turn off -Werror by default" Revert "configure: Turn off -Werror by default"
This reverts commit a26e72c452.

https://bugzilla.gnome.org/show_bug.cgi?id=662574
2011-10-25 09:42:21 -04:00
Jasper St. Pierre
ec1979f9f5 theme-viewer: Update to fix GTK+ deprecations
Replace the GtkTable with a GtkGrid, replace GtkH/VBox with GtkBox
and junk a GtkHandleBox.

https://bugzilla.gnome.org/show_bug.cgi?id=662574
2011-10-25 09:42:16 -04:00
Jasper St. Pierre
4b411ea241 tabpopup: Update to fix GTK+ deprecations
Replace the GtkTable with a GtkGrid, replace GtkH/VBox with GtkBox

https://bugzilla.gnome.org/show_bug.cgi?id=662574
2011-10-25 09:42:11 -04:00
Jasper St. Pierre
70db187c36 frames: Don't use deprecated API to grab pointer position
https://bugzilla.gnome.org/show_bug.cgi?id=662574
2011-10-25 09:42:04 -04:00
krishnababu k
4de3f1d147 Updated Telugu translations 2011-10-25 17:35:54 +05:30
Jasper St. Pierre
821d4458ea Minor annotation fixes. 2011-10-24 17:06:17 -04:00
Jasper St. Pierre
7f9472a58f util: Fix memory leak in meta_later_remove
We never destroy the later list that's added by meta_later_add.

==4289== 16 bytes in 1 blocks are definitely lost in loss record 1,632 of 7,258
==4289==    at 0x4C2640D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4289==    by 0x5178D9F: standard_malloc (gmem.c:88)
==4289==    by 0x5178E37: g_malloc (gmem.c:164)
==4289==    by 0x51924B5: g_slice_alloc (gslice.c:842)
==4289==    by 0x5194521: g_slist_insert_sorted_real (gslist.c:900)
==4289==    by 0x519465A: g_slist_insert_sorted (gslist.c:957)
==4289==    by 0x4EA609A: meta_later_add (util.c:876)
==4289==    by 0x4E9C330: meta_screen_queue_workarea_recalc (screen.c:2640)
==4289==    by 0x4E9A360: update_num_workspaces (screen.c:1646)
==4289==    by 0x4E99026: meta_screen_new (screen.c:924)
==4289==    by 0x4E7AB51: meta_display_open (display.c:803)
==4289==    by 0x4E9168E: meta_run (main.c:552)

https://bugzilla.gnome.org/show_bug.cgi?id=642652
2011-10-21 15:44:50 -04:00
Jasper St. Pierre
3599917123 meta-window-group: Use clutter_actor_has_effects if available
This avoids a potentially costly allocation on every pixmap update.

https://bugzilla.gnome.org/show_bug.cgi?id=662225
2011-10-21 09:20:46 -04:00
Jasper St. Pierre
d624e85bc1 frames: Disable the titlebar "inner resize"
Since invisible draggable borders have been around, there isn't really a big
need for this feature

https://bugzilla.gnome.org/show_bug.cgi?id=660129
2011-10-21 09:16:39 -04:00
Rui Matos
6aa4bfd060 tiling: do not tile if moving in snap mode
If we are moving in snap mode (shift pressed) we don't want to tile. We must
also cancel any pending tiling if snap mode is activated during the move drag.

https://bugzilla.gnome.org/show_bug.cgi?id=662270
2011-10-20 16:18:38 +01:00
Colin Walters
a26e72c452 configure: Turn off -Werror by default
We will eventually land jhbuild work to grep for warnings; for now
breaking the build is just too painful.
2011-10-19 09:52:02 -04:00
Nguyễn Thái Ngọc Duy
acc4e03482 Updated Vietnamese translation 2011-10-18 14:40:21 +11:00
Nguyễn Thái Ngọc Duy
e176a9e891 po/vi: import from Damned Lies 2011-10-18 14:35:19 +11:00
Owen W. Taylor
0b36663ff1 Bump version to 3.2.1
Update NEWS
2011-10-17 23:17:16 -04:00
Jasper St. Pierre
bb035fe6e0 window: Correct coordinates for the configure event
We should still correct the coordinates for withdrawn windows.
2011-10-17 21:53:58 -04:00
Jasper St. Pierre
6d0c1f08d2 frame: Make sure to offset by invisible borders when unmanaging windows
When we reparent a window to the root when we're exiting, we need to offset
the position by the invisible borders, otherwise windows will creep up and
to the left.

https://bugzilla.gnome.org/show_bug.cgi?id=660848
2011-10-17 21:53:58 -04:00
Jasper St. Pierre
f700a7be07 Make meta_display_unmanage_screen public
https://bugzilla.gnome.org/show_bug.cgi?id=660848
2011-10-17 21:53:58 -04:00
Rui Matos
138eb1e3b4 tiling: keep track of the monitor where a window was tiled
meta_window_get_current_tile_area() computes the area where the tiled window
should be based on the current pointer position but that's only meaningful
when the user is actually dragging the window.

When running the tiling constrain the pointer might be on other monitor and at
that point the window jumps to this other monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=642580
2011-10-18 02:40:36 +01:00
Rui Matos
c39129b6e8 tiling: for tiled maximization use the tile area as target size/position
When using more than one monitor, tiled maximization can be triggered with the
pointer in one monitor while most of the window area remains in another. This
means that the maximization constraint would maximize the window into the wrong
monitor as it uses the work area size/position as target.

Fix this by using the current tile area as target size/position.

https://bugzilla.gnome.org/show_bug.cgi?id=657519
2011-10-18 02:33:41 +01:00
Rui Matos
bf175e72ad MetaWindowActor: don't unredirect ARGB32 windows
In particular this would a cause a "flash" when showing the tile preview for
maximization on a non-primary monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=662053
2011-10-18 02:33:34 +01:00