summaryrefslogtreecommitdiff
path: root/ioport.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-04-08 11:26:45 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-04-08 13:57:34 +0200
commit800b0e814bef7cd14ae2bce149c09d70676e93fb (patch)
tree93d18f4d59e86d40239ed3259da217c13e94f0c5 /ioport.c
parent55519a4b244e4822774b593e36647ecf7598286b (diff)
gtk: Implement grab-on-click behavior in relative mode
This patch changes the behavior in the relative mode to be compatible with other UIs, namely, grabbing the input at the first left click. It improves the usability a lot; otherwise you have to press ctl-alt-G or select from menu at each time you want to move the pointer. Also, the input grab is cleared when the current mode is switched to the absolute mode. The automatic reset of the implicit grabbing is needed since the switching to the absolute mode happens always after the click even on Gtk. That is, we cannot check whether the absolute mode is already available at the first click time even though it should have been switched in X11 input driver side. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ioport.c')
0 files changed, 0 insertions, 0 deletions