GNOME Bugzilla – Bug 574896
[Leave message] Cancel button should clean clipboard buffe
Last modified: 2009-08-21 03:06:41 UTC
Please describe the problem: When leaving message via gnome-screensaver the clipboard buffer persist closure of the "Leave message" dialog, but only when the procedure of posting the message is interrupted via "Cancel" button. The "Save" button does the mock up. Steps to reproduce: 1. Lock the screen, GNOME Screensaver will pop up 2. Hit "Leave message" 3. Write something, select it, copy to clipboard via Control+C 4. Hit "Cancel" 5. Hit "Leave message" 6. Press Control+P Actual results: The buffer from previous editing is pasted. Expected results: Buffer is cleared on "Cancel" hit. Does this happen every time? Yes, every time. Other information: The user who did Control+C could be potentially different from the one who pressed Control+P and (parts of) the information sent to the "locked" user might be revealed. After hitting "Cancel" in the "unlock" screen itself, not in the "Leave message" dialog, the clipboard buffer is cleared OK.
Sure, I guess this makes sense. Have a patch?
Mmm, nope...
Created attachment 133997 [details] [review] Clear the clipboards when cancelling a message Just called the existing function, made it visible. Fixed one more warning about conversion NULL -> 0.
Thanks! Should be fixed in master.