Skip to content

Commit 1b27909

Browse files
committed
undeleted accidentally deleted block of text
1 parent 30ea038 commit 1b27909

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/dock_applet.in

+14-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,20 @@ keyb_shortcuts1 = ["<Super>KP_1", "<Super>KP_2", "<Super>KP_3", "<Super>KP_4", "
8989

9090
def applet_button_press(widget, event, the_dock):
9191
"""Button press event for the applet
92-
for the right mouse button,
92+
93+
Handle right button press events only
94+
95+
Find the app that was right clicked and make a record of it
96+
97+
Args:
98+
widget : the widget that was clicked
99+
event : the event args
100+
the_dock : the Dock object
101+
"""
102+
103+
# we don't get click events for the right mouse button presumably
104+
# because the panel hijacks them in order to produce the context menu
105+
# However, we do get button press event for the right mouse button,
93106
# so we can do what we need to do here ....
94107
if event.button == 3:
95108
# right click, so save the app that was clicked because

0 commit comments

Comments
 (0)