summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-12-31 01:33:08 -0500
committermonsta <[email protected]>2017-01-22 13:24:48 +0300
commit707dbc1372b9aa1b3f8a19b3689c51114e7784f2 (patch)
tree433d938ab31ab2d12ce9226a6f1109b110f17e37 /eel
parent0cc80dfb513c3986659c41bdf0edf06c7702f77b (diff)
downloadcaja-707dbc1372b9aa1b3f8a19b3689c51114e7784f2.tar.bz2
caja-707dbc1372b9aa1b3f8a19b3689c51114e7784f2.tar.xz
Single click navigation: keep hand cursor when opening folder...
and it comes to rest on a new folder displayed in the same icon position. Note that this is only in single click navigation, as double clicking always reverts the cursor to the arrow Same as GNOME/nautilus commit https://git.gnome.org/browse/nautilus/commit/?id=d486af277f491ff5cfcfa254ebce618cd41a3edb
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-canvas.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 0d9e8744..da39007c 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -3119,9 +3119,11 @@ eel_canvas_button (GtkWidget *widget, GdkEventButton *event)
/* Pick the current item as if the button were not pressed, and
* then process the event.
*/
+ event->state ^= mask;
canvas->state = event->state;
pick_current_item (canvas, (GdkEvent *) event);
- canvas->state ^= mask;
+ event->state ^= mask;
+ canvas->state = event->state;
retval = emit_event (canvas, (GdkEvent *) event);
break;